feiyu02
2022-10-21 f22c4b9230808fed4fec80c435eccb4c833349a0
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
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.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>>
}