40 lines
1.2 KiB
Go
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"`
|
|
}
|