54 lines
994 B
Protocol Buffer
54 lines
994 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package chore;
|
|
option go_package = "lone-services/rpc/chore";
|
|
import "google/api/annotations.proto";
|
|
|
|
service Chore {
|
|
rpc Policy(PolicyReq) returns (Response) {
|
|
option (google.api.http) = {
|
|
get: "/api/v3/chore/oss/policy"
|
|
body: "*"
|
|
};
|
|
}
|
|
rpc Test(TestReq) returns (Response) {
|
|
option (google.api.http) = {
|
|
post: "/api/v3/chore/test"
|
|
body: "*"
|
|
};
|
|
}
|
|
rpc DecryptMobile(DecryptMobileReq) returns (Response) {
|
|
option (google.api.http) = {
|
|
get: "/api/v3/chore/decrypt/mobile"
|
|
};
|
|
}
|
|
rpc Regions(RegionsReq) returns (Response) {
|
|
option (google.api.http) = {
|
|
get: "/api/v3/chore/regions"
|
|
};
|
|
}
|
|
}
|
|
|
|
message Response {
|
|
int32 code = 1;
|
|
string msg = 2;
|
|
string data = 3;
|
|
}
|
|
|
|
message PolicyReq {
|
|
string key = 1;
|
|
}
|
|
|
|
message TestReq {
|
|
int32 id = 1;
|
|
repeated int64 ids = 2;
|
|
uint32 number = 3;
|
|
}
|
|
|
|
message DecryptMobileReq {
|
|
string origin_mobile = 1;
|
|
}
|
|
|
|
message RegionsReq {
|
|
int32 parent_id = 1;
|
|
} |