Fix:获得黑名单
This commit is contained in:
parent
70bbe04064
commit
e02a8108f7
|
@ -41,14 +41,14 @@ public class BlackListController {
|
||||||
@PostMapping("/create")
|
@PostMapping("/create")
|
||||||
@Operation(summary = "创建黑名单")
|
@Operation(summary = "创建黑名单")
|
||||||
@PreAuthorize("@ss.hasPermission('haoka:black-list:create')")
|
@PreAuthorize("@ss.hasPermission('haoka:black-list:create')")
|
||||||
public CommonResult<Long> createBlackList(@Valid @RequestBody BlackListSaveReqVO createReqVO) {
|
public CommonResult<Long> createBlackList( @RequestBody BlackListSaveReqVO createReqVO) {
|
||||||
return success(blackListService.createBlackList(createReqVO));
|
return success(blackListService.createBlackList(createReqVO));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping("/update")
|
@PutMapping("/update")
|
||||||
@Operation(summary = "更新黑名单")
|
@Operation(summary = "更新黑名单")
|
||||||
@PreAuthorize("@ss.hasPermission('haoka:black-list:update')")
|
@PreAuthorize("@ss.hasPermission('haoka:black-list:update')")
|
||||||
public CommonResult<Boolean> updateBlackList(@Valid @RequestBody BlackListSaveReqVO updateReqVO) {
|
public CommonResult<Boolean> updateBlackList( @RequestBody BlackListSaveReqVO updateReqVO) {
|
||||||
blackListService.updateBlackList(updateReqVO);
|
blackListService.updateBlackList(updateReqVO);
|
||||||
return success(true);
|
return success(true);
|
||||||
}
|
}
|
||||||
|
@ -92,4 +92,4 @@ public class BlackListController {
|
||||||
BeanUtils.toBean(list, BlackListRespVO.class));
|
BeanUtils.toBean(list, BlackListRespVO.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,21 +9,15 @@ import jakarta.validation.constraints.*;
|
||||||
@Data
|
@Data
|
||||||
public class BlackListSaveReqVO {
|
public class BlackListSaveReqVO {
|
||||||
|
|
||||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19320")
|
private Long id;
|
||||||
private Long id;
|
|
||||||
|
|
||||||
@Schema(description = "运营商")
|
|
||||||
private Integer operation;
|
private Integer operation;
|
||||||
|
|
||||||
@Schema(description = "收货地址电话", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
||||||
@NotEmpty(message = "收货地址电话不能为空")
|
|
||||||
private String addressPhone;
|
private String addressPhone;
|
||||||
|
|
||||||
@Schema(description = "身份证", requiredMode = Schema.RequiredMode.REQUIRED)
|
private String personIdCard;
|
||||||
@NotEmpty(message = "身份证不能为空")
|
|
||||||
private String personIdCard;
|
|
||||||
|
|
||||||
@Schema(description = "部门ID", example = "21276")
|
private Long deptId;
|
||||||
private Long deptId;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue