53d203ee14
CI / changes (push) Successful in 14s
CI / docker-bff (push) Successful in 3s
CI / docker-product (push) Successful in 24s
CI / docker-admin (push) Has been skipped
CI / docker-user (push) Has been skipped
CI / docker-ad (push) Has been skipped
CI / docker-chore (push) Successful in 25s
CI / docker-express (push) Has been skipped
CI / docker-sale (push) Successful in 26s
70 lines
1.2 KiB
Protocol Buffer
70 lines
1.2 KiB
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"
|
|
};
|
|
}
|
|
|
|
// 按 id 批量查地区名称
|
|
rpc RegionsByIds(RegionsByIdsReq) returns (RegionsByIdsData);
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
message RegionsByIdsReq {
|
|
repeated int64 ids = 1;
|
|
}
|
|
|
|
message RegionItem {
|
|
int64 id = 1;
|
|
string name = 2;
|
|
}
|
|
|
|
message RegionsByIdsData {
|
|
repeated RegionItem items = 1;
|
|
} |