Files
novel_server/internal/model/chapter.go

55 lines
1.0 KiB
Go

package model
import "github.com/gogf/gf/v2/frame/g"
type Chapter struct {
g.Meta `orm:"table:chapters"`
Id int64 `json:"id"`
BookId int64 `json:"bookId"`
Title string `json:"title"`
Content string `json:"content"`
WordCount int `json:"wordCount"`
Sort int `json:"sort"`
IsLocked int `json:"isLocked"`
RequiredScore int `json:"requiredScore"`
}
type ChapterListIn struct {
Page int
Size int
BookId int64
Title string
IsLocked int
}
type ChapterListOut struct {
Total int
List []Chapter
}
type ChapterAddIn struct {
BookId int64
Title string
Content string
WordCount int
Sort int
IsLocked int
RequiredScore int
}
type ChapterEditIn struct {
Id int64
BookId int64
Title string
Content string
WordCount int
Sort int
IsLocked int
RequiredScore int
}
type ChapterDelIn struct {
Id int64
}
type ChapterCRUDOut struct {
Success bool
}