diff --git a/api/user.go b/api/user.go index f5c67ea..0fb12be 100644 --- a/api/user.go +++ b/api/user.go @@ -21,7 +21,7 @@ func (User) TableName() string { } var userType = graphql.NewObject(graphql.ObjectConfig{ - Name: "User", + Name: "user", Description: "用户信息", Fields: graphql.Fields{ "id": &graphql.Field{Type: graphql.Int, Description: "用户ID"},