2b19937065
CI / changes (push) Successful in 39s
CI / ad (push) Successful in 1s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 25s
CI / chore (push) Successful in 24s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 1s
CI / factory (push) Successful in 0s
CI / payment (push) Successful in 0s
CI / product (push) Successful in 1s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 24s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 0s
166 lines
3.2 KiB
Protocol Buffer
166 lines
3.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"
|
|
};
|
|
}
|
|
rpc SendSms(SendSmsReq) returns (Response) {
|
|
option (google.api.http) = {
|
|
post: "/api/v3/sms/send"
|
|
body: "*"
|
|
};
|
|
}
|
|
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);
|
|
rpc SendPassword(SendPasswordReq) returns (SendPasswordResp);
|
|
}
|
|
|
|
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;
|
|
string char = 4;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
message SendSmsReq {
|
|
string mobile = 1;
|
|
int32 scene = 2;
|
|
}
|
|
|
|
message SendPasswordReq {
|
|
string mobile = 1;
|
|
string password = 2;
|
|
string browser_info = 3;
|
|
string ip = 4;
|
|
string browser_name = 5;
|
|
}
|
|
|
|
message SendPasswordResp {
|
|
int32 code = 1;
|
|
} |