初始化项目框架,完成部分接口开发
This commit is contained in:
21
internal/model/do/admins.go
Normal file
21
internal/model/do/admins.go
Normal file
@ -0,0 +1,21 @@
|
||||
// =================================================================================
|
||||
// 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"
|
||||
)
|
||||
|
||||
// Admins is the golang structure of table admins for DAO operations like Where/Data.
|
||||
type Admins struct {
|
||||
g.Meta `orm:"table:admins, do:true"`
|
||||
Id interface{} // 管理员ID
|
||||
Username interface{} // 管理员用户名
|
||||
PasswordHash interface{} // 密码哈希
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
}
|
||||
23
internal/model/do/authors.go
Normal file
23
internal/model/do/authors.go
Normal file
@ -0,0 +1,23 @@
|
||||
// =================================================================================
|
||||
// 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"
|
||||
)
|
||||
|
||||
// Authors is the golang structure of table authors for DAO operations like Where/Data.
|
||||
type Authors struct {
|
||||
g.Meta `orm:"table:authors, do:true"`
|
||||
Id interface{} // 作者ID
|
||||
UserId interface{} // 用户ID
|
||||
PenName interface{} // 笔名
|
||||
Bio interface{} // 作者简介
|
||||
Status interface{} // 状态:1=正常,2=禁用
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
}
|
||||
21
internal/model/do/book_ratings.go
Normal file
21
internal/model/do/book_ratings.go
Normal file
@ -0,0 +1,21 @@
|
||||
// =================================================================================
|
||||
// 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"
|
||||
)
|
||||
|
||||
// BookRatings is the golang structure of table book_ratings for DAO operations like Where/Data.
|
||||
type BookRatings struct {
|
||||
g.Meta `orm:"table:book_ratings, do:true"`
|
||||
Id interface{} // 评分ID
|
||||
UserId interface{} // 用户ID
|
||||
BookId interface{} // 小说ID
|
||||
Score interface{} // 评分(0~10)
|
||||
Comment interface{} // 用户评论
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
}
|
||||
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=是
|
||||
}
|
||||
22
internal/model/do/bookshelves.go
Normal file
22
internal/model/do/bookshelves.go
Normal file
@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// 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"
|
||||
)
|
||||
|
||||
// Bookshelves is the golang structure of table bookshelves for DAO operations like Where/Data.
|
||||
type Bookshelves struct {
|
||||
g.Meta `orm:"table:bookshelves, do:true"`
|
||||
Id interface{} // 记录ID
|
||||
UserId interface{} // 用户ID
|
||||
BookId interface{} // 小说ID
|
||||
AddedAt *gtime.Time // 加入书架时间
|
||||
LastReadChapterId interface{} // 最后阅读章节ID
|
||||
LastReadPercent interface{} // 阅读进度百分比(0.00~100.00)
|
||||
LastReadAt *gtime.Time // 最后阅读时间
|
||||
}
|
||||
21
internal/model/do/categories.go
Normal file
21
internal/model/do/categories.go
Normal file
@ -0,0 +1,21 @@
|
||||
// =================================================================================
|
||||
// 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"
|
||||
)
|
||||
|
||||
// Categories is the golang structure of table categories for DAO operations like Where/Data.
|
||||
type Categories struct {
|
||||
g.Meta `orm:"table:categories, do:true"`
|
||||
Id interface{} // 分类ID
|
||||
Name interface{} // 分类名称
|
||||
Type interface{} // 分类类型:1=男频, 2=女频
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
}
|
||||
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 // 软删除时间戳
|
||||
}
|
||||
21
internal/model/do/feedbacks.go
Normal file
21
internal/model/do/feedbacks.go
Normal file
@ -0,0 +1,21 @@
|
||||
// =================================================================================
|
||||
// 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"
|
||||
)
|
||||
|
||||
// Feedbacks is the golang structure of table feedbacks for DAO operations like Where/Data.
|
||||
type Feedbacks struct {
|
||||
g.Meta `orm:"table:feedbacks, do:true"`
|
||||
Id interface{} // 反馈ID
|
||||
UserId interface{} // 用户ID
|
||||
Content interface{} // 反馈内容
|
||||
Status interface{} // 处理状态:1=未处理,2=处理中,3=已处理
|
||||
CreatedAt *gtime.Time // 反馈时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
}
|
||||
20
internal/model/do/read_records.go
Normal file
20
internal/model/do/read_records.go
Normal file
@ -0,0 +1,20 @@
|
||||
// =================================================================================
|
||||
// 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"
|
||||
)
|
||||
|
||||
// ReadRecords is the golang structure of table read_records for DAO operations like Where/Data.
|
||||
type ReadRecords struct {
|
||||
g.Meta `orm:"table:read_records, do:true"`
|
||||
Id interface{} // 记录ID
|
||||
UserId interface{} // 用户ID
|
||||
BookId interface{} // 小说ID
|
||||
ChapterId interface{} // 章节ID
|
||||
ReadAt *gtime.Time // 阅读时间
|
||||
}
|
||||
21
internal/model/do/tags.go
Normal file
21
internal/model/do/tags.go
Normal file
@ -0,0 +1,21 @@
|
||||
// =================================================================================
|
||||
// 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"
|
||||
)
|
||||
|
||||
// Tags is the golang structure of table tags for DAO operations like Where/Data.
|
||||
type Tags struct {
|
||||
g.Meta `orm:"table:tags, do:true"`
|
||||
Id interface{} // 标签ID
|
||||
Name interface{} // 标签名称
|
||||
Type interface{} // 标签类型:1=主题, 2=角色, 3=情节
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
}
|
||||
21
internal/model/do/user_chapter_purchases.go
Normal file
21
internal/model/do/user_chapter_purchases.go
Normal file
@ -0,0 +1,21 @@
|
||||
// =================================================================================
|
||||
// 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"
|
||||
)
|
||||
|
||||
// UserChapterPurchases is the golang structure of table user_chapter_purchases for DAO operations like Where/Data.
|
||||
type UserChapterPurchases struct {
|
||||
g.Meta `orm:"table:user_chapter_purchases, do:true"`
|
||||
Id interface{} // 购买记录ID
|
||||
UserId interface{} // 用户ID
|
||||
BookId interface{} // 小说ID
|
||||
ChapterId interface{} // 章节ID
|
||||
PointsUsed interface{} // 消耗积分数
|
||||
PurchaseTime *gtime.Time // 购买时间
|
||||
}
|
||||
19
internal/model/do/user_follow_authors.go
Normal file
19
internal/model/do/user_follow_authors.go
Normal file
@ -0,0 +1,19 @@
|
||||
// =================================================================================
|
||||
// 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"
|
||||
)
|
||||
|
||||
// UserFollowAuthors is the golang structure of table user_follow_authors for DAO operations like Where/Data.
|
||||
type UserFollowAuthors struct {
|
||||
g.Meta `orm:"table:user_follow_authors, do:true"`
|
||||
Id interface{} // 关注ID
|
||||
UserId interface{} // 用户ID
|
||||
AuthorId interface{} // 作者ID
|
||||
FollowedAt *gtime.Time // 关注时间
|
||||
}
|
||||
19
internal/model/do/user_points.go
Normal file
19
internal/model/do/user_points.go
Normal file
@ -0,0 +1,19 @@
|
||||
// =================================================================================
|
||||
// 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"
|
||||
)
|
||||
|
||||
// UserPoints is the golang structure of table user_points for DAO operations like Where/Data.
|
||||
type UserPoints struct {
|
||||
g.Meta `orm:"table:user_points, do:true"`
|
||||
Id interface{} // 积分账户ID
|
||||
UserId interface{} // 用户ID
|
||||
PointsBalance interface{} // 当前积分余额
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
}
|
||||
22
internal/model/do/user_points_logs.go
Normal file
22
internal/model/do/user_points_logs.go
Normal file
@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// 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"
|
||||
)
|
||||
|
||||
// UserPointsLogs is the golang structure of table user_points_logs for DAO operations like Where/Data.
|
||||
type UserPointsLogs struct {
|
||||
g.Meta `orm:"table:user_points_logs, do:true"`
|
||||
Id interface{} // 积分流水ID
|
||||
UserId interface{} // 用户ID
|
||||
ChangeType interface{} // 变动类型,例如 earn、spend、refund 等
|
||||
PointsChange interface{} // 积分变化数,正数增加,负数减少
|
||||
RelatedOrderId interface{} // 关联订单ID
|
||||
Description interface{} // 变动说明
|
||||
CreatedAt *gtime.Time // 变动时间
|
||||
}
|
||||
24
internal/model/do/users.go
Normal file
24
internal/model/do/users.go
Normal file
@ -0,0 +1,24 @@
|
||||
// =================================================================================
|
||||
// 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"
|
||||
)
|
||||
|
||||
// Users is the golang structure of table users for DAO operations like Where/Data.
|
||||
type Users struct {
|
||||
g.Meta `orm:"table:users, do:true"`
|
||||
Id interface{} // 用户ID
|
||||
Username interface{} // 用户名
|
||||
PasswordHash interface{} // 密码哈希
|
||||
Avatar interface{} // 头像URL
|
||||
Email interface{} // 邮箱
|
||||
Points interface{} // 积分
|
||||
CreatedAt *gtime.Time // 注册时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
}
|
||||
Reference in New Issue
Block a user