72d55d396d
CI / changes (push) Successful in 36s
CI / docker-bff (push) Successful in 3m8s
CI / docker-product (push) Successful in 3m36s
CI / docker-admin (push) Successful in 3m35s
CI / docker-user (push) Successful in 9s
CI / docker-ad (push) Successful in 29s
CI / docker-chore (push) Failing after 4s
36 lines
618 B
Protocol Buffer
36 lines
618 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: "*"
|
|
};
|
|
}
|
|
}
|
|
|
|
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;
|
|
} |