Files
xuanzhi-service/server/model/book/response/book.go
2026-04-27 10:12:21 +08:00

40 lines
1.2 KiB
Go

package response
import "github.com/flipped-aurora/gin-vue-admin/server/model/book"
type BookResponse struct {
Book book.Book `json:"book"`
}
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"`
}
type BookCommentResponse struct {
BookComment book.BookComment `json:"bookComment"`
}
type BookCommentLikeRecordResponse struct {
BookCommentLikeRecord book.BookCommentLikeRecord `json:"bookCommentLikeRecord"`
}
type BookFavoriteRecordResponse struct {
BookFavoriteRecord book.BookFavoriteRecord `json:"bookFavoriteRecord"`
}
type BookReadRecordResponse struct {
BookReadRecord book.BookReadRecord `json:"bookReadRecord"`
}
type BookSeriesResponse struct {
BookSeries book.BookSeries `json:"bookSeries"`
}