补全图像字段
This commit is contained in:
		@@ -107,6 +107,11 @@ func NewSchema() (graphql.Schema, error) {
 | 
			
		||||
			"width":                   &graphql.Field{Type: graphql.Int},
 | 
			
		||||
			"height":                  &graphql.Field{Type: graphql.Int},
 | 
			
		||||
			"content":                 &graphql.Field{Type: graphql.String},
 | 
			
		||||
			"remark":                  &graphql.Field{Type: graphql.String},
 | 
			
		||||
			"description":             &graphql.Field{Type: graphql.String},
 | 
			
		||||
			"tags":                    &graphql.Field{Type: graphql.String},
 | 
			
		||||
			"rank":                    &graphql.Field{Type: graphql.String},
 | 
			
		||||
			"comment_num":             &graphql.Field{Type: graphql.Int},
 | 
			
		||||
			"article_category_top_id": &graphql.Field{Type: graphql.Int},
 | 
			
		||||
			"praise_count":            &graphql.Field{Type: graphql.Int},
 | 
			
		||||
			"collect_count":           &graphql.Field{Type: graphql.Int},
 | 
			
		||||
 
 | 
			
		||||
@@ -9,6 +9,11 @@ type Image struct {
 | 
			
		||||
	Width                int       `json:"width"                   db:"width"`
 | 
			
		||||
	Height               int       `json:"height"                  db:"height"`
 | 
			
		||||
	Content              string    `json:"content"                 db:"content"`
 | 
			
		||||
	Remark               string    `json:"remark"                  db:"remark"`
 | 
			
		||||
	Description          string    `json:"description"             db:"description"`
 | 
			
		||||
	Tags                 string    `json:"tags"                    db:"tags"`
 | 
			
		||||
	Rank                 string    `json:"rank"                    db:"rank"`
 | 
			
		||||
	CommentNum           int       `json:"comment_num"             db:"comment_num"`
 | 
			
		||||
	ArticleCategoryTopId int       `json:"article_category_top_id" db:"article_category_top_id"`
 | 
			
		||||
	PraiseCount          int       `json:"praise_count"            db:"praise_count"`
 | 
			
		||||
	CollectCount         int       `json:"collect_count"           db:"collect_count"`
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user