Fix:获得黑名单

This commit is contained in:
Owen 2025-03-04 11:47:09 +08:00
parent 70bbe04064
commit e02a8108f7
2 changed files with 8 additions and 14 deletions

View File

@ -41,14 +41,14 @@ public class BlackListController {
@PostMapping("/create")
@Operation(summary = "创建黑名单")
@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));
}
@PutMapping("/update")
@Operation(summary = "更新黑名单")
@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);
return success(true);
}

View File

@ -9,21 +9,15 @@ import jakarta.validation.constraints.*;
@Data
public class BlackListSaveReqVO {
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19320")
private Long id;
private Long id;
@Schema(description = "运营商")
private Integer operation;
@Schema(description = "收货地址电话", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "收货地址电话不能为空")
private String addressPhone;
@Schema(description = "身份证", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "身份证不能为空")
private String personIdCard;
private String personIdCard;
@Schema(description = "部门ID", example = "21276")
private Long deptId;
private Long deptId;
}