wheat-cache/protobuf/stringx.proto

35 lines
468 B
Protocol Buffer

syntax = "proto3";
import "base.proto";
option go_package = "pkg/proto";
message SetRequest {
BaseKey key = 1;
string val = 2;
}
message GetRequest {
BaseKey key = 1;
}
message AddRequest {
BaseKey key = 1;
// 自动增加
int32 raise = 2;
}
message ReduceRequest {
BaseKey key = 1;
int32 cut = 2;
}
message SetbitRequest {
BaseKey key = 1;
int32 office = 2;
bool val = 3;
}
message GetbitRequest {
BaseKey key = 1;
int32 office = 2;
}