forked from StrafesNET/protobufs
31 lines
642 B
Protocol Buffer
31 lines
642 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
option go_package = "git.itzana.me/strafesnet/go-grpc/moderation";
|
|
|
|
package moderation;
|
|
|
|
import "google/protobuf/struct.proto";
|
|
|
|
service ModerationService {
|
|
rpc SetState(SetStateRequest) returns (Null);
|
|
rpc SetMuted(SetMuteRequest) returns (Null);
|
|
}
|
|
|
|
message Null {}
|
|
|
|
message SetStateRequest {
|
|
int64 UserID = 1;
|
|
int64 ModeratorID = 2;
|
|
int32 ReasonID = 3;
|
|
int32 StateID = 4;
|
|
}
|
|
|
|
message SetMuteRequest {
|
|
int64 UserID = 1;
|
|
int64 ModeratorID = 2;
|
|
bool Muted = 3;
|
|
optional int64 Duration = 4;
|
|
optional int32 ReasonID = 5;
|
|
optional string ReasonText = 6;
|
|
optional google.protobuf.Struct Metadata = 7;
|
|
} |