增加取消置顶接口
This commit is contained in:
parent
9bcdd78bae
commit
b7ce167d5f
|
@ -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("查询能力资源详细信息")
|
||||
|
|
Loading…
Reference in New Issue