书籍列表接口新增参数

This commit is contained in:
2025-08-13 15:19:42 +08:00
parent 6ccc87f2bf
commit 8afe651c64
201 changed files with 6987 additions and 1066 deletions

View 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:"平台ID1-META2-ADMOB"` // 平台ID1-META2-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:"软删除时间戳"` // 软删除时间戳
}

View 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:"软删除时间戳"` // 软删除时间戳
}

View File

@ -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:"软删除时间戳"` // 软删除时间戳
}

View 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=首页Banner2=编辑推荐3=分类推荐等"` // 推荐类型1=首页Banner2=编辑推荐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:"软删除时间戳"` // 软删除时间戳
}

View File

@ -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=日文
}

View 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:"软删除时间戳"` // 软删除时间戳
}

View 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:"软删除时间戳"` // 软删除时间戳
}

View 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:""` //
}

View 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:"创建时间"` // 创建时间
}

View 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:"更新时间"` // 更新时间
}

View 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:"软删除时间戳"` // 软删除时间戳
}

View 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:"软删除时间戳"` // 软删除时间戳
}

View File

@ -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
}