-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
132 lines (116 loc) · 3.09 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# This file was generated based on ".graphqlconfig". Do not edit manually.
schema {
query: Query
mutation: Mutation
}
type Account {
account: String!
createdAt: DateTime!
id: ID!
isActive: Boolean!
nick: String!
systemRole: String!
updatedAt: DateTime!
}
type AccountInfoDto {
account: String!
id: Float!
nick: String!
systemRole: String!
}
type AppBaseEntity {
createdAt: DateTime!
id: ID!
updatedAt: DateTime!
}
type Article {
author: Account!
authorId: Float!
createdAt: DateTime!
htmlContent: String!
id: ID!
isPublic: Boolean!
mdContent: String!
publishedAt: DateTime!
slug: String!
summary: String
tags: [Tag!]!
title: String!
updatedAt: DateTime!
}
type Mutation {
adminLogin(account: String!, password: String!): Account!
createArticle(createArticleInput: CreateArticleInput!): Article!
createTag(createTagInput: CreateTagInput!): Tag!
memberLogin(account: String!, password: String!): Account!
registerAccount(registerAccountInput: RegisterAccountInput!): Account!
removeAccount(id: Int, ids: [Int!]): Boolean!
removeArticle(id: Int!): Boolean
removeTag(id: Int!): Boolean
updateAccount(id: Float!, updateAccountInput: UpdateAccountInput!): Account!
updateArticle(id: Int!, updateArticleInput: UpdateArticleInput!): Article
updateTag(id: Int!, updateTagInput: UpdateTagInput!): Tag
}
type Query {
account(id: Int!): [Account!]!
accounts(account: String, isActive: Boolean, nick: String, pageIndex: Int = 1, pageSize: Int = 10): [Account!]!
accountsCount(account: String, isActive: Boolean, nick: String, pageIndex: Int = 1, pageSize: Int = 10): Int!
article(id: Int, slug: String, title: String): Article!
articles(authorId: ID, isPublic: Boolean, pageIndex: Int = 1, pageSize: Int = 10, slug: String, title: String): [Article!]!
articlesCount(authorId: ID, isPublic: Boolean, pageIndex: Int = 1, pageSize: Int = 10, slug: String, title: String): Int!
count(name: String, pageIndex: Int = 1, pageSize: Int = 10): Int!
currAccount: AccountInfoDto!
getTag(id: Int, name: String): Tag!
getTags(name: String, pageIndex: Int = 1, pageSize: Int = 10): [Tag!]!
}
type Tag {
articles: [Article!]
id: ID!
isAvailable: Boolean!
isVisible: Boolean!
name: String!
}
input CreateArticleInput {
authorId: ID!
htmlContent: String
isPublic: Boolean!
mdContent: String
publishedAt: DateTime
slug: String!
summary: String
tagIds: [Int!] = []
title: String!
}
input CreateTagInput {
isAvailable: Boolean = true
isVisible: Boolean = true
name: String!
}
input RegisterAccountInput {
account: String!
nick: String!
password: String!
}
input UpdateAccountInput {
account: String
nick: String
password: String
}
input UpdateArticleInput {
authorId: Float!
htmlContent: String
isPublic: Boolean
mdContent: String
publishedAt: DateTime
slug: String!
summary: String
tagIds: [Int!]
title: String
}
input UpdateTagInput {
isAvailable: Boolean = true
isVisible: Boolean = true
name: String!
}
"The javascript `Date` as string. Type represents date and time as the ISO Date string."
scalar DateTime