补全图像字段

This commit is contained in:
2023-11-21 00:14:09 +08:00
parent f3c7441b11
commit 690dc974eb
2 changed files with 10 additions and 0 deletions

View File

@@ -107,6 +107,11 @@ func NewSchema() (graphql.Schema, error) {
"width": &graphql.Field{Type: graphql.Int}, "width": &graphql.Field{Type: graphql.Int},
"height": &graphql.Field{Type: graphql.Int}, "height": &graphql.Field{Type: graphql.Int},
"content": &graphql.Field{Type: graphql.String}, "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}, "article_category_top_id": &graphql.Field{Type: graphql.Int},
"praise_count": &graphql.Field{Type: graphql.Int}, "praise_count": &graphql.Field{Type: graphql.Int},
"collect_count": &graphql.Field{Type: graphql.Int}, "collect_count": &graphql.Field{Type: graphql.Int},

View File

@@ -9,6 +9,11 @@ type Image struct {
Width int `json:"width" db:"width"` Width int `json:"width" db:"width"`
Height int `json:"height" db:"height"` Height int `json:"height" db:"height"`
Content string `json:"content" db:"content"` 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"` ArticleCategoryTopId int `json:"article_category_top_id" db:"article_category_top_id"`
PraiseCount int `json:"praise_count" db:"praise_count"` PraiseCount int `json:"praise_count" db:"praise_count"`
CollectCount int `json:"collect_count" db:"collect_count"` CollectCount int `json:"collect_count" db:"collect_count"`