Files
lone-services/rpc/chore/chore.proto
T
gjs 38e040af07
CI / changes (push) Successful in 37s
CI / ad (push) Successful in 29s
CI / admin (push) Successful in 17s
CI / bff (push) Successful in 13s
CI / chore (push) Successful in 15s
CI / equipment (push) Successful in 14s
CI / express (push) Successful in 14s
CI / product (push) Successful in 13s
CI / record (push) Successful in 13s
CI / sale (push) Successful in 13s
CI / task (push) Successful in 13s
CI / user (push) Successful in 14s
CI / wecom (push) Successful in 13s
订单下载。jd下单。。
2026-09-09 17:52:07 +08:00

142 lines
2.8 KiB
Protocol Buffer

syntax = "proto3";
package chore;
option go_package = "lone-services/rpc/chore";
import "google/api/annotations.proto";
// 应放到pkg
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"
};
}
rpc AnswerItems(EmptyReq) returns (Response) {
option (google.api.http) = {
get: "/admin/v3/chore/answer/items"
};
}
rpc AnswerStatus(StatusReq) returns (Response) {
option (google.api.http) = {
post: "/admin/v3/chore/answer/status"
};
}
rpc AnswerInfo(IdReq) returns (Response) {
option (google.api.http) = {
get: "/admin/v3/chore/answer/info"
};
}
rpc AnswerCreate(EditReq) returns (Response) {
option (google.api.http) = {
post: "/admin/v3/chore/answer/create"
};
}
rpc AnswerEdit(EditReq) returns (Response) {
option (google.api.http) = {
post: "/admin/v3/chore/answer/edit"
};
}
rpc SystemEdit(SystemEditReq) returns (Response) {
option (google.api.http) = {
post: "/admin/v3/chore/system/edit"
};
}
rpc SystemStatus(StatusReq) returns (Response) {
option (google.api.http) = {
post: "/admin/v3/chore/system/status"
};
}
rpc SystemInfo(IdReq) returns (Response) {
option (google.api.http) = {
get: "/admin/v3/chore/system/info"
};
}
rpc SystemItems(EmptyReq) returns (Response) {
option (google.api.http) = {
get: "/admin/v3/chore/system/items"
};
}
// 按 id 批量查地区名称
rpc RegionsByIds(RegionsByIdsReq) returns (RegionsByIdsData);
}
message Response {
int32 code = 1;
string msg = 2;
string data = 3;
}
message EmptyReq {
}
message IdReq {
int64 id = 1;
}
message StatusReq {
int64 id = 1;
int32 status = 2;
string reason = 3;
}
message EditReq {
int64 id = 1;
string question = 2;
string explain = 3;
string right = 4;
string answers = 5;
}
message SystemEditReq {
int32 type = 1;
string content = 2;
}
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;
}