3 Star 1 Fork 919

高煜涛/gin-vue-admin

forked from pixel/gin-vue-admin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
fd_article_graphic.go 5.79 KB
一键复制 编辑 原始数据 按行查看 历史
高煜涛 提交于 2024-06-27 13:13 . 24/6/27
// 自动生成模板FdArticleGraphic
package hierarchy
import (
"gitee.com/g-qs/gin-vue-admin/server/global"
)
// FdArticleGraphic 结构体
type FdArticleGraphic struct {
global.GVA_MODEL
LevelOneID *int `json:"levelOneID" form:"levelOneID" gorm:"column:level_one_id;comment:类别id tips:用于记录所属分类;size:10;"`
LevelOne *LevelOne `json:"levelOne" form:"levelOne" gorm:"foreignKey:LevelOneID;references:ID;comment:;"`
LevelTwoID *int `json:"levelTwoID" form:"levelTwoID" gorm:"column:level_two_id;comment:;size:10;"`
LevelTwo *LevelTwo `json:"levelTwo" form:"levelTwo" gorm:"foreignKey:LevelTwoID;references:ID;comment:;"`
LevelThreeID *int `json:"levelThreeID" form:"levelThreeID" gorm:"column:level_three_id;comment:;size:10;"`
LevelThree *LevelThree `json:"levelThree" form:"levelThree" gorm:"foreignKey:LevelThreeID;references:ID;comment:;"`
FdArticleLike *FdArticleLike `json:"-" form:"-" gorm:"->;foreignKey:FdArticleID;references:ID;comment:;"`
FdArticleCollect *FdArticleCollect `json:"-" form:"-" gorm:"->;foreignKey:FdArticleID;references:ID;comment:;"`
Briefly string `json:"briefly" form:"briefly" gorm:"column:briefly;comment:简介;size:191;"`
Title string `json:"title" form:"title" gorm:"column:title;comment:标题;size:191;"`
Cover string `json:"cover" form:"cover" gorm:"column:cover;comment:封面;size:191;"`
VideoLink string `json:"videoLink" form:"videoLink" gorm:"column:video_link;comment:视频链接;size:191;"`
Details string `json:"details" form:"details" gorm:"column:details;comment:详情;type:text;"`
Status *bool `json:"status" form:"status" gorm:"column:status;comment:状态 1上架 2下架;"`
IsVip *bool `json:"isVip" form:"isVip" gorm:"column:is_vip;comment:是否vip可看 1是 2不是;"`
PraiseNum int `json:"praiseNum" form:"praiseNum" gorm:"column:praise_num;comment:点赞量;size:19;"`
CollectNum int `json:"collectNum" form:"collectNum" gorm:"column:collect_num;comment:收藏量;size:19;"`
ForwardNum int `json:"forwardNum" form:"forwardNum" gorm:"column:forward_num;comment:转发量;size:19;"`
CommentNum int `json:"comment_num" form:"comment_num" gorm:"column:comment_num;comment:评论量;size:19;"`
SearchNumber int `json:"searchNumber" form:"searchNumber" gorm:"column:search_number;comment:搜索量;size:19;"`
PV int `json:"pv" form:"pv" gorm:"column:pv;comment:浏览量;size:19;"`
IsPraise bool `json:"isPraise" form:"isPraise" gorm:"-"`
IsCollect bool `json:"isCollect" form:"isCollect" gorm:"-"`
}
type ResArticleGraphic struct {
global.GVA_MODEL
LevelOneID *int `json:"levelOneID" form:"levelOneID" gorm:"column:level_one_id;comment:类别id tips:用于记录所属分类;size:10;"`
LevelOne *LevelOne `json:"levelOne" form:"levelOne" gorm:"foreignKey:LevelOneID;references:ID;comment:;"`
LevelTwoID *int `json:"levelTwoID" form:"levelTwoID" gorm:"column:level_two_id;comment:;size:10;"`
LevelTwo *LevelTwo `json:"levelTwo" form:"levelTwo" gorm:"foreignKey:LevelTwoID;references:ID;comment:;"`
LevelThreeID *int `json:"levelThreeID" form:"levelThreeID" gorm:"column:level_three_id;comment:;size:10;"`
LevelThree *LevelThree `json:"levelThree" form:"levelThree" gorm:"foreignKey:LevelThreeID;references:ID;comment:;"`
FdArticleLike *FdArticleLike `json:"-" form:"-" gorm:"->;foreignKey:FdArticleID;references:ID;comment:;"`
FdArticleCollect *FdArticleCollect `json:"-" form:"-" gorm:"->;foreignKey:FdArticleID;references:ID;comment:;"`
Briefly string `json:"briefly" form:"briefly" gorm:"column:briefly;comment:简介;size:191;"`
Title string `json:"title" form:"title" gorm:"column:title;comment:标题;size:191;"`
Cover string `json:"cover" form:"cover" gorm:"column:cover;comment:封面;size:191;"`
VideoLink string `json:"videoLink" form:"videoLink" gorm:"column:video_link;comment:视频链接;size:191;"`
Details string `json:"details" form:"details" gorm:"column:details;comment:详情;type:text;"`
Status *bool `json:"status" form:"status" gorm:"column:status;comment:状态 1上架 2下架;"`
IsVip *bool `json:"isVip" form:"isVip" gorm:"column:is_vip;comment:是否vip可看 1是 2不是;"`
PraiseNum string `json:"praiseNum" form:"praiseNum" gorm:"column:praise_num;comment:点赞量;size:19;"`
CollectNum int `json:"collectNum" form:"collectNum" gorm:"column:collect_num;comment:收藏量;size:19;"`
ForwardNum int `json:"forwardNum" form:"forwardNum" gorm:"column:forward_num;comment:转发量;size:19;"`
CommentNum int `json:"comment_num" form:"comment_num" gorm:"column:comment_num;comment:评论量;size:19;"`
SearchNumber int `json:"searchNumber" form:"searchNumber" gorm:"column:search_number;comment:搜索量;size:19;"`
PV string `json:"pv" form:"pv" gorm:"column:pv;comment:浏览量;size:19;"`
IsPraise bool `json:"isPraise" form:"isPraise" gorm:"-"`
IsCollect bool `json:"isCollect" form:"isCollect" gorm:"-"`
}
// TableName FdArticleGraphic 表名
func (FdArticleGraphic) TableName() string {
return "fd_article_graphic"
}
// TableName FdArticleGraphic 表名
func (ResArticleGraphic) TableName() string {
return "fd_article_graphic"
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/g-qs/gin-vue-admin.git
git@gitee.com:g-qs/gin-vue-admin.git
g-qs
gin-vue-admin
gin-vue-admin
a5c0f301b910

搜索帮助