works 图片数
This commit is contained in:
@@ -30,6 +30,7 @@ type Work struct {
|
||||
Praise bool `json:"praise" gorm:"column:is_praise"`
|
||||
CollectCount int `json:"collect_count" gorm:"column:collect_num"`
|
||||
PraiseCount int `json:"praise_count" gorm:"column:praise"`
|
||||
ImageCount int `json:"image_count" gorm:"column:total_image_count"`
|
||||
CreateTime time.Time `json:"create_time"`
|
||||
UpdateTime time.Time `json:"update_time"`
|
||||
Emoji1 int `json:"emoji1"`
|
||||
@@ -58,6 +59,7 @@ var workType = graphql.NewObject(graphql.ObjectConfig{
|
||||
"collect": &graphql.Field{Type: graphql.Boolean, Description: "当前用户是否收藏"},
|
||||
"praise_count": &graphql.Field{Type: graphql.Int, Description: "点赞数"},
|
||||
"collect_count": &graphql.Field{Type: graphql.Int, Description: "收藏数"},
|
||||
"image_count": &graphql.Field{Type: graphql.Int, Description: "图片数"},
|
||||
"emoji1": &graphql.Field{Type: graphql.Int, Description: "表情1数量"},
|
||||
"emoji2": &graphql.Field{Type: graphql.Int, Description: "表情2数量"},
|
||||
"emoji3": &graphql.Field{Type: graphql.Int, Description: "表情3数量"},
|
||||
|
Reference in New Issue
Block a user