feiyu02
2025-09-30 6904763f0e74d9a9fa4dbc39f635d2aee39416c6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package cn.flightfeather.supervision.lightshare.service
 
import cn.flightfeather.supervision.domain.entity.Company
import cn.flightfeather.supervision.domain.entity.PersonalInfo
import cn.flightfeather.supervision.domain.entity.Userinfo
import cn.flightfeather.supervision.domain.enumeration.SceneType
import cn.flightfeather.supervision.lightshare.vo.AuthSceneVo
import cn.flightfeather.supervision.lightshare.vo.BaseResponse
 
interface AuthService {
 
    fun authCompany(wxUserId: String, company: Company): BaseResponse<String>
 
    /**
     * 用户场景认证
     * @param wxUserId 微信用户openId
     * @param sceneType 场景类型,[SceneType.value]
     * @param sceneInfo 场景信息,[AuthSceneVo]
     * @see SceneType
     * @see AuthSceneVo
     * @return 认证成功与否
     */
    fun authScene(wxUserId: String, sceneType: Int, sceneInfo: String): BaseResponse<String>
 
    fun authPersonal(wxUserId: String, personalInfo: PersonalInfo): BaseResponse<String>
 
    /**
     * 获取用户认证状态
     * @param wxUserId 微信用户openId
     * @param userId 场景用户id
     * @return 认证状态, [企业认证状态, 场景认证状态, 个人认证状态]
     */
    fun authStatus(wxUserId: String?, userId: String?): BaseResponse<List<Boolean>>
 
    /**
     * 获取企业认证状态
     * @param userId 场景用户id
     * @return 认证状态, [企业认证状态, 场景认证状态, 个人认证状态]
     */
    fun sceneAuthStatus(userId: String?): BaseResponse<List<Boolean>>
 
    fun getUnAuthedUsers(): BaseResponse<List<Userinfo?>>
}