|
|
@@ -9,6 +9,7 @@ import (
|
|
|
type Article struct {
|
|
|
Id int64 `json:"id"` // 11 0 注释:id
|
|
|
ArticleTitle string `xorm:"article_title" json:"articleTitle"` // 255 0 注释:文章名称
|
|
|
+ ArticleDesc string `xorm:"article_desc" json:"articleDesc"` // 255 0 注释:文章简介
|
|
|
ArticleContent string `xorm:"article_content" json:"articleContent"` // 0 0 注释:文章内容
|
|
|
State string `xorm:"state" json:"state"` // 255 0 注释:状态
|
|
|
ArticleTagIds string `xorm:"article_tag_ids" json:"articleTagIds"` // 255 0 注释:文章标签
|
|
|
@@ -24,18 +25,20 @@ type Article struct {
|
|
|
}
|
|
|
|
|
|
func (receiver Article) String() string {
|
|
|
- return fmt.Sprint("Article{Id:", receiver.Id, ",ArticleTitle:", receiver.ArticleTitle, ",ArticleContent:", receiver.ArticleContent, ",State:", receiver.State, ",ArticleTagIds:", receiver.ArticleTagIds, ",ArticleTopicId:", receiver.ArticleTopicId, ",Image:", receiver.Image, ",PublishTime:", receiver.PublishTime, ",EyeFill:", receiver.EyeFill, ",LikeCount:", receiver.LikeCount, ",CreateBy:", receiver.CreateBy, ",CreateTime:", receiver.CreateTime, ",UpdateBy:", receiver.UpdateBy, ",UpdateTime:", receiver.UpdateTime, "}")
|
|
|
+ return fmt.Sprint("Article{Id:", receiver.Id, ",ArticleTitle:", receiver.ArticleTitle, ",ArticleDesc:", receiver.ArticleDesc, ",ArticleContent:", receiver.ArticleContent, ",State:", receiver.State, ",ArticleTagIds:", receiver.ArticleTagIds, ",ArticleTopicId:", receiver.ArticleTopicId, ",Image:", receiver.Image, ",PublishTime:", receiver.PublishTime, ",EyeFill:", receiver.EyeFill, ",LikeCount:", receiver.LikeCount, ",CreateBy:", receiver.CreateBy, ",CreateTime:", receiver.CreateTime, ",UpdateBy:", receiver.UpdateBy, ",UpdateTime:", receiver.UpdateTime, "}")
|
|
|
}
|
|
|
|
|
|
// ArticleTag 文章标签
|
|
|
type ArticleTag struct {
|
|
|
- Id int64 `json:"id"` // 11 0 注释:
|
|
|
- TagName string `xorm:"tag_name" json:"tagName"` // 255 0 注释:标签名
|
|
|
- TagDesc string `xorm:"tag_desc" json:"tagDesc"` // 255 0 注释:标签描述
|
|
|
+ Id int64 `json:"id"` // 11 0 注释:
|
|
|
+ TagName string `xorm:"tag_name" json:"tagName"` // 255 0 注释:标签名
|
|
|
+ TagDesc string `xorm:"tag_desc" json:"tagDesc"` // 255 0 注释:标签描述
|
|
|
+ TagTextColor string `xorm:"tag_text_color" json:"tagTextColor"` // 10 0 注释:标签字体颜色
|
|
|
+ TagBackgroundColor string `xorm:"tag_background_color" json:"tagBackgroundColor"` // 10 0 注释:标签背景颜色
|
|
|
}
|
|
|
|
|
|
func (receiver ArticleTag) String() string {
|
|
|
- return fmt.Sprint("ArticleTag{Id:", receiver.Id, ",TagName:", receiver.TagName, ",TagDesc:", receiver.TagDesc, "}")
|
|
|
+ return fmt.Sprint("ArticleTag{Id:", receiver.Id, ",TagName:", receiver.TagName, ",TagDesc:", receiver.TagDesc, ",TagTextColor:", receiver.TagTextColor, ",TagBackgroundColor:", receiver.TagBackgroundColor, "}")
|
|
|
}
|
|
|
|
|
|
// ArticleTopic 文章主题
|
|
|
@@ -367,7 +370,7 @@ func (receiver ManageUser) String() string {
|
|
|
|
|
|
// ShopAdviceCarousel 商城广告
|
|
|
type ShopAdviceCarousel struct {
|
|
|
- Id int64 `json:"id"` // 11 0 注释:
|
|
|
+ Id int64 `json:"id"` // 11 0 注释:目标id
|
|
|
Name string `xorm:"name" json:"name"` // 255 0 注释:广告名称
|
|
|
ImageUrl string `xorm:"image_url" json:"imageUrl"` // 255 0 注释:图片
|
|
|
ToId int64 `xorm:"to_id" json:"toId"` // 11 0 注释:目标id
|