This repository was archived by the owner on Feb 4, 2021. It is now read-only.
File tree 6 files changed +198
-175
lines changed
6 files changed +198
-175
lines changed Original file line number Diff line number Diff line change 1
1
syntax = "proto3" ;
2
- option go_package = "api_pb" ;
3
- package com.github.ProgrammingLab.prolab_accounts.api ;
2
+
3
+ package programming_lab.prolab_accounts ;
4
+
5
+ option go_package = "github.com/ProgrammingLab/prolab-accounts/api;api_pb" ;
6
+
4
7
5
8
import "google/api/annotations.proto" ;
6
9
import "google/protobuf/empty.proto" ;
Original file line number Diff line number Diff line change 1
1
syntax = "proto3" ;
2
- option go_package = "api_pb" ;
3
- package com.github.ProgrammingLab.prolab_accounts.api ;
2
+
3
+ package programming_lab.prolab_accounts ;
4
+
5
+ option go_package = "github.com/ProgrammingLab/prolab-accounts/api;api_pb" ;
6
+
4
7
5
8
import "google/api/annotations.proto" ;
6
9
import "google/protobuf/empty.proto" ;
7
- import "google/protobuf/field_mask.proto" ;
10
+
11
+ import "type/department.proto" ;
8
12
9
13
service UserService {
10
14
rpc ListPublicUsers (ListUsersRequest ) returns (ListUsersResponse ) {
@@ -50,11 +54,11 @@ message User {
50
54
string description = 6 ;
51
55
int32 grade = 7 ;
52
56
bool left = 8 ;
53
- string department = 9 ;
54
57
string short_department = 10 ;
55
58
string role = 11 ;
56
59
string twitter_screen_name = 12 ;
57
60
string github_user_name = 13 ;
61
+ type.Department department = 14 ;
58
62
}
59
63
60
64
message ListUsersRequest {
Original file line number Diff line number Diff line change 22
22
"200" : {
23
23
"description" : " " ,
24
24
"schema" : {
25
- "$ref" : " #/definitions/apiSession "
25
+ "$ref" : " #/definitions/prolab_accountsSession "
26
26
}
27
27
}
28
28
},
50
50
"200" : {
51
51
"description" : " " ,
52
52
"schema" : {
53
- "$ref" : " #/definitions/apiSession "
53
+ "$ref" : " #/definitions/prolab_accountsSession "
54
54
}
55
55
}
56
56
},
60
60
"in" : " body" ,
61
61
"required" : true ,
62
62
"schema" : {
63
- "$ref" : " #/definitions/apiCreateSessionRequest "
63
+ "$ref" : " #/definitions/prolab_accountsCreateSessionRequest "
64
64
}
65
65
}
66
66
],
71
71
}
72
72
},
73
73
"definitions" : {
74
- "apiCreateSessionRequest " : {
74
+ "prolab_accountsCreateSessionRequest " : {
75
75
"type" : " object" ,
76
76
"properties" : {
77
77
"name" : {
82
82
}
83
83
}
84
84
},
85
- "apiSession " : {
85
+ "prolab_accountsSession " : {
86
86
"type" : " object" ,
87
87
"properties" : {
88
88
"session_id" : {
You can’t perform that action at this time.
0 commit comments