|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|