增加取消置顶接口

This commit is contained in:
wangliwen 2022-08-17 11:16:34 +08:00
parent 9bcdd78bae
commit b7ce167d5f
1 changed files with 10 additions and 0 deletions

View File

@ -163,6 +163,16 @@ public class ResourceController {
return new Result<>().ok(id);
}
@PutMapping("/cancel_pin_top/{id}")
@LogOperation(value = "取消置顶该能力资源")
public Result cancelPinTop(@PathVariable("id") Long id) {
ResourceDTO data = resourceService.get(id);
data.setPinTop(0);
data.setPinTopTime(new Date());
resourceService.update(data);
return new Result<>().ok(id);
}
@GetMapping("/{id}")
@ApiOperation("查询能力资源详细信息")
@LogOperation("查询能力资源详细信息")