初始化项目框架,完成部分接口开发
This commit is contained in:
26
internal/model/do/chapters.go
Normal file
26
internal/model/do/chapters.go
Normal file
@ -0,0 +1,26 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package do
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// Chapters is the golang structure of table chapters for DAO operations like Where/Data.
|
||||
type Chapters struct {
|
||||
g.Meta `orm:"table:chapters, do:true"`
|
||||
Id interface{} // 章节ID
|
||||
BookId interface{} // 小说ID
|
||||
Title interface{} // 章节标题
|
||||
Content interface{} // 章节内容
|
||||
WordCount interface{} // 章节字数
|
||||
Sort interface{} // 排序序号
|
||||
IsLocked interface{} // 是否锁定:0=免费,1=需积分解锁
|
||||
RequiredScore interface{} // 解锁该章节所需积分
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
}
|
||||
Reference in New Issue
Block a user