Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Schema graphql.Schema
Schema defined in init()
View Source
var UserRoleType = graphql.NewEnum(graphql.EnumConfig{ Name: "UserRole", Description: "The role of the user", Values: graphql.EnumValueConfigMap{ strings.ToUpper(models.UserRoleAdmin): &graphql.EnumValueConfig{ Value: models.UserRoleAdmin, }, strings.ToUpper(models.UserRoleStaff): &graphql.EnumValueConfig{ Value: models.UserRoleStaff, }, strings.ToUpper(models.UserRoleUser): &graphql.EnumValueConfig{ Value: models.UserRoleUser, }, }, })
UserRoleType role of user
View Source
var UserStateType = graphql.NewEnum(graphql.EnumConfig{ Name: "UserState", Description: "The state of the user", Values: graphql.EnumValueConfigMap{ strings.ToUpper(models.UserStateEnable): &graphql.EnumValueConfig{ Value: models.UserStateEnable, }, strings.ToUpper(models.UserStateDisable): &graphql.EnumValueConfig{ Value: models.UserStateDisable, }, strings.ToUpper(models.UserStateMaintenance): &graphql.EnumValueConfig{ Value: models.UserStateMaintenance, }, }, })
UserStateType state of user
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.