fix: 分组查重接口优化

分组查重接口优化
main
hong.yang 2 years ago
parent 3dc5b16ae8
commit c7ac1fe97d

@ -71,7 +71,6 @@ public class TypeController {
@PostMapping("/nameRepeat")
@ApiOperation(value = "分类名称重复校验", position = 40, produces = MediaType.APPLICATION_JSON_VALUE)
public R<Boolean> nameRepeat(@RequestBody TypeDTO typeDTO) {
ValidatorUtils.validateEntity(typeDTO, Update.class);
Boolean flag = typeService.checkNameRepeat(typeDTO.getId(), typeDTO.getType(), typeDTO.getName());
return R.success(flag);
}

Loading…
Cancel
Save