From 690dc974ebcf5ccc2b7100e2f32eb53b046ca6a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Tue, 21 Nov 2023 00:14:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=A8=E5=9B=BE=E5=83=8F=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/graphql.go | 5 +++++ api/struct.go | 5 +++++ 2 files changed, 10 insertions(+) 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"`