我的收藏列表取消收藏
This commit is contained in:
+14
@@ -152,4 +152,18 @@ public class LawsStandardCollectionController extends JeroController<LawsStandar
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消收藏
|
||||
*/
|
||||
@AutoLog(value = "标准收藏-我的收藏列表取消收藏")
|
||||
@ApiOperation(value="标准收藏-我的收藏列表取消收藏", notes="标准收藏-我的收藏列表取消收藏")
|
||||
@PostMapping(value = "/delete")
|
||||
public Result<T> delete(@RequestBody Map<String, String> map) {
|
||||
if(!map.containsKey("id") || StringUtils.isEmpty(map.get("id"))){
|
||||
return Result.error("请选择数据!");
|
||||
}
|
||||
lawsStandardCollectionService.removeById(map.get("id"));
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user