初始化项目框架,完成部分接口开发
This commit is contained in:
32
internal/model/do/books.go
Normal file
32
internal/model/do/books.go
Normal file
@ -0,0 +1,32 @@
|
||||
// =================================================================================
|
||||
// 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"
|
||||
)
|
||||
|
||||
// Books is the golang structure of table books for DAO operations like Where/Data.
|
||||
type Books struct {
|
||||
g.Meta `orm:"table:books, do:true"`
|
||||
Id interface{} // 小说ID
|
||||
AuthorId interface{} // 作者ID
|
||||
CategoryId interface{} // 分类ID
|
||||
Title interface{} // 小说标题
|
||||
CoverUrl interface{} // 封面图片URL
|
||||
Description interface{} // 小说简介
|
||||
Status interface{} // 状态:1=连载中,2=完结,3=下架
|
||||
WordsCount interface{} // 字数
|
||||
ChaptersCount interface{} // 章节数
|
||||
LatestChapterId interface{} // 最新章节ID
|
||||
Rating interface{} // 评分(0.00~10.00)
|
||||
ReadCount interface{} // 阅读人数
|
||||
Tags interface{} // 标签(逗号分隔)
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
IsRecommended interface{} // 是否推荐:0=否,1=是
|
||||
}
|
||||
Reference in New Issue
Block a user