3 Star 1 Fork 901

高煜涛/gin-vue-admin

forked from pixel/gin-vue-admin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
fd_article_video.go 6.51 KB
一键复制 编辑 原始数据 按行查看 历史
高煜涛 提交于 2024-06-27 13:13 . 24/6/27
// 自动生成模板FdArticleVideo
package hierarchy
import (
"gitee.com/g-qs/gin-vue-admin/server/global"
)
// FdArticleVideo 结构体
type FdArticleVideo struct {
global.GVA_MODEL
LevelOneID *int `json:"levelOneID" form:"levelOneID" gorm:"column:level_one_id;comment:类别id tips:用于记录所属分类1;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:19;"`
LevelTwo *LevelTwo `json:"levelTwo" form:"levelTwo" gorm:"foreignKey:LevelTwoID;references:ID;comment:;"`
LevelThreeID *int `json:"levelThreeID" form:"levelThreeID" gorm:"column:level_three_id;comment:三级标识;"`
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:;"`
Title string `json:"title" form:"title" gorm:"column:title;comment:标题;size:191;"`
Briefly string `json:"briefly" form:"briefly" gorm:"column:briefly;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;"`
Text string `json:"text" form:"text" gorm:"column:text;comment:训练器械;size:191;"`
Textt string `json:"textt" form:"textt" gorm:"column:textt;comment:使用要点;type:text;"`
Texttt string `json:"texttt" form:"texttt" gorm:"column:texttt;comment:使用须知;type:text;"`
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不是;"`
PV int `json:"pv" form:"pv" gorm:"column:pv;comment:浏览量;size:19;"`
SearchNumber int `json:"searchNumber" form:"searchNumber" gorm:"column:search_number;comment:搜索量;size:19;"`
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;"`
IsPraise bool `json:"isPraise" form:"isPraise" gorm:"-"`
IsCollect bool `json:"isCollect" form:"isCollect" gorm:"-"`
}
type ResArticleVideo struct {
global.GVA_MODEL
LevelOneID *int `json:"levelOneID" form:"levelOneID" gorm:"column:level_one_id;comment:类别id tips:用于记录所属分类1;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:19;"`
LevelTwo *LevelTwo `json:"levelTwo" form:"levelTwo" gorm:"foreignKey:LevelTwoID;references:ID;comment:;"`
LevelThreeID *int `json:"levelThreeID" form:"levelThreeID" gorm:"column:level_three_id;comment:三级标识;"`
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:;"`
Title string `json:"title" form:"title" gorm:"column:title;comment:标题;size:191;"`
Briefly string `json:"briefly" form:"briefly" gorm:"column:briefly;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;"`
Text string `json:"text" form:"text" gorm:"column:text;comment:训练器械;size:191;"`
Textt string `json:"textt" form:"textt" gorm:"column:textt;comment:使用要点;type:text;"`
Texttt string `json:"texttt" form:"texttt" gorm:"column:texttt;comment:使用须知;type:text;"`
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不是;"`
PV string `json:"pv" form:"pv" gorm:"column:pv;comment:浏览量;size:19;"`
SearchNumber int `json:"searchNumber" form:"searchNumber" gorm:"column:search_number;comment:搜索量;size:19;"`
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;"`
IsPraise bool `json:"isPraise" form:"isPraise" gorm:"-"`
IsCollect bool `json:"isCollect" form:"isCollect" gorm:"-"`
}
// TableName FdArticleVideo 表名
func (FdArticleVideo) TableName() string {
return "fd_article_video"
}
// TableName FdArticleVideo 表名
func (ResArticleVideo) TableName() string {
return "fd_article_video"
}
马建仓 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
533102b8437a

搜索帮助