| | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.sangeshenbian.SystemUserVo; |
| | | import com.panzhihua.sangeshenbian.model.entity.PartyMember; |
| | | import com.panzhihua.sangeshenbian.warpper.PartyMemberImportFailedVO; |
| | | import com.panzhihua.sangeshenbian.service.IPartyMemberService; |
| | | import com.panzhihua.sangeshenbian.warpper.PartyMemberDTO; |
| | | import com.panzhihua.sangeshenbian.warpper.PartyMemberImportFailedVO; |
| | | import com.panzhihua.sangeshenbian.warpper.PartyMemberQuery; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import org.springframework.web.bind.annotation.RequestPart; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.validation.Valid; |
| | |
| | | } |
| | | } |
| | | @ApiOperation("审核") |
| | | @GetMapping("/audit/{id}") |
| | | @PostMapping("/audit") |
| | | public R<?> audit(@RequestBody PartyMemberDTO dto) { |
| | | SystemUserVo loginUserInfo = getLoginUserInfoSanGeShenBian(); |
| | | partyMemberService.audit(dto,loginUserInfo); |
| | |
| | | } |
| | | @ApiOperation("校验手机号是否注册党员") |
| | | @GetMapping("/verify/{phone}") |
| | | public R<Boolean> verify(@ApiParam(name = "phone",value = "电话号码",required = true) String phone){ |
| | | public R<Boolean> verify(@ApiParam(name = "phone",value = "电话号码",required = true) @PathVariable("phone") String phone){ |
| | | return R.ok(partyMemberService.verifyPartyMemberByPhone(phone)); |
| | | } |
| | | } |