| | |
| | | package com.panzhihua.applets.api; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.validation.Valid; |
| | | |
| | | import com.panzhihua.common.model.vos.community.IdentityAuthRecordDetailVO; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | import com.panzhihua.common.model.dtos.community.PageIdentityAuthRecordDTO; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.IdentityAuthRecordDetailVO; |
| | | import com.panzhihua.common.service.community.CommunityService; |
| | | |
| | | import io.swagger.annotations.Api; |
| | |
| | | |
| | | @ApiOperation(value = "身份认证获取EidToken接口") |
| | | @PostMapping("/getEidToken") |
| | | public R getEidToken(@RequestBody GetIdentityEidTokenDTO getIdentityEidTokenDTO) { |
| | | public R getEidToken(@RequestBody @Valid GetIdentityEidTokenDTO getIdentityEidTokenDTO) { |
| | | return communityService.getEidToken(getIdentityEidTokenDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "新增身份认证") |
| | | @PostMapping("/add") |
| | | public R addIdentityAuth(@RequestBody AddIdentityAuthDTO addIdentityAuthDTO) { |
| | | public R addIdentityAuth(@RequestBody @Valid AddIdentityAuthDTO addIdentityAuthDTO) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | addIdentityAuthDTO.setSubmitUserId(loginUserInfo.getUserId()); |
| | | addIdentityAuthDTO.setCommunityId(loginUserInfo.getCommunityId()); |
| | | addIdentityAuthDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.addIdentityAuth(addIdentityAuthDTO); |
| | | } |
| | | |
| | | @ApiOperation(value = "分页查询身份认证记录", response = IdentityAuthRecordDetailVO.class) |
| | | @PostMapping("/record/page") |
| | | public R queryRecordWithPage(@RequestBody PageIdentityAuthRecordDTO pageIdentityAuthRecordDTO) { |
| | | public R queryRecordWithPage(@RequestBody @Valid PageIdentityAuthRecordDTO pageIdentityAuthRecordDTO) { |
| | | pageIdentityAuthRecordDTO.setSubmitUserId(this.getUserId()); |
| | | return communityService.queryRecordWithPage(pageIdentityAuthRecordDTO); |
| | | } |