2022-07-12 07:02:38 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package bet.protobuf.rpc;
|
|
|
|
|
|
|
|
option csharp_namespace = "Bet.Protobuf.Rpc";
|
|
|
|
option cc_enable_arenas = true;
|
|
|
|
option java_package = "com.bet.protobuf.rpc";
|
|
|
|
option java_outer_classname = "RpcProto";
|
|
|
|
option java_multiple_files = true;
|
|
|
|
option objc_class_prefix = "BetRpc";
|
|
|
|
option go_package = "bet.com/protobuf/rpc";
|
|
|
|
|
|
|
|
message Error {
|
|
|
|
int32 code = 1;
|
2022-08-04 08:51:02 +00:00
|
|
|
string message = 2;
|
2022-07-12 07:02:38 +00:00
|
|
|
optional bytes data = 3;
|
|
|
|
}
|
2022-08-04 08:44:55 +00:00
|
|
|
|
|
|
|
enum InvalidParamsType {
|
2022-08-04 09:10:06 +00:00
|
|
|
NONE = 0;
|
|
|
|
DATE_TIME = 1;
|
|
|
|
DECIMAL = 2;
|
|
|
|
EQUALS_TO = 3;
|
|
|
|
FLOAT = 4;
|
|
|
|
INTEGER = 5;
|
|
|
|
RANGE = 6;
|
|
|
|
REG_EX = 7;
|
|
|
|
REQUIRED = 8;
|
|
|
|
STRING_LENGTH = 9;
|
|
|
|
URL = 10;
|
2022-08-04 08:44:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message InvalidParamsDetail {
|
|
|
|
string location = 1;
|
|
|
|
string param = 2;
|
|
|
|
string value = 3;
|
|
|
|
InvalidParamsType error_type = 4;
|
|
|
|
string message = 5;
|
|
|
|
}
|