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

Commit e2e1c79

Browse files
committed
Fix proto
1 parent a2df98e commit e2e1c79

File tree

6 files changed

+198
-175
lines changed

6 files changed

+198
-175
lines changed

api/protos/sessions.proto

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
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+
47

58
import "google/api/annotations.proto";
69
import "google/protobuf/empty.proto";

api/protos/users.proto

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
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+
47

58
import "google/api/annotations.proto";
69
import "google/protobuf/empty.proto";
7-
import "google/protobuf/field_mask.proto";
10+
11+
import "type/department.proto";
812

913
service UserService {
1014
rpc ListPublicUsers (ListUsersRequest) returns (ListUsersResponse) {
@@ -50,11 +54,11 @@ message User {
5054
string description = 6;
5155
int32 grade = 7;
5256
bool left = 8;
53-
string department = 9;
5457
string short_department = 10;
5558
string role = 11;
5659
string twitter_screen_name = 12;
5760
string github_user_name = 13;
61+
type.Department department = 14;
5862
}
5963

6064
message ListUsersRequest {

api/sessions.pb.go

+42-42
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/sessions.swagger.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"200": {
2323
"description": "",
2424
"schema": {
25-
"$ref": "#/definitions/apiSession"
25+
"$ref": "#/definitions/prolab_accountsSession"
2626
}
2727
}
2828
},
@@ -50,7 +50,7 @@
5050
"200": {
5151
"description": "",
5252
"schema": {
53-
"$ref": "#/definitions/apiSession"
53+
"$ref": "#/definitions/prolab_accountsSession"
5454
}
5555
}
5656
},
@@ -60,7 +60,7 @@
6060
"in": "body",
6161
"required": true,
6262
"schema": {
63-
"$ref": "#/definitions/apiCreateSessionRequest"
63+
"$ref": "#/definitions/prolab_accountsCreateSessionRequest"
6464
}
6565
}
6666
],
@@ -71,7 +71,7 @@
7171
}
7272
},
7373
"definitions": {
74-
"apiCreateSessionRequest": {
74+
"prolab_accountsCreateSessionRequest": {
7575
"type": "object",
7676
"properties": {
7777
"name": {
@@ -82,7 +82,7 @@
8282
}
8383
}
8484
},
85-
"apiSession": {
85+
"prolab_accountsSession": {
8686
"type": "object",
8787
"properties": {
8888
"session_id": {

0 commit comments

Comments
 (0)