Files
lone-services/rpc/store/store.proto
T
gjs 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
store and chore
2026-09-17 16:16:11 +08:00

362 lines
7.7 KiB
Protocol Buffer

syntax = "proto3";
package store;
option go_package="./store";
import "google/api/annotations.proto";
message EmptyRequest {
}
message IdRequest {
int64 id = 1;
}
message IdsRequest {
repeated int64 ids = 1;
}
message StatusRequest {
int64 id = 1;
int32 status = 2;
string reason = 3;
}
message Response {
int32 code = 1;
string msg = 2;
string data = 3;
}
message EditRequest {
int64 id = 1;
string user_mobile = 2;
string name = 3;
string id_card = 4;
string receipt = 5;
int32 type = 6;
string area = 7;
string store_images = 8;
string district_ids = 9;
string address = 10;
string bank_info = 11;
string user_name = 12;
string business_license = 13;
string images = 14;
int64 sale_id = 15;
string contact = 16;
string content = 17;
string open_time = 18;
string longitude_wgs84 = 19;
string latitude_wgs84 = 20;
string longitude_gcj02 = 21;
string latitude_gcj02 = 22;
repeated string store_type = 23;
int64 province = 24;
string province_name = 25;
int64 city = 26;
string city_name = 27;
int64 county = 28;
string county_name = 29;
}
message CreateRequest {
string user_mobile = 1;
string name = 2;
string district = 3;
string district_ids = 4;
string address = 5;
string user_name = 6;
string password = 7;
string business_license = 8;
string bank_info = 9;
string images = 10;
int64 sale_id = 11;
string id_card = 12;
string consignee_mobile = 13;
string consignee_name = 14;
string receipt = 15;
int32 type = 16;
string area = 17;
string store_images = 18;
string contact = 19;
string content = 20;
string open_time = 21;
string longitude_wgs84 = 22;
string latitude_wgs84 = 23;
string longitude_gcj02 = 24;
string latitude_gcj02 = 25;
repeated string store_type = 26;
int64 province = 27;
string province_name = 28;
int64 city = 29;
string city_name = 30;
int64 county = 31;
string county_name = 32;
}
message InfoResponse {
int64 id = 1;
string user_mobile = 2;
string name = 3;
string id_card = 4;
string receipt = 5;
int32 type = 6;
string area = 7;
string store_images = 8;
string district_ids = 9;
string address = 10;
string bank_info = 11;
string user_name = 12;
string business_license = 13;
string images = 14;
int64 sale_id = 15;
string contact = 16;
string content = 17;
string open_time = 18;
string longitude_wgs84 = 19;
string latitude_wgs84 = 20;
string longitude_gcj02 = 21;
string latitude_gcj02 = 22;
repeated string store_type = 23;
int64 province = 24;
string province_name = 25;
int64 city = 26;
string city_name = 27;
int64 county = 28;
string county_name = 29;
}
message ItemsResponse {
repeated InfoResponse items = 1;
}
message ToSaleRequest {
int64 id = 1;
int64 sale_id = 2;
}
message ContentRequest {
int64 id = 1;
string content = 2;
}
message ItemsRequest {
string name = 1;
int32 page = 2;
int32 size = 3;
int64 sale_id = 4;
int32 status = 5;
}
message VerifyItemsRequest {
string name = 1;
int32 page = 2;
int32 size = 3;
int64 sale_id = 4;
int32 status = 5;
}
message VerifyEditRequest {
int64 id = 1;
}
message ApplyEditRequest {
int64 id = 1;
string reason = 2;
}
message DepositItemsRequest {
string name = 1;
int32 page = 2;
int32 size = 3;
int32 status = 4;
}
message DepositVerifyRequest {
string name = 1;
int32 page = 2;
int32 size = 3;
}
message DepositIgnoreRequest {
int64 id = 1;
string reason = 2;
}
message DepositBackfillRequest {
int64 id = 1;
double amount = 2;
}
message WebDepositCreateRequest {
string bill = 1;
double amount = 2;
}
message WebDepositItemsRequest {
int32 page = 1;
int32 size = 2;
}
message ExcelExportResponse {
bytes data = 1; // excel二进制
string name = 2;
string msg = 3;
}
service Store {
rpc Status(StatusRequest) returns(Response){
option (google.api.http) = {
post: "/admin/v3/store/status"
body: "*"
};
};
rpc Edit(EditRequest) returns(Response){
option (google.api.http) = {
post: "/admin/v3/store/edit"
body: "*"
};
};
rpc Create(CreateRequest) returns(Response){
option (google.api.http) = {
post: "/admin/v3/store/create"
body: "*"
};
};
rpc ToSale(ToSaleRequest) returns(Response){
option (google.api.http) = {
post: "/admin/v3/store/to_sale"
body: "*"
};
};
rpc Info(IdRequest) returns(Response){
option (google.api.http) = {
get: "/admin/v3/store/info"
body: "*"
};
};
rpc Content(ContentRequest) returns(Response){
option (google.api.http) = {
get: "/admin/v3/store/content"
body: "*"
};
};
rpc Names(EmptyRequest) returns(Response){
option (google.api.http) = {
get: "/admin/v3/store/names"
body: "*"
};
};
rpc Items(ItemsRequest) returns (Response) {
option (google.api.http) = {
get: "/admin/v3/store/items"
body: "*"
};
}
rpc VerifyItems(VerifyItemsRequest) returns (Response) {
option (google.api.http) = {
get: "/admin/v3/store/verify/items"
body: "*"
};
}
rpc VerifyStatus(StatusRequest) returns (Response) {
option (google.api.http) = {
post: "/admin/v3/store/verify/status"
body: "*"
};
}
rpc VerifyEdit(EditRequest) returns (Response) {
option (google.api.http) = {
post: "/admin/v3/store/verify/edit"
body: "*"
};
}
rpc ApplyEdit(ApplyEditRequest) returns (Response) {
option (google.api.http) = {
post: "/admin/v3/store/apply/edit"
body: "*"
};
}
rpc ApplyVerify(ItemsRequest) returns (Response) {
option (google.api.http) = {
get: "/admin/v3/store/apply/verify"
body: "*"
};
}
rpc ApplyVerifyStatus(StatusRequest) returns (Response) {
option (google.api.http) = {
post: "/admin/v3/store/apply/status"
body: "*"
};
}
rpc DepositDone(IdRequest) returns (Response) {
option (google.api.http) = {
post: "/admin/v3/store/deposit/done"
body: "*"
};
}
rpc DepositIgnore(DepositIgnoreRequest) returns (Response) {
option (google.api.http) = {
post: "/admin/v3/store/deposit/ignore"
body: "*"
};
}
rpc DepositVerify(DepositVerifyRequest) returns (Response) {
option (google.api.http) = {
get: "/admin/v3/store/deposit/verify"
body: "*"
};
}
rpc DepositDown(DepositItemsRequest) returns (ExcelExportResponse) {
option (google.api.http) = {
get: "/admin/v3/store/deposit/down"
body: "*"
};
}
rpc DepositItems(DepositItemsRequest) returns (Response) {
option (google.api.http) = {
get: "/admin/v3/store/deposit/items"
body: "*"
};
}
rpc DepositIgnoreItems(DepositVerifyRequest) returns (Response) {
option (google.api.http) = {
get: "/admin/v3/store/deposit/ignore/items"
body: "*"
};
}
rpc DepositRecover(IdRequest) returns (Response) {
option (google.api.http) = {
get: "/admin/v3/store/deposit/recover"
body: "*"
};
}
rpc DepositBackfill(DepositBackfillRequest) returns (Response) {
option (google.api.http) = {
get: "/admin/v3/store/deposit/backfill"
body: "*"
};
}
/******************前端接口******************/
rpc WebDepositCreate(WebDepositCreateRequest) returns (Response) {
option (google.api.http) = {
post: "/api/v3/store/deposit/create"
body: "*"
};
}
rpc WebDepositItems(WebDepositItemsRequest) returns (Response) {
option (google.api.http) = {
get: "/api/v3/store/deposit/items"
body: "*"
};
}
rpc SetDef(EmptyRequest) returns (Response);
rpc GetInfoById(IdRequest) returns (InfoResponse);
rpc GetInfoByIds(IdsRequest) returns (ItemsResponse);
}