Documentation
¶
Index ¶
Constants ¶
View Source
const TableNameTbArticle = "tb_article"
TableNameTbArticle return the table name of <tb_article>
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TbArticle ¶
type TbArticle struct { global.GVA_MODEL UserId int `gorm:"column:user_id;type:int;not null;comment:作者;" json:"user_id"` CategoryId *int `gorm:"column:category_id;type:int;comment:文章分类;" json:"category_id"` ArticleCover *string `gorm:"column:article_cover;type:varchar(1024);comment:文章缩略图;" json:"article_cover"` ArticleTitle string `gorm:"column:article_title;type:varchar(50);not null;comment:标题;" json:"article_title"` ArticleContent string `gorm:"column:article_content;type:longtext;not null;comment:内容;" json:"article_content"` Type int `gorm:"column:type;type:tinyint;not null;default:0;comment:文章类型 1原创 2转载 3翻译;" json:"type"` OriginalUrl *string `gorm:"column:original_url;type:varchar(255);comment:原文链接;" json:"original_url"` IsTop bool `gorm:"column:is_top;type:tinyint(1);default:0;comment:是否置顶 0否 1是;" json:"is_top"` IsDelete bool `gorm:"column:is_delete;type:tinyint(1);default:0;comment:是否删除 0否 1是;" json:"is_delete"` Status int `gorm:"column:status;type:tinyint;not null;default:1;comment:状态值 1公开 2私密 3评论可见;" json:"status"` }
TbArticle mapped from table <tb_article>
Click to show internal directories.
Click to hide internal directories.