| | |
| | | @Log(title = "学员管理", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "编辑学员") |
| | | @PutMapping |
| | | public CommonResult edit(@Validated @RequestBody ExStudent student){ |
| | | public CommonResult edit(@RequestBody ExStudent student){ |
| | | return CommonResult.success(studentService.updateStudent(student)); |
| | | } |
| | | |
| | |
| | | return CommonResult.success(); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "校验手机号是否唯一") |
| | | @PostMapping(value = "/checkPhoneUnique") |
| | | public CommonResult checkPhoneUnique(@RequestBody ExStudent student){ |
| | | return CommonResult.success(studentService.checkPhoneUnique(student)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "校验身份证是否为一") |
| | | @PostMapping(value = "/checkIdNoUnique") |
| | | public CommonResult checkIdNoUnique(@RequestBody ExStudent student){ |
| | | return CommonResult.success(studentService.checkIdNoUnique(student)); |
| | | } |
| | | } |