Some checks failed
CI / init (pull_request) Has been cancelled
CI / Frontend node 18.16.0 (pull_request) Has been cancelled
CI / Backend go (1.22) (pull_request) Has been cancelled
CI / release-pr (pull_request) Has been cancelled
CI / devops-test (1.22, 18.16.0) (pull_request) Has been cancelled
CI / release-please (pull_request) Has been cancelled
CI / devops-prod (1.22, 18.x) (pull_request) Has been cancelled
CI / docker (pull_request) Has been cancelled
1.4 KiB
1.4 KiB
书籍作者关系 admin 接口
基本信息
- 模块:book
- 资源:书籍作者关系
- 端:admin
- 鉴权:挂载
PrivateGroup,需要JWT + Casbin - 操作审计:创建、更新、单删、批量删除写操作启用
OperationRecord - 路由前缀:
/book
默认 CRUD
| 动作 | Method | 路径 | API 方法 | Service 方法 |
|---|---|---|---|---|
| 创建 | POST |
/book/createBookAuthorRelation |
CreateBookAuthorRelation |
CreateBookAuthorRelation |
| 单删 | DELETE |
/book/deleteBookAuthorRelation |
DeleteBookAuthorRelation |
DeleteBookAuthorRelation |
| 批量删除 | DELETE |
/book/deleteBookAuthorRelationByIds |
DeleteBookAuthorRelationByIds |
DeleteBookAuthorRelationByIds |
| 更新 | PUT |
/book/updateBookAuthorRelation |
UpdateBookAuthorRelation |
UpdateBookAuthorRelation |
| 详情 | GET |
/book/findBookAuthorRelation |
FindBookAuthorRelation |
GetBookAuthorRelation |
| 分页列表 | GET |
/book/getBookAuthorRelationList |
GetBookAuthorRelationList |
GetBookAuthorRelationInfoList |
参数与返回
- 创建、更新:
body使用book.BookAuthorRelation。 - 单删、详情:
query id。 - 批量删除:
query ids[]。 - 分页列表:
query使用bookReq.BookAuthorRelationSearch,返回response.PageResult。 - 详情返回:
bookRes.BookAuthorRelationResponse。