|
|
@ -5,18 +5,13 @@ 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.utils.Result; |
|
|
|
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcUnauthorizedAmountFromDTO; |
|
|
|
import com.elink.esua.epdc.dto.epdc.result.EpdcAppIndexPanelResultDTO; |
|
|
|
import com.elink.esua.epdc.dto.epdc.result.EpdcPartyMemberDetailDto; |
|
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcAppAuthenticateResidentFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.epdc.result.EpdcResidentDetailResultDTO; |
|
|
|
import com.elink.esua.epdc.dto.epdc.form.*; |
|
|
|
import com.elink.esua.epdc.dto.epdc.result.*; |
|
|
|
import com.elink.esua.epdc.dto.form.EpdcWorkAppUserMaTokenFormDTO; |
|
|
|
import com.elink.esua.epdc.service.WorkUserService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import com.elink.esua.epdc.commons.tools.annotation.LoginUser; |
|
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcWorkUserFromDTO; |
|
|
|
import com.elink.esua.epdc.dto.epdc.result.EpdcWorkUserResultDTO; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
@ -71,12 +66,13 @@ public class ApiWorkUserController { |
|
|
|
/** |
|
|
|
* 获取居民详情(已认证或待认证(提交信息待审核)的居民用户) |
|
|
|
* |
|
|
|
* @param userId 用户Id |
|
|
|
* @param formDto 用户Id |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@GetMapping("residentDetail") |
|
|
|
public Result<EpdcResidentDetailResultDTO> residentDetail(String userId) { |
|
|
|
return workUserService.residentDetail(userId); |
|
|
|
public Result<EpdcResidentDetailResultDTO> residentDetail(@RequestBody EpdcResidentDetailFormDTO formDto) { |
|
|
|
ValidatorUtils.validateEntity(formDto); |
|
|
|
return workUserService.residentDetail(formDto); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@ -98,6 +94,7 @@ public class ApiWorkUserController { |
|
|
|
*/ |
|
|
|
@PostMapping("authenticateResident") |
|
|
|
public Result authenticateResident(@RequestBody EpdcAppAuthenticateResidentFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO); |
|
|
|
return workUserService.authenticateResident(formDTO); |
|
|
|
} |
|
|
|
|
|
|
@ -136,4 +133,17 @@ public class ApiWorkUserController { |
|
|
|
public Result<List<EpdcAppIndexPanelResultDTO>> indexPanel(@LoginUser TokenDto userDetail) { |
|
|
|
return workUserService.indexPanel(userDetail); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param formDTO |
|
|
|
* @return com.elink.esua.epdc.commons.tools.utils.Result<java.util.List < com.elink.esua.epdc.dto.epdc.result.EpdcAuthenticateHistoryResultDTO>> |
|
|
|
* @Author yinzuomei |
|
|
|
* @Description 用户认证审核历史 |
|
|
|
* @Date 2019/11/22 13:16 |
|
|
|
**/ |
|
|
|
@GetMapping("authenticateHistory") |
|
|
|
public Result<List<EpdcAuthenticateHistoryResultDTO>> authenticateHistory(@RequestBody EpdcAuthenticateHistoryFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO); |
|
|
|
return workUserService.authenticateHistory(formDTO); |
|
|
|
} |
|
|
|
} |
|
|
|