完善功能

This commit is contained in:
2025-07-16 15:16:40 +08:00
parent b2871ec0d2
commit f68a5b360b
123 changed files with 4643 additions and 931 deletions

View File

@ -10,21 +10,23 @@ import (
// Books is the golang structure for table books.
type Books struct {
Id int64 `json:"id" orm:"id" description:"小说ID"` // 小说ID
AuthorId int64 `json:"authorId" orm:"author_id" description:"作者ID"` // 作者ID
CategoryId int64 `json:"categoryId" orm:"category_id" description:"分类ID"` // 分类ID
Title string `json:"title" orm:"title" description:"小说标题"` // 小说标题
CoverUrl string `json:"coverUrl" orm:"cover_url" description:"封面图片URL"` // 封面图片URL
Description string `json:"description" orm:"description" description:"小说简介"` // 小说简介
Status int `json:"status" orm:"status" description:"状态1=连载中2=完结3=下架"` // 状态1=连载中2=完结3=下架
WordsCount int `json:"wordsCount" orm:"words_count" description:"字数"` // 字数
ChaptersCount int `json:"chaptersCount" orm:"chapters_count" description:"章节数"` // 章节数
LatestChapterId int64 `json:"latestChapterId" orm:"latest_chapter_id" description:"最新章节ID"` // 最新章节ID
Rating float64 `json:"rating" orm:"rating" description:"评分0.00~10.00"` // 评分0.00~10.00
ReadCount int64 `json:"readCount" orm:"read_count" description:"读人数"` // 读人数
Tags string `json:"tags" orm:"tags" 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:"软删除时间戳"` // 软删除时间戳
IsRecommended int `json:"isRecommended" orm:"is_recommended" description:"是否推荐0=否1=是"` // 是否推荐0=否1=是
Id int64 `json:"id" orm:"id" description:"小说ID"` // 小说ID
AuthorId int64 `json:"authorId" orm:"author_id" description:"作者ID"` // 作者ID
CategoryId int64 `json:"categoryId" orm:"category_id" description:"分类ID"` // 分类ID
Title string `json:"title" orm:"title" description:"小说标题"` // 小说标题
CoverUrl string `json:"coverUrl" orm:"cover_url" description:"封面图片URL"` // 封面图片URL
Description string `json:"description" orm:"description" description:"小说简介"` // 小说简介
Status int `json:"status" orm:"status" description:"状态1=连载中2=完结3=下架"` // 状态1=连载中2=完结3=下架
WordsCount int `json:"wordsCount" orm:"words_count" description:"字数"` // 字数
ChaptersCount int `json:"chaptersCount" orm:"chapters_count" description:"章节数"` // 章节数
Rating float64 `json:"rating" orm:"rating" description:"评分0.00~10.00"` // 评分0.00~10.00
ReadCount int64 `json:"readCount" orm:"read_count" description:"阅读人数"` // 阅读人数
CurrentReaders int64 `json:"currentReaders" orm:"current_readers" description:"读人数"` // 读人数
Tags string `json:"tags" orm:"tags" 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:"软删除时间戳"` // 软删除时间戳
IsRecommended int `json:"isRecommended" orm:"is_recommended" description:"是否推荐0=否1=是"` // 是否推荐0=否1=是
IsFeatured int `json:"isFeatured" orm:"is_featured" description:"是否精选0=否1=是"` // 是否精选0=否1=是
Language string `json:"language" orm:"language" description:"语言,如 zh=中文en=英文jp=日文"` // 语言,如 zh=中文en=英文jp=日文
}