Commit d2010f1b authored by tangtuo's avatar tangtuo

新增获取著作权人详情的接口

parent 349382f7
......@@ -116,6 +116,6 @@ public class DraftServiceImpl extends ServiceImpl<DraftMapper, Draft> implements
Instant instant = Instant.now().minus(Duration.ofMinutes(minutes));
QueryWrapper<Draft> queryWrapper = new QueryWrapper<>();
queryWrapper.le("create_date", instant);
return this.list();
return this.list(queryWrapper);
}
}
......@@ -58,6 +58,12 @@ public class CopyrightOwnerController {
return ResponseModel.success(list);
}
@GetMapping(value = "/detail/{id}")
@ApiOperation(value = "获取著作权人详情")
public ResponseModel<CopyrightOwner> getById(@PathVariable Integer id) {
return ResponseModel.success(copyrightOwnerService.getById(id));
}
@PostMapping("/update")
@ApiOperation(value = "修改")
public ResponseModel<Boolean> update(@Validated @RequestBody CopyrightOwner owner) {
......
spring:
profiles:
active: nj
active: dev
application:
name: joying-portal
servlet:
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment