feat(bookstack-api-7qx): implement Comments CRUD
Add CommentsService with List, Get, Create, Update, Delete. Support nested comments via parent_id. Register service on Client. Add types and tests.
This commit is contained in:
parent
256361e90b
commit
0a1cd5ef38
6 changed files with 201 additions and 5 deletions
|
|
@ -34,6 +34,7 @@ type Client struct {
|
|||
Attachments *AttachmentsService
|
||||
Books *BooksService
|
||||
Chapters *ChaptersService
|
||||
Comments *CommentsService
|
||||
Pages *PagesService
|
||||
Search *SearchService
|
||||
Shelves *ShelvesService
|
||||
|
|
@ -74,6 +75,7 @@ func NewClient(cfg Config) (*Client, error) {
|
|||
c.Attachments = &AttachmentsService{client: c}
|
||||
c.Books = &BooksService{client: c}
|
||||
c.Chapters = &ChaptersService{client: c}
|
||||
c.Comments = &CommentsService{client: c}
|
||||
c.Pages = &PagesService{client: c}
|
||||
c.Search = &SearchService{client: c}
|
||||
c.Shelves = &ShelvesService{client: c}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue