Documentation ¶
Overview ¶
自动生成模板FdArticleAudio
自动生成模板FdArticleGraphic
自动生成模板FdArticleLearn
自动生成模板FdArticleVideo
自动生成模板Comment
自动生成模板LevelOne
自动生成模板LevelThree
自动生成模板LevelTwo
Index ¶
- type ARTICLETYPE
- type BuyArticle
- type Comment
- type FdArticle
- type FdArticleAudio
- type FdArticleCollect
- type FdArticleGraphic
- type FdArticleLearn
- type FdArticleLike
- type FdArticleVideo
- type HotSearch
- type LevelOne
- type LevelThree
- type LevelThreeReq
- type LevelThreeWithArt
- type LevelTwo
- type LevelTwoWithArt
- type ResArticle
- type ResArticleAudio
- type ResArticleGraphic
- type ResArticleVideo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuyArticle ¶
type BuyArticle struct { HmID uint `json:"hm_id" gorm:"column:hmID;"` ArticleID uint `json:"article_id" gorm:"column:article_id;"` FdArticleLearn *FdArticleLearn `json:"-" form:"-" gorm:"->;foreignKey:ArticleID;references:ID;"` // 关联学习文章 }
func (BuyArticle) TableName ¶
func (BuyArticle) TableName() string
type Comment ¶
type Comment struct { global.GVA_MODEL CreatedBy *uint `json:"createdBy" form:"createdBy" gorm:"column:created_by;comment:;"` CreatedUser *user.User `json:"createdUser" form:"createdUser" gorm:"foreignKey:CreatedBy;references:ID;comment:;"` RootId *int `json:"rootId" form:"rootId" gorm:"column:root_id;comment:目标id;"` RootType string `json:"rootType" form:"rootType" gorm:"column:root_type;comment:音频|视频|文章|评论;"` CommentId *int `json:"commentId" form:"commentId" gorm:"column:comment_id;comment:;"` // 回复的评论id TargetComment *Comment `json:"targetComment" form:"targetComment" gorm:"foreignKey:CommentId;references:ID;comment:;"` CommentInfo string `json:"commentInfo" form:"commentInfo" gorm:"column:comment_info;comment:;"` Total int64 `json:"total" form:"total" gorm:"column:total;comment:;"` }
Comment 结构体
type FdArticle ¶
type FdArticle struct { global.GVA_MODEL LevelOneID *int `json:"levelOneID" form:"levelOneID" gorm:"column:level_one_id;comment:类别id;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:二级标识;"` 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:;"` Type ARTICLETYPE `json:"type" form:"type" gorm:"-"` 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;"` 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;"` PV int `json:"pv" form:"pv" gorm:"column:pv;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;"` IsPraise bool `json:"isPraise" form:"isPraise" gorm:"-"` IsCollect bool `json:"isCollect" form:"isCollect" gorm:"-"` }
type FdArticleAudio ¶
type FdArticleAudio struct { global.GVA_MODEL LevelOneID *int `json:"levelOneID" form:"levelOneID" gorm:"column:level_one_id;comment:类别id;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:二级标识;"` 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:视频链接;type:text;"` Text string `json:"text" form:"text" gorm:"column:text;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不是;"` 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;"` 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;"` IsPraise bool `json:"isPraise" form:"isPraise" gorm:"-"` IsCollect bool `json:"isCollect" form:"isCollect" gorm:"-"` }
FdArticleAudio 结构体
func (FdArticleAudio) TableName ¶
func (FdArticleAudio) TableName() string
TableName FdArticleAudio 表名
type FdArticleCollect ¶
type FdArticleCollect struct { UserID uint `json:"userID" form:"userID" gorm:"primarykey;column:user_id;comment:用户id;size:10;"` FdArticleID uint `json:"fdArticleID" form:"fdArticleID" gorm:"primarykey;column:fd_article_id;comment:文章id;size:10;"` FdArticleType string `json:"fdArticleType" form:"fdArticleType" gorm:"primarykey;column:fd_article_type;comment:文章类型;size:10;"` }
func (FdArticleCollect) TableName ¶
func (FdArticleCollect) TableName() string
type 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:"-"` }
FdArticleGraphic 结构体
func (FdArticleGraphic) TableName ¶
func (FdArticleGraphic) TableName() string
TableName FdArticleGraphic 表名
type FdArticleLearn ¶
type FdArticleLearn struct { global.GVA_MODEL LevelOneID *int `` /* 147-byte string literal not displayed */ 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:;"` BuyArticle *BuyArticle `json:"-" form:"-" gorm:"->;foreignKey:ArticleID;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;"` Image string `json:"image" form:"image" gorm:"column:image;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上架 0下架;"` IsPaid *bool `json:"isPaid" form:"isPaid" gorm:"column:is_paid;comment:是否付费 1是 0不是;"` 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:"-"` BuyStatus bool `json:"buyStatus" form:"buyStatus" gorm:"-"` }
FdArticleLearn 结构体
func (FdArticleLearn) TableName ¶
func (FdArticleLearn) TableName() string
type FdArticleLike ¶
type FdArticleLike struct { UserID uint `json:"userID" form:"userID" gorm:"primarykey;column:user_id;comment:用户id;size:10;"` FdArticleID uint `json:"fdArticleID" form:"fdArticleID" gorm:"primarykey;column:fd_article_id;comment:文章id;size:10;"` FdArticleType string `json:"fdArticleType" form:"fdArticleType" gorm:"primarykey;column:fd_article_type;comment:文章类型;size:10;"` }
func (FdArticleLike) TableName ¶
func (FdArticleLike) TableName() string
type FdArticleVideo ¶
type FdArticleVideo struct { global.GVA_MODEL LevelOneID *int `` /* 147-byte string literal not displayed */ 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:"-"` }
FdArticleVideo 结构体
func (FdArticleVideo) TableName ¶
func (FdArticleVideo) TableName() string
TableName FdArticleVideo 表名
type HotSearch ¶
type HotSearch struct { ID uint `json:"id" form:"id" gorm:"column:id;comment:;size:10;"` LevelTwoID int `json:"levelTwoID" form:"levelTwoID" gorm:"column:level_two_id;comment:二级标识;"` Key string `json:"key" form:"key" gorm:"column:key;comment:;size:191;"` Briefly string `json:"briefly" form:"briefly" gorm:"column:briefly;comment:简介;size:191;"` IsVip *bool `json:"isVip" form:"isVip" gorm:"column:is_vip;comment:是否vip可看 1是 2不是;"` 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;"` ForwardNum int `json:"forwardNum" form:"forwardNum" gorm:"column:forward_num;comment:转发量;size:19;"` IsCollect bool `json:"isCollect" form:"isCollect" gorm:"-"` Title string `json:"title" form:"title" gorm:"column:title;comment:;size:191;"` Cover string `json:"cover" form:"cover" gorm:"column:cover;comment:;size:191;"` Types string `json:"types" form:"types" gorm:"column:types;comment:;size:191;"` }
type LevelOne ¶
type LevelOne struct { global.GVA_MODEL Key string `json:"key" form:"key" gorm:"column:key;comment:唯一标识;"` Value string `json:"value" form:"value" gorm:"column:value;comment:展示名称;"` LevelTwos []LevelTwo `json:"levelTwos" form:"levelTwos" gorm:"foreignKey:LevelOneID;references:ID;comment:二级;"` }
LevelOne 结构体
type LevelThree ¶
type LevelThree struct { global.GVA_MODEL Key string `json:"key" form:"key" gorm:"column:key;comment:唯一标识;"` Value string `json:"value" form:"value" gorm:"column:value;comment:展示名称;"` LevelTwoID uint `json:"levelTwoID" form:"levelTwoID" gorm:"column:level_two_id;comment:二级ID;"` }
LevelThree 结构体
type LevelThreeReq ¶
type LevelThreeReq struct { ID uint `json:"id" form:"id" gorm:"column:id;comment:唯一标识;"` Key string `json:"key" form:"key" gorm:"column:key;comment:唯一标识;"` Value string `json:"value" form:"value" gorm:"column:value;comment:展示名称;"` LevelTwoID uint `json:"levelTwoID" form:"levelTwoID" gorm:"column:level_two_id;comment:二级ID;"` List any `json:"list"` }
LevelThree 结构体
type LevelThreeWithArt ¶
type LevelThreeWithArt struct { global.GVA_MODEL Key string `json:"key" form:"key" gorm:"column:key;comment:唯一标识;"` Value string `json:"value" form:"value" gorm:"column:value;comment:展示名称;"` LevelTwoID uint `json:"levelTwoID" form:"levelTwoID" gorm:"column:level_two_id;comment:二级ID;"` Graphics []FdArticleGraphic `json:"articles" form:"articles" gorm:"foreignKey:LevelThreeID;references:ID;comment:;"` Audios []FdArticleAudio `json:"audios" form:"audios" gorm:"foreignKey:LevelThreeID;references:ID;comment:;"` Videos []FdArticleVideo `json:"videos" form:"videos" gorm:"foreignKey:LevelThreeID;references:ID;comment:;"` }
LevelThree 结构体
type LevelTwo ¶
type LevelTwo struct { global.GVA_MODEL Key string `json:"key" form:"key" gorm:"column:key;comment:唯一标识;"` Value string `json:"value" form:"value" gorm:"column:value;comment:展示名称;"` LevelOneID uint `json:"levelOneID" form:"levelOneID" gorm:"column:level_one_id;comment:一级ID;"` LevelThrees []LevelThree `json:"levelThrees" form:"levelThrees" gorm:"foreignKey:LevelTwoID;references:ID;comment:三级;"` }
LevelTwo 结构体
type LevelTwoWithArt ¶
type LevelTwoWithArt struct { global.GVA_MODEL Key string `json:"key" form:"key" gorm:"column:key;comment:唯一标识;"` Value string `json:"value" form:"value" gorm:"column:value;comment:展示名称;"` LevelOneID uint `json:"levelTwoID" form:"levelTwoID" gorm:"column:level_two_id;comment:二级ID;"` Graphics []FdArticleGraphic `json:"articles" form:"articles" gorm:"foreignKey:LevelThreeID;references:ID;comment:;"` Audios []FdArticleAudio `json:"audios" form:"audios" gorm:"foreignKey:LevelTwoID;references:ID;comment:;"` Videos []FdArticleVideo `json:"videos" form:"videos" gorm:"foreignKey:LevelTwoID;references:ID;comment:;"` }
type ResArticle ¶
type ResArticle struct { global.GVA_MODEL LevelOneID *int `json:"levelOneID" form:"levelOneID" gorm:"column:level_one_id;comment:类别id;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:二级标识;"` 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:;"` Type ARTICLETYPE `json:"type" form:"type" gorm:"-"` 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;"` 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;"` PV string `json:"pv" form:"pv" gorm:"column:pv;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;"` IsPraise bool `json:"isPraise" form:"isPraise" gorm:"-"` IsCollect bool `json:"isCollect" form:"isCollect" gorm:"-"` }
type ResArticleAudio ¶
type ResArticleAudio struct { global.GVA_MODEL LevelOneID *int `json:"levelOneID" form:"levelOneID" gorm:"column:level_one_id;comment:类别id;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:二级标识;"` 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:视频链接;type:text;"` Text string `json:"text" form:"text" gorm:"column:text;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不是;"` 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;"` 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;"` IsPraise bool `json:"isPraise" form:"isPraise" gorm:"-"` IsCollect bool `json:"isCollect" form:"isCollect" gorm:"-"` }
func (ResArticleAudio) TableName ¶
func (ResArticleAudio) TableName() string
TableName FdArticleAudio 表名
type ResArticleGraphic ¶
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:"-"` }
func (ResArticleGraphic) TableName ¶
func (ResArticleGraphic) TableName() string
TableName FdArticleGraphic 表名
type ResArticleVideo ¶
type ResArticleVideo struct { global.GVA_MODEL LevelOneID *int `` /* 147-byte string literal not displayed */ 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:"-"` }
func (ResArticleVideo) TableName ¶
func (ResArticleVideo) TableName() string
TableName FdArticleVideo 表名
Source Files ¶
Click to show internal directories.
Click to hide internal directories.