You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
477 B
Protocol Buffer
33 lines
477 B
Protocol Buffer
3 years ago
|
syntax = "proto3";
|
||
|
|
||
|
package pb;
|
||
|
|
||
|
option go_package = "./pb";
|
||
|
|
||
|
// model
|
||
|
message User {
|
||
|
int64 id = 1;
|
||
|
string username = 2;
|
||
|
// platform
|
||
|
string platform = 3;
|
||
|
string pUid = 4;
|
||
|
string pUname = 5;
|
||
|
string pAvatar = 6;
|
||
|
string pInfo = 7;
|
||
|
}
|
||
|
|
||
|
// req
|
||
|
message PlatformUserReq {
|
||
|
string platform = 1;
|
||
|
string pUid = 2;
|
||
|
}
|
||
|
|
||
|
message PlatformUserResp {
|
||
|
User user = 1;
|
||
|
}
|
||
|
|
||
|
|
||
|
service userCenter {
|
||
|
// user
|
||
|
rpc retrievePlatformUser(PlatformUserReq) returns (PlatformUserResp);
|
||
|
}
|