初始化项目框架,完成部分接口开发

This commit is contained in:
2025-07-10 21:04:29 +08:00
commit b2871ec0d2
168 changed files with 6399 additions and 0 deletions

View File

@ -0,0 +1,30 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// 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=是
}