Article文章模型

Article文章模型是最基本的文章数据模型,您可以在文章页面或者文章函数中拿到文章模型的数据,从而进行文章内容的渲染!

type Article struct {
	Id            int64          
	Title         string         
	Origin        string         
	Description   string         
	Keywords      string         
	Tags          string         
	Img           string         
	Albums        string         
	Content       string         
	Ext           string         
	Views         int32          
	Price         float64        
	Status        int8           
	IsSpider      int8           
	CategoryId    int32          
	Uid           int64          
	Author        string         
	EnableComment int8           
	Like          int32          
	CreatedAt     time.Time      
	UpdatedAt     time.Time      
	DeletedAt     gorm.DeletedAt 
}