|
@ -1,6 +1,5 @@ |
|
|
package com.elink.esua.epdc.controller; |
|
|
package com.elink.esua.epdc.controller; |
|
|
|
|
|
|
|
|
import com.elink.esua.epdc.common.token.dto.TokenDto; |
|
|
|
|
|
import com.elink.esua.epdc.common.token.dto.WorkUserAuthorizationDTO; |
|
|
import com.elink.esua.epdc.common.token.dto.WorkUserAuthorizationDTO; |
|
|
import com.elink.esua.epdc.common.token.dto.WorkUserLoginDTO; |
|
|
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.utils.Result; |
|
@ -11,7 +10,6 @@ import com.elink.esua.epdc.dto.form.EpdcWorkAppUserMaTokenFormDTO; |
|
|
import com.elink.esua.epdc.service.WorkUserService; |
|
|
import com.elink.esua.epdc.service.WorkUserService; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import com.elink.esua.epdc.commons.tools.annotation.LoginUser; |
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
@ -66,7 +64,7 @@ public class ApiWorkUserController { |
|
|
* @param formDto 用户Id |
|
|
* @param formDto 用户Id |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
@GetMapping("residentDetail") |
|
|
@GetMapping("swagger/residentDetail") |
|
|
public Result<EpdcResidentDetailResultDTO> residentDetail(EpdcResidentDetailFormDTO formDto) { |
|
|
public Result<EpdcResidentDetailResultDTO> residentDetail(EpdcResidentDetailFormDTO formDto) { |
|
|
ValidatorUtils.validateEntity(formDto); |
|
|
ValidatorUtils.validateEntity(formDto); |
|
|
return workUserService.residentDetail(formDto); |
|
|
return workUserService.residentDetail(formDto); |
|
@ -78,7 +76,7 @@ public class ApiWorkUserController { |
|
|
* @param userId |
|
|
* @param userId |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
@GetMapping("partyMemberDetail") |
|
|
@GetMapping("swagger/partyMemberDetail") |
|
|
public Result<EpdcPartyMemberDetailDto> partyMemberDetail(String userId) { |
|
|
public Result<EpdcPartyMemberDetailDto> partyMemberDetail(String userId) { |
|
|
return workUserService.partyMemberDetail(userId); |
|
|
return workUserService.partyMemberDetail(userId); |
|
|
} |
|
|
} |
|
@ -89,7 +87,7 @@ public class ApiWorkUserController { |
|
|
* @param formDTO |
|
|
* @param formDTO |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
@PostMapping("authenticateResident") |
|
|
@PostMapping("swagger/authenticateResident") |
|
|
public Result authenticateResident(@RequestBody EpdcAppAuthenticateResidentFormDTO formDTO) { |
|
|
public Result authenticateResident(@RequestBody EpdcAppAuthenticateResidentFormDTO formDTO) { |
|
|
ValidatorUtils.validateEntity(formDTO); |
|
|
ValidatorUtils.validateEntity(formDTO); |
|
|
return workUserService.authenticateResident(formDTO); |
|
|
return workUserService.authenticateResident(formDTO); |
|
@ -138,7 +136,7 @@ public class ApiWorkUserController { |
|
|
* @Description 用户认证审核历史 |
|
|
* @Description 用户认证审核历史 |
|
|
* @Date 2019/11/22 13:16 |
|
|
* @Date 2019/11/22 13:16 |
|
|
**/ |
|
|
**/ |
|
|
@GetMapping("authenticateHistory") |
|
|
@GetMapping("swagger/authenticateHistory") |
|
|
public Result<List<EpdcAuthenticateHistoryResultDTO>> authenticateHistory(EpdcAuthenticateHistoryFormDTO formDTO) { |
|
|
public Result<List<EpdcAuthenticateHistoryResultDTO>> authenticateHistory(EpdcAuthenticateHistoryFormDTO formDTO) { |
|
|
ValidatorUtils.validateEntity(formDTO); |
|
|
ValidatorUtils.validateEntity(formDTO); |
|
|
return workUserService.authenticateHistory(formDTO); |
|
|
return workUserService.authenticateHistory(formDTO); |
|
@ -152,7 +150,7 @@ public class ApiWorkUserController { |
|
|
* @author work@yujt.net.cn |
|
|
* @author work@yujt.net.cn |
|
|
* @date 2019/11/26 15:52 |
|
|
* @date 2019/11/26 15:52 |
|
|
*/ |
|
|
*/ |
|
|
@GetMapping("listGrid") |
|
|
@GetMapping("swagger/listGrid") |
|
|
public Result<List<EpdcUserGridResultDTO>> listUserGrid(String userId) { |
|
|
public Result<List<EpdcUserGridResultDTO>> listUserGrid(String userId) { |
|
|
return workUserService.listUserGrid(userId); |
|
|
return workUserService.listUserGrid(userId); |
|
|
} |
|
|
} |
|
@ -164,7 +162,7 @@ public class ApiWorkUserController { |
|
|
* @Description 解除与网格的关联 |
|
|
* @Description 解除与网格的关联 |
|
|
* @Date 2019/11/22 14:16 |
|
|
* @Date 2019/11/22 14:16 |
|
|
**/ |
|
|
**/ |
|
|
@PostMapping("removeGrid") |
|
|
@PostMapping("swagger/removeGrid") |
|
|
public Result removeGrid(@RequestBody EpdcAppRemoveGridFormDTO formDto) { |
|
|
public Result removeGrid(@RequestBody EpdcAppRemoveGridFormDTO formDto) { |
|
|
ValidatorUtils.validateEntity(formDto); |
|
|
ValidatorUtils.validateEntity(formDto); |
|
|
return workUserService.removeGrid(formDto); |
|
|
return workUserService.removeGrid(formDto); |
|
|