书籍模块

This commit is contained in:
2026-04-27 10:12:21 +08:00
parent 1e33640629
commit 13db6e89f0
33 changed files with 8820 additions and 738 deletions

View File

@@ -8,9 +8,17 @@ type BookResponse struct {
type BookAuthorResponse struct {
BookAuthor book.BookAuthor `json:"bookAuthor"`
}
type BookAuthorListItem struct {
book.BookAuthor `gorm:"embedded"`
AuthorName string `json:"authorName" gorm:"column:author_name"`
}
type BookAuthorRelationResponse struct {
BookAuthorRelation book.BookAuthorRelation `json:"bookAuthorRelation"`
}
type BookAuthorRelationListItem struct {
book.BookAuthorRelation `gorm:"embedded"`
AuthorName string `json:"authorName" gorm:"column:author_name"`
}
type BookChapterResponse struct {
BookChapter book.BookChapter `json:"bookChapter"`
}