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>>
|
}
|