|
@ -1,6 +1,5 @@ |
|
|
package com.elink.esua.epdc.controller; |
|
|
package com.elink.esua.epdc.controller; |
|
|
|
|
|
|
|
|
import com.elink.esua.epdc.commons.tools.constant.Constant; |
|
|
|
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils; |
|
|
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils; |
|
|
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup; |
|
|
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup; |
|
@ -17,21 +16,21 @@ import org.springframework.web.bind.annotation.*; |
|
|
* create time: 2021/8/29$ 10:32$ |
|
|
* create time: 2021/8/29$ 10:32$ |
|
|
*/ |
|
|
*/ |
|
|
@RestController |
|
|
@RestController |
|
|
@RequestMapping(Constant.APP_USER_FLAG+"partyMember") |
|
|
@RequestMapping("partyMember") |
|
|
public class EpdcAppPartyMemberController { |
|
|
public class EpdcAppPartyMemberController { |
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
private UserInfoService userInfoService; |
|
|
private UserInfoService userInfoService; |
|
|
|
|
|
|
|
|
@PostMapping("showIdentity") |
|
|
@PostMapping("showIdentity") |
|
|
public Result save(@RequestBody EpdcAppShowIdentityFormDTO formDto){ |
|
|
public Result saveShowIdentity(@RequestBody EpdcAppShowIdentityFormDTO formDto){ |
|
|
ValidatorUtils.validateEntity(formDto, AddGroup.class, DefaultGroup.class); |
|
|
ValidatorUtils.validateEntity(formDto, AddGroup.class, DefaultGroup.class); |
|
|
userInfoService.save(formDto); |
|
|
userInfoService.save(formDto); |
|
|
return new Result(); |
|
|
return new Result(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@GetMapping("dentityDetail/{userId}") |
|
|
@GetMapping("dentityDetail/{userId}") |
|
|
public Result<EpdcAppIdentityDetailResultDTO> getDentityDetail(@PathVariable("userId") Long userId){ |
|
|
public Result<EpdcAppIdentityDetailResultDTO> getDentityDetail(@PathVariable("userId") String userId){ |
|
|
EpdcAppIdentityDetailResultDTO data = userInfoService.getDentityDetail(userId); |
|
|
EpdcAppIdentityDetailResultDTO data = userInfoService.getDentityDetail(userId); |
|
|
return new Result<EpdcAppIdentityDetailResultDTO>().ok(data); |
|
|
return new Result<EpdcAppIdentityDetailResultDTO>().ok(data); |
|
|
} |
|
|
} |
|
@ -43,7 +42,7 @@ public class EpdcAppPartyMemberController { |
|
|
* @author zhangfenghe |
|
|
* @author zhangfenghe |
|
|
* @since 2021/8/30 9:26 |
|
|
* @since 2021/8/30 9:26 |
|
|
*/ |
|
|
*/ |
|
|
@PostMapping("partyBuilding/brightIdentity/recommended") |
|
|
@PostMapping("brightIdentity/recommended/{id}") |
|
|
public Result recommended(@PathVariable("id") String id){ |
|
|
public Result recommended(@PathVariable("id") String id){ |
|
|
return userInfoService.recommended(id); |
|
|
return userInfoService.recommended(id); |
|
|
} |
|
|
} |
|
@ -55,7 +54,7 @@ public class EpdcAppPartyMemberController { |
|
|
* @author zhangfenghe |
|
|
* @author zhangfenghe |
|
|
* @since 2021/8/30 9:26 |
|
|
* @since 2021/8/30 9:26 |
|
|
*/ |
|
|
*/ |
|
|
@PostMapping("partyBuilding/brightIdentity/recommendedCancel") |
|
|
@PostMapping("brightIdentity/recommendedCancel/{id}") |
|
|
public Result recommendedCancel(@PathVariable("id") String id){ |
|
|
public Result recommendedCancel(@PathVariable("id") String id){ |
|
|
return userInfoService.recommendedCancel(id); |
|
|
return userInfoService.recommendedCancel(id); |
|
|
} |
|
|
} |
|
|