new create admin order,express add company

This commit is contained in:
2026-09-02 18:02:57 +08:00
parent 02819d159a
commit e0a63bbef9
38 changed files with 3023 additions and 265 deletions
+66
View File
@@ -10,6 +10,9 @@ message Response {
string msg = 2;
string data = 3;
}
message IdResponse {
int64 id = 1;
}
message EmtpyRequest {
}
@@ -43,6 +46,44 @@ message StatusRequest {
string reason = 3;
}
message HistoryRequest {
int32 page = 1;
int32 size = 2;
}
message DeliveryOrderCreateRequest {
string obj_id = 1;
string mobile = 2;
string address = 3;
string addressee = 4;
string province = 5;
string city = 6;
string county = 7;
repeated DeliverOrderProductInfo product_info = 8;
int64 group_id = 9;
string obj_sn = 10;
int32 type = 11;
int32 status = 12;
}
message DeliverOrderProductInfo {
int32 number = 1;
string product_name = 2;
int32 type = 3;
double price = 4;
int64 product_id = 5;
}
message DeliveringRequest {
int64 transit_id = 1;
int64 id = 2;
}
message ExpressCompanyRequest {
string code = 1;
}
service Express {
rpc Items(EmtpyRequest) returns(Response){
option (google.api.http) = {
@@ -80,4 +121,29 @@ service Express {
body: "*"
};
};
rpc History(HistoryRequest) returns(Response){
option (google.api.http) = {
get: "/admin/v3/delivery/history"
body: "*"
};
};
//获取可选的打印公司
rpc ExpressCompany(ExpressCompanyRequest) returns(Response){
option (google.api.http) = {
get: "/admin/v3/express/company"
body: "*"
};
};
//发货
rpc ExpressDelivering(DeliveringRequest) returns(Response){
option (google.api.http) = {
post: "/admin/v3/express/delivering"
body: "*"
};
};
//添加生成订单的发货信息
rpc DeliveryOrderCreate(DeliveryOrderCreateRequest) returns(IdResponse);
}