|
|
|
@ -2,6 +2,7 @@ package com.elink.esua.epdc.controller; |
|
|
|
|
|
|
|
import com.elink.esua.epdc.common.token.dto.WorkUserAuthorizationDTO; |
|
|
|
import com.elink.esua.epdc.common.token.dto.WorkUserLoginDTO; |
|
|
|
import com.elink.esua.epdc.commons.tools.enums.BehaviorEnum; |
|
|
|
import com.elink.esua.epdc.commons.tools.security.user.SecurityUser; |
|
|
|
import com.elink.esua.epdc.commons.tools.security.user.UserDetail; |
|
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
|
@ -11,6 +12,7 @@ import com.elink.esua.epdc.dto.epdc.result.*; |
|
|
|
import com.elink.esua.epdc.dto.form.EpdcWorkAppUserMaTokenFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.form.WorkAppMenuStatisticsFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.result.WorkAppMenuStatisticsResultDTO; |
|
|
|
import com.elink.esua.epdc.pointcommons.tools.annotation.RecordUserBehavior; |
|
|
|
import com.elink.esua.epdc.service.WorkUserService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
@ -93,6 +95,33 @@ public class ApiWorkUserController { |
|
|
|
return workUserService.authenticateResident(formDTO); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 认证用户(用户信息审核) - -通过 |
|
|
|
* |
|
|
|
* @param formDTO |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@PostMapping("swagger/authenticateResidentPass") |
|
|
|
@RecordUserBehavior(behavior = BehaviorEnum.RESIDENT_AUDIT_PASS,referenceId = "#{formDTO.getUserId}",userId = "#{formDTO.getUserId}") |
|
|
|
public Result authenticateResidentPass(@RequestBody EpdcAppAuthenticateResidentFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO); |
|
|
|
return workUserService.authenticateResident(formDTO); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 认证用户(用户信息审核) - 不通过 |
|
|
|
* |
|
|
|
* @param formDTO |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@PostMapping("swagger/authenticateResidentNoPass") |
|
|
|
@RecordUserBehavior(behavior = BehaviorEnum.RESIDENT_AUDIT_NO_PASS,referenceId = "#{formDTO.getUserId}",userId = "#{formDTO.getUserId}") |
|
|
|
public Result authenticateResidentNoPass(@RequestBody EpdcAppAuthenticateResidentFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO); |
|
|
|
return workUserService.authenticateResident(formDTO); |
|
|
|
} |
|
|
|
/*** |
|
|
|
* 用户列表 |
|
|
|
* @param workUserFromDto |
|
|
|
|