diff --git a/api/graphql.go b/api/graphql.go index aa2c03d..b36773c 100644 --- a/api/graphql.go +++ b/api/graphql.go @@ -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}, diff --git a/api/struct.go b/api/struct.go index dd9c7e1..b70fabe 100644 --- a/api/struct.go +++ b/api/struct.go @@ -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"`