书籍列表接口新增参数
This commit is contained in:
23
internal/model/entity/ad_event_logs.go
Normal file
23
internal/model/entity/ad_event_logs.go
Normal file
@ -0,0 +1,23 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// AdEventLogs is the golang structure for table ad_event_logs.
|
||||
type AdEventLogs struct {
|
||||
Id int64 `json:"id" orm:"id" description:"广告事件ID"` // 广告事件ID
|
||||
UserId int64 `json:"userId" orm:"user_id" description:"用户ID"` // 用户ID
|
||||
AdsPlatId int `json:"adsPlatId" orm:"ads_plat_id" description:"平台ID:1-META,2-ADMOB"` // 平台ID:1-META,2-ADMOB
|
||||
AdsCategoryId int `json:"adsCategoryId" orm:"ads_category_id" description:"广告类型:1-横幅,2-插页,3-激励插页,4-激励,5-原生,6-开屏"` // 广告类型:1-横幅,2-插页,3-激励插页,4-激励,5-原生,6-开屏
|
||||
AppPackage string `json:"appPackage" orm:"app_package" description:"App包名"` // App包名
|
||||
Status int `json:"status" orm:"status" description:"广告状态:1-拉取失败,2-拉取成功,3-显示失败,4-显示成功,5-未观看完成,6-观看完成,7-未点击,8-已点击,9-未下载,10-已下载"` // 广告状态:1-拉取失败,2-拉取成功,3-显示失败,4-显示成功,5-未观看完成,6-观看完成,7-未点击,8-已点击,9-未下载,10-已下载
|
||||
StatusDesc string `json:"statusDesc" orm:"status_desc" description:"状态描述"` // 状态描述
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
|
||||
}
|
||||
19
internal/model/entity/ad_event_transitions.go
Normal file
19
internal/model/entity/ad_event_transitions.go
Normal file
@ -0,0 +1,19 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// AdEventTransitions is the golang structure for table ad_event_transitions.
|
||||
type AdEventTransitions struct {
|
||||
Id int64 `json:"id" orm:"id" description:"状态流转记录ID"` // 状态流转记录ID
|
||||
EventId int64 `json:"eventId" orm:"event_id" description:"所属广告事件ID,关联ad_event_logs.id"` // 所属广告事件ID,关联ad_event_logs.id
|
||||
FromStatus int `json:"fromStatus" orm:"from_status" description:"原状态(首次记录为空)"` // 原状态(首次记录为空)
|
||||
ToStatus int `json:"toStatus" orm:"to_status" description:"目标状态"` // 目标状态
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"状态变更时间"` // 状态变更时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
|
||||
}
|
||||
@ -10,12 +10,13 @@ import (
|
||||
|
||||
// Authors is the golang structure for table authors.
|
||||
type Authors struct {
|
||||
Id int64 `json:"id" orm:"id" description:"作者ID"` // 作者ID
|
||||
UserId int64 `json:"userId" orm:"user_id" description:"用户ID"` // 用户ID
|
||||
PenName string `json:"penName" orm:"pen_name" description:"笔名"` // 笔名
|
||||
Bio string `json:"bio" orm:"bio" description:"作者简介"` // 作者简介
|
||||
Status int `json:"status" orm:"status" description:"状态:1=正常,2=禁用"` // 状态:1=正常,2=禁用
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
|
||||
Id int64 `json:"id" orm:"id" description:"作者ID"` // 作者ID
|
||||
UserId int64 `json:"userId" orm:"user_id" description:"用户ID"` // 用户ID
|
||||
PenName string `json:"penName" orm:"pen_name" description:"笔名"` // 笔名
|
||||
Bio string `json:"bio" orm:"bio" description:"作者简介"` // 作者简介
|
||||
FollowerCount uint `json:"followerCount" orm:"follower_count" description:"粉丝数量"` // 粉丝数量
|
||||
Status int `json:"status" orm:"status" description:"状态:1=正常,2=待审核, 3=未通过"` // 状态:1=正常,2=待审核, 3=未通过
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
|
||||
}
|
||||
|
||||
22
internal/model/entity/book_recommendations.go
Normal file
22
internal/model/entity/book_recommendations.go
Normal file
@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// BookRecommendations is the golang structure for table book_recommendations.
|
||||
type BookRecommendations struct {
|
||||
Id int64 `json:"id" orm:"id" description:"主键"` // 主键
|
||||
BookId int64 `json:"bookId" orm:"book_id" description:"书籍ID,关联 books 表"` // 书籍ID,关联 books 表
|
||||
Type int `json:"type" orm:"type" description:"推荐类型:1=首页Banner,2=编辑推荐,3=分类推荐等"` // 推荐类型:1=首页Banner,2=编辑推荐,3=分类推荐等
|
||||
CoverUrl string `json:"coverUrl" orm:"cover_url" description:"推荐封面图(横图)"` // 推荐封面图(横图)
|
||||
SortOrder int `json:"sortOrder" orm:"sort_order" description:"展示排序,越小越靠前"` // 展示排序,越小越靠前
|
||||
Status int `json:"status" orm:"status" description:"是否启用:1=启用,0=禁用"` // 是否启用:1=启用,0=禁用
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
|
||||
}
|
||||
@ -28,5 +28,6 @@ type Books struct {
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
|
||||
IsRecommended int `json:"isRecommended" orm:"is_recommended" description:"是否推荐:0=否,1=是"` // 是否推荐:0=否,1=是
|
||||
IsFeatured int `json:"isFeatured" orm:"is_featured" description:"是否精选:0=否,1=是"` // 是否精选:0=否,1=是
|
||||
IsHot int `json:"isHot" orm:"is_hot" description:"是否热门:0=否,1=是"` // 是否热门:0=否,1=是
|
||||
Language string `json:"language" orm:"language" description:"语言,如 zh=中文,en=英文,jp=日文"` // 语言,如 zh=中文,en=英文,jp=日文
|
||||
}
|
||||
|
||||
22
internal/model/entity/sign_in_reward_details.go
Normal file
22
internal/model/entity/sign_in_reward_details.go
Normal file
@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// SignInRewardDetails is the golang structure for table sign_in_reward_details.
|
||||
type SignInRewardDetails struct {
|
||||
Id int64 `json:"id" orm:"id" description:"主键"` // 主键
|
||||
RuleId int64 `json:"ruleId" orm:"rule_id" description:"规则ID,关联 sign_in_reward_rules 表"` // 规则ID,关联 sign_in_reward_rules 表
|
||||
DayNumber int `json:"dayNumber" orm:"day_number" description:"签到天数(1到cycle_days)"` // 签到天数(1到cycle_days)
|
||||
RewardType int `json:"rewardType" orm:"reward_type" description:"奖励类型:1=积分"` // 奖励类型:1=积分
|
||||
Quantity int `json:"quantity" orm:"quantity" description:"奖励数量,如积分数量或礼包数量"` // 奖励数量,如积分数量或礼包数量
|
||||
Status int `json:"status" orm:"status" description:"记录状态:1=启用,0=禁用"` // 记录状态:1=启用,0=禁用
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
|
||||
}
|
||||
22
internal/model/entity/sign_in_reward_rules.go
Normal file
22
internal/model/entity/sign_in_reward_rules.go
Normal file
@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// SignInRewardRules is the golang structure for table sign_in_reward_rules.
|
||||
type SignInRewardRules struct {
|
||||
Id int64 `json:"id" orm:"id" description:"主键"` // 主键
|
||||
RuleName string `json:"ruleName" orm:"rule_name" description:"规则名称,如“7天签到活动”"` // 规则名称,如“7天签到活动”
|
||||
CycleDays int `json:"cycleDays" orm:"cycle_days" description:"奖励周期天数,如7天"` // 奖励周期天数,如7天
|
||||
StartDate *gtime.Time `json:"startDate" orm:"start_date" description:"活动开始日期"` // 活动开始日期
|
||||
EndDate *gtime.Time `json:"endDate" orm:"end_date" description:"活动结束日期"` // 活动结束日期
|
||||
Status int `json:"status" orm:"status" description:"规则状态:1=启用,0=禁用"` // 规则状态:1=启用,0=禁用
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
|
||||
}
|
||||
11
internal/model/entity/system.go
Normal file
11
internal/model/entity/system.go
Normal file
@ -0,0 +1,11 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
// System is the golang structure for table system.
|
||||
type System struct {
|
||||
Key string `json:"key" orm:"key" description:""` //
|
||||
Value string `json:"value" orm:"value" description:""` //
|
||||
}
|
||||
21
internal/model/entity/task_logs.go
Normal file
21
internal/model/entity/task_logs.go
Normal file
@ -0,0 +1,21 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// TaskLogs is the golang structure for table task_logs.
|
||||
type TaskLogs struct {
|
||||
Id int64 `json:"id" orm:"id" description:"任务日志ID"` // 任务日志ID
|
||||
TaskId int64 `json:"taskId" orm:"task_id" description:"任务ID,关联 tasks.id"` // 任务ID,关联 tasks.id
|
||||
UserId int64 `json:"userId" orm:"user_id" description:"用户ID,关联 users.id"` // 用户ID,关联 users.id
|
||||
RewardPoints int `json:"rewardPoints" orm:"reward_points" description:"本次任务获得的积分"` // 本次任务获得的积分
|
||||
ActionTime *gtime.Time `json:"actionTime" orm:"action_time" description:"操作时间(如完成时间)"` // 操作时间(如完成时间)
|
||||
Status int `json:"status" orm:"status" description:"日志状态:1=有效,2=无效"` // 日志状态:1=有效,2=无效
|
||||
Extra string `json:"extra" orm:"extra" description:"扩展信息,例如来源、IP 等"` // 扩展信息,例如来源、IP 等
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
}
|
||||
19
internal/model/entity/task_types.go
Normal file
19
internal/model/entity/task_types.go
Normal file
@ -0,0 +1,19 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// TaskTypes is the golang structure for table task_types.
|
||||
type TaskTypes struct {
|
||||
Id uint `json:"id" orm:"id" description:"任务类型ID"` // 任务类型ID
|
||||
Name string `json:"name" orm:"name" description:"任务类型名称,例如:广告、写一本书、首次登录"` // 任务类型名称,例如:广告、写一本书、首次登录
|
||||
Description string `json:"description" orm:"description" description:"任务类型描述"` // 任务类型描述
|
||||
Status int `json:"status" orm:"status" description:"状态:1=启用,2=禁用"` // 状态:1=启用,2=禁用
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
}
|
||||
22
internal/model/entity/tasks.go
Normal file
22
internal/model/entity/tasks.go
Normal file
@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// Tasks is the golang structure for table tasks.
|
||||
type Tasks struct {
|
||||
Id int64 `json:"id" orm:"id" description:"任务ID"` // 任务ID
|
||||
TaskType int `json:"taskType" orm:"task_type" description:"任务类型:1=首次登录,2=广告,3=发布书籍"` // 任务类型:1=首次登录,2=广告,3=发布书籍
|
||||
Title string `json:"title" orm:"title" description:"任务标题"` // 任务标题
|
||||
Description string `json:"description" orm:"description" description:"任务描述"` // 任务描述
|
||||
RewardPoints uint `json:"rewardPoints" orm:"reward_points" description:"完成任务奖励的积分数"` // 完成任务奖励的积分数
|
||||
Status int `json:"status" orm:"status" description:"状态:1=启用,2=禁用"` // 状态:1=启用,2=禁用
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
|
||||
}
|
||||
23
internal/model/entity/user_sign_in_logs.go
Normal file
23
internal/model/entity/user_sign_in_logs.go
Normal file
@ -0,0 +1,23 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// UserSignInLogs is the golang structure for table user_sign_in_logs.
|
||||
type UserSignInLogs struct {
|
||||
Id int64 `json:"id" orm:"id" description:"主键"` // 主键
|
||||
UserId int64 `json:"userId" orm:"user_id" description:"用户ID,关联 users 表"` // 用户ID,关联 users 表
|
||||
RuleId int64 `json:"ruleId" orm:"rule_id" description:"规则ID,关联 sign_in_reward_rules 表"` // 规则ID,关联 sign_in_reward_rules 表
|
||||
RewardDetailId int64 `json:"rewardDetailId" orm:"reward_detail_id" description:"奖励详情ID,关联 sign_in_reward_details 表"` // 奖励详情ID,关联 sign_in_reward_details 表
|
||||
SignInDate *gtime.Time `json:"signInDate" orm:"sign_in_date" description:"签到日期"` // 签到日期
|
||||
Quantity int `json:"quantity" orm:"quantity" description:"奖励数量,如积分数量或礼包数量"` // 奖励数量,如积分数量或礼包数量
|
||||
Status int `json:"status" orm:"status" description:"记录状态:1=有效,0=无效"` // 记录状态:1=有效,0=无效
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
|
||||
}
|
||||
@ -10,13 +10,15 @@ import (
|
||||
|
||||
// Users is the golang structure for table users.
|
||||
type Users struct {
|
||||
Id int64 `json:"id" orm:"id" description:"用户ID"` // 用户ID
|
||||
Username string `json:"username" orm:"username" description:"用户名"` // 用户名
|
||||
PasswordHash string `json:"passwordHash" orm:"password_hash" description:"密码哈希"` // 密码哈希
|
||||
Avatar string `json:"avatar" orm:"avatar" description:"头像URL"` // 头像URL
|
||||
Email string `json:"email" orm:"email" description:"邮箱"` // 邮箱
|
||||
Points uint64 `json:"points" orm:"points" description:"积分"` // 积分
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"注册时间"` // 注册时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
|
||||
Id int64 `json:"id" orm:"id" description:"用户ID"` // 用户ID
|
||||
Username string `json:"username" orm:"username" description:"用户名"` // 用户名
|
||||
PasswordHash string `json:"passwordHash" orm:"password_hash" description:"密码哈希"` // 密码哈希
|
||||
Avatar string `json:"avatar" orm:"avatar" description:"头像URL"` // 头像URL
|
||||
Email string `json:"email" orm:"email" description:"邮箱"` // 邮箱
|
||||
Points uint64 `json:"points" orm:"points" description:"积分"` // 积分
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"注册时间"` // 注册时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
|
||||
BackgroundUrl string `json:"backgroundUrl" orm:"background_url" description:"作者背景图"` // 作者背景图
|
||||
AttentionCount int `json:"attentionCount" orm:"attention_count" description:"关注他人的数量 attention count"` // 关注他人的数量 attention count
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user