Compare commits
3 Commits
0405aba995
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 2cdd6874b4 | |||
| f248c19b07 | |||
| c400d2d58b |
14
auth.proto
14
auth.proto
@@ -11,6 +11,7 @@ service AuthService {
|
||||
rpc GetGroupRole(IdMessage) returns (RoleReponse);
|
||||
rpc ValidateSession(IdMessage) returns (ValidateResponse);
|
||||
rpc GetAuthMetadata(google.protobuf.Empty) returns (AuthMetadataResponse);
|
||||
rpc GetAvatars(AvatarListRequest) returns (AvatarListResponse);
|
||||
}
|
||||
|
||||
message IdMessage {
|
||||
@@ -43,3 +44,16 @@ message AuthMetadataResponse {
|
||||
string AccountURL = 3;
|
||||
}
|
||||
|
||||
message AvatarListRequest {
|
||||
repeated uint64 UserIDs = 1;
|
||||
}
|
||||
|
||||
message AvatarItem {
|
||||
uint64 UserID = 1;
|
||||
string AvatarURL = 2;
|
||||
}
|
||||
|
||||
message AvatarListResponse {
|
||||
repeated AvatarItem Avatars = 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,8 +12,11 @@ service MapsService {
|
||||
rpc Delete(MapId) returns (NullResponse);
|
||||
rpc List(ListRequest) returns (MapList);
|
||||
rpc IncrementLoadCount(MapId) returns (NullResponse);
|
||||
rpc GetSnfmDownloadUrl(MapId) returns (SnfmDownloadUrl);
|
||||
}
|
||||
|
||||
message SnfmDownloadUrl { string Url = 1; }
|
||||
|
||||
message MapIdList { repeated int64 ID = 1; }
|
||||
|
||||
message MapId { int64 ID = 1; }
|
||||
|
||||
@@ -11,6 +11,7 @@ service UsersService {
|
||||
rpc Create(UserRequest) returns (IdMessage);
|
||||
rpc Delete(IdMessage) returns (NullResponse);
|
||||
rpc List(ListRequest) returns (UserList);
|
||||
rpc SearchByUsername(SearchByUsernameRequest) returns (UserList);
|
||||
}
|
||||
|
||||
message IdList {
|
||||
@@ -55,6 +56,11 @@ message Pagination {
|
||||
int32 Number = 2;
|
||||
}
|
||||
|
||||
message SearchByUsernameRequest {
|
||||
string Query = 1;
|
||||
Pagination Page = 2;
|
||||
}
|
||||
|
||||
message NullResponse {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user