删除用户附件图片
This commit is contained in:
parent
34663c01b8
commit
57132ca6cf
|
|
@ -51,4 +51,16 @@ public class TbUserImgAppController {
|
||||||
return Result.error("修改用户附件失败");
|
return Result.error("修改用户附件失败");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ResponseBody
|
||||||
|
@PostMapping("/remove")
|
||||||
|
@ApiOperation(value = "删除用户附件", httpMethod = "POST")
|
||||||
|
public Result<String> delete(@RequestBody TbUserImg tbUserImg)
|
||||||
|
{
|
||||||
|
int effectiveRows = tbUserImgService.deleteTbUserImgById(tbUserImg.getId());
|
||||||
|
if(effectiveRows > 0){
|
||||||
|
return Result.success("删除用户附件成功");
|
||||||
|
}
|
||||||
|
return Result.error("删除用户附件失败");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue