schema.graphqls 755 字节
## type
type Users{
  name: String
  phone: String
  roles: [Role!]
  status: Int
  adminType: Int
  createTime: String
  updateTime: String
}
type Role{
  id: Int
  roleName: String
  parentId: Int
  createTime: String
  updateTime: String
}

## user input
input createUsersInput{
  name: String!
  phone: String!
}
input updateUsersInput{
  id: Int!
  name: String
}
input removeUsersInput{
  id: Int!
}
input getUsersInput{
  id: Int!
}
input listUsersInput{
  offset: Int!
  limit: Int!
}

type Query {
  user(input : getUsersInput!): Users!
  users(input : listUsersInput!): [Users!]
}

type Mutation{
  createUsers(input : createUsersInput!): Users!
  removeUsers(input : removeUsersInput!): Users!
  updateUsers(input : updateUsersInput!): Users!
}