diff --git a/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java b/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java index f579c2f0..07ef4c26 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java @@ -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("查询能力资源详细信息")