games 图片数
This commit is contained in:
		@@ -33,6 +33,7 @@ type Game struct {
 | 
				
			|||||||
	CollectCount int       `json:"collect_count" gorm:"column:collect_num"`
 | 
						CollectCount int       `json:"collect_count" gorm:"column:collect_num"`
 | 
				
			||||||
	PraiseCount  int       `json:"praise_count"  gorm:"column:praise"`
 | 
						PraiseCount  int       `json:"praise_count"  gorm:"column:praise"`
 | 
				
			||||||
	CommentCount int       `json:"comment_count" gorm:"column:comment_num"`
 | 
						CommentCount int       `json:"comment_count" gorm:"column:comment_num"`
 | 
				
			||||||
 | 
						ImageCount   int       `json:"image_count"   gorm:"column:total_image_count"`
 | 
				
			||||||
	TextCount    int       `json:"text_count"    gorm:"column:text_count"`
 | 
						TextCount    int       `json:"text_count"    gorm:"column:text_count"`
 | 
				
			||||||
	TextList     []string  `json:"text_list"     gorm:"-"`
 | 
						TextList     []string  `json:"text_list"     gorm:"-"`
 | 
				
			||||||
	CreateTime   time.Time `json:"create_time"`
 | 
						CreateTime   time.Time `json:"create_time"`
 | 
				
			||||||
@@ -68,6 +69,7 @@ var gameType = graphql.NewObject(graphql.ObjectConfig{
 | 
				
			|||||||
		"collect":       &graphql.Field{Type: graphql.Boolean, Description: "当前用户是否收藏"},
 | 
							"collect":       &graphql.Field{Type: graphql.Boolean, Description: "当前用户是否收藏"},
 | 
				
			||||||
		"praise_count":  &graphql.Field{Type: graphql.Int, Description: "点赞数"},
 | 
							"praise_count":  &graphql.Field{Type: graphql.Int, Description: "点赞数"},
 | 
				
			||||||
		"collect_count": &graphql.Field{Type: graphql.Int, Description: "收藏数"},
 | 
							"collect_count": &graphql.Field{Type: graphql.Int, Description: "收藏数"},
 | 
				
			||||||
 | 
							"image_count":   &graphql.Field{Type: graphql.Int, Description: "图片数"},
 | 
				
			||||||
		"text_count":    &graphql.Field{Type: graphql.Int, Description: "文字数量"},
 | 
							"text_count":    &graphql.Field{Type: graphql.Int, Description: "文字数量"},
 | 
				
			||||||
		"text_list":     &graphql.Field{Type: graphql.NewList(graphql.String), Description: "文字列表"},
 | 
							"text_list":     &graphql.Field{Type: graphql.NewList(graphql.String), Description: "文字列表"},
 | 
				
			||||||
		"emoji1":        &graphql.Field{Type: graphql.Int, Description: "表情1数量"},
 | 
							"emoji1":        &graphql.Field{Type: graphql.Int, Description: "表情1数量"},
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user