Compare commits
11 Commits
a8135fd45c
...
serde-rena
| Author | SHA1 | Date | |
|---|---|---|---|
| 8ed31deb14 | |||
| ea4d48625d | |||
| 41f9382b83 | |||
| 5a26c80b2b | |||
| dbec402e18 | |||
| 423ef695ef | |||
| 77270886fa | |||
| ead9b4f688 | |||
| 5dfbc67886 | |||
| 067aed97f4 | |||
| 871d9c3cd5 |
35
auth.proto
35
auth.proto
@@ -1,35 +0,0 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "git.itzana.me/strafesnet/go-grpc/auth";
|
||||
|
||||
package auth;
|
||||
|
||||
service AuthService {
|
||||
rpc GetSessionUser(IdMessage) returns (SessionUserResponse);
|
||||
rpc GetGroupRole(IdMessage) returns (RoleReponse);
|
||||
rpc ValidateSession(IdMessage) returns (ValidateResponse);
|
||||
}
|
||||
|
||||
message IdMessage {
|
||||
string SessionID = 1;
|
||||
}
|
||||
|
||||
message SessionUserResponse {
|
||||
uint64 UserID = 1;
|
||||
string Username = 2;
|
||||
string AvatarURL = 3;
|
||||
}
|
||||
|
||||
message RoleReponse {
|
||||
repeated RoleItem Roles = 1;
|
||||
}
|
||||
|
||||
message RoleItem {
|
||||
string ID = 1;
|
||||
string DisplayName = 2;
|
||||
int32 Rank = 3;
|
||||
}
|
||||
|
||||
message ValidateResponse {
|
||||
bool Valid = 1;
|
||||
}
|
||||
@@ -38,6 +38,7 @@ message MapRequest {
|
||||
}
|
||||
|
||||
message MapFilter {
|
||||
int64 ID = 1;
|
||||
optional string DisplayName = 2;
|
||||
optional string Creator = 3;
|
||||
optional int32 GameID = 4;
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "git.itzana.me/strafesnet/go-grpc/moderation";
|
||||
|
||||
package moderation;
|
||||
|
||||
service ModerationService {
|
||||
rpc SetState(SetStateRequest) returns (Null);
|
||||
}
|
||||
|
||||
message Null {}
|
||||
|
||||
message SetStateRequest {
|
||||
int64 UserID = 1;
|
||||
int64 ModeratorID = 2;
|
||||
int32 ReasonID = 3;
|
||||
int32 StateID = 4;
|
||||
}
|
||||
@@ -27,7 +27,7 @@ message TransactionCreate {
|
||||
message TransactionUpdate {
|
||||
string ID = 1;
|
||||
optional int64 Value = 2;
|
||||
optional int32 StateID = 3;
|
||||
optional int64 StateID = 3;
|
||||
optional google.protobuf.Struct Data = 4;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user