Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Commit 239ec35

Browse files
authored
Merge pull request #79 from ProgrammingLab/response_admin
Authority in response
2 parents 228077d + e8e00d6 commit 239ec35

12 files changed

+212
-84
lines changed

api/achievements.swagger.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,14 @@
229229
}
230230
}
231231
},
232+
"prolab_accountsAuthority": {
233+
"type": "string",
234+
"enum": [
235+
"MEMBER",
236+
"ADMIN"
237+
],
238+
"default": "MEMBER"
239+
},
232240
"prolab_accountsDepartment": {
233241
"type": "object",
234242
"properties": {
@@ -341,6 +349,9 @@
341349
},
342350
"display_name": {
343351
"type": "string"
352+
},
353+
"authority": {
354+
"$ref": "#/definitions/prolab_accountsAuthority"
344355
}
345356
}
346357
},

api/achievements.validator.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/contribution_conllections.swagger.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@
4242
}
4343
},
4444
"definitions": {
45+
"prolab_accountsAuthority": {
46+
"type": "string",
47+
"enum": [
48+
"MEMBER",
49+
"ADMIN"
50+
],
51+
"default": "MEMBER"
52+
},
4553
"prolab_accountsContributionConllection": {
4654
"type": "object",
4755
"properties": {
@@ -169,6 +177,9 @@
169177
},
170178
"display_name": {
171179
"type": "string"
180+
},
181+
"authority": {
182+
"$ref": "#/definitions/prolab_accountsAuthority"
172183
}
173184
}
174185
}

api/email_confirmations.validator.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/entries.swagger.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@
4949
}
5050
},
5151
"definitions": {
52+
"prolab_accountsAuthority": {
53+
"type": "string",
54+
"enum": [
55+
"MEMBER",
56+
"ADMIN"
57+
],
58+
"default": "MEMBER"
59+
},
5260
"prolab_accountsBlog": {
5361
"type": "object",
5462
"properties": {
@@ -202,6 +210,9 @@
202210
},
203211
"display_name": {
204212
"type": "string"
213+
},
214+
"authority": {
215+
"$ref": "#/definitions/prolab_accountsAuthority"
205216
}
206217
}
207218
}

api/entries.validator.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/oauth.validator.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/password_resets.validator.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/protos/users.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,19 @@ message User {
7575
ProfileScope profile_scope = 15;
7676
string atcoder_user_name = 16;
7777
string display_name = 17;
78+
Authority authority = 18;
7879
}
7980

8081
enum ProfileScope {
8182
MEMBERS_ONLY = 0;
8283
PUBLIC = 1;
8384
}
8485

86+
enum Authority {
87+
MEMBER = 0;
88+
ADMIN = 1;
89+
}
90+
8591
message ListUsersRequest {
8692
uint32 page_token = 1;
8793
int32 page_size = 2;

api/users.pb.go

Lines changed: 143 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)