代码拉取完成,页面将自动刷新
type Todo {
id: ID!
text: String!
done: Boolean!
user: User!
}
type User {
id: ID!
name: String!
}
#type Query {
# todos: [Todo!]!
#
#}
input NewTodo {
text: String!
userId: String!
}
#type Mutation {
# createTodo(input: NewTodo!): Todo!
#
#}
# wiki
directive @hasPermission(role:Role!) on MUTATION | QUERY
enum Role {
Public
StoreAssociateManager
StoreAssociateEmployee
StoreBindoSaleAssociate
StoreBindoSaleManager
BindoAccountManager
VendorSalePeople
StoreAssociateJunior
StoreAssicateAPI
StoreAssociateNewAPI
StoreAssociate
StoresAssociate
BindoStaff
StoreCustomer
StoreAssociateOrBindoStaff
dynamicPermission
}
directive @mutationLog on MUTATION
input WikiInput{
key:String!
value:String!
}
type Wiki{
key:String!
value:String!
createdAt:Time!
updatedAt:Time!
deletedAt:Time
}
type Success {
success: Boolean!
}
type Query{
todos:[Todo!]!
# get wiki
wiki(storeID:Int!,key:String!):Wiki! @hasPermission(role: StoreAssociateOrBindoStaff)
}
type Mutation {
createTodo(input: NewTodo!): Todo!
#create Wiki
wikiCreate(storeID:Int!,input:WikiInput!):Wiki! @hasPermission(role: StoreAssociateOrBindoStaff) @mutationLog()
#update Wiki
wikiUpdate(storeID:Int!,input:WikiInput!):Wiki! @hasPermission(role: StoreAssociateOrBindoStaff) @mutationLog()
#delete Wiki
wikiDelete(storeID:Int!,key:String!):Success! @hasPermission(role: StoreAssociateOrBindoStaff) @mutationLog()
}
schema {
query: Query
mutation: Mutation
}
scalar Time
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。