|
@@ -83,17 +83,17 @@ public class PcCoachInfoController extends BaseController{
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 删除教练
|
|
|
+ * 删除教练(逻辑删除)
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('coach:info:remove')")
|
|
|
@Log(title = "教练", businessType = BusinessTypeEnum.DELETE)
|
|
|
- @DeleteMapping("/{coachnums}")
|
|
|
+ @DeleteMapping("/{ids}")
|
|
|
@ApiOperation("删除教练")
|
|
|
- public Response<Integer> remove(
|
|
|
+ public Response<Integer> removeCoach(
|
|
|
@ApiParam(name = "coachnums", value = "教练ids参数", required = true)
|
|
|
- @PathVariable String[] coachnums
|
|
|
+ @PathVariable Long[] ids
|
|
|
){
|
|
|
- return toResponse(coachInfoService.removeByIds(Arrays.asList(coachnums)) ? 1 : 0);
|
|
|
+ return toResponse(coachInfoService.removeCoach(ids) ? 1 : 0);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -102,13 +102,13 @@ public class PcCoachInfoController extends BaseController{
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('coach:info:resetPassword')")
|
|
|
@Log(title = "教练", businessType = BusinessTypeEnum.UPDATE)
|
|
|
- @PostMapping("/resetPassword/{coachnums}")
|
|
|
+ @PostMapping("/resetPassword/{ids}")
|
|
|
@ApiOperation("pc教练密码重置")
|
|
|
public Response<Integer> resetPassword(
|
|
|
- @ApiParam(name = "coachnums", value = "教练员全国统一编号集合", required = true)
|
|
|
- @PathVariable String[] coachnums
|
|
|
+ @ApiParam(name = "ids", value = "教练ids", required = true)
|
|
|
+ @PathVariable Long[] ids
|
|
|
){
|
|
|
- return toResponse(coachInfoService.resetPassword(coachnums) ? 1 : 0);
|
|
|
+ return toResponse(coachInfoService.resetPassword(ids) ? 1 : 0);
|
|
|
}
|
|
|
|
|
|
|