实物系统对接优化
This commit is contained in:
parent
ffe83f9757
commit
0a3cde2f76
|
@ -190,6 +190,7 @@ func (r *PhysicalRequest) OrderList() (*transfer.PhysicalOrderListRes, error) {
|
|||
func (r *PhysicalRequest) OrderSubmit() (*transfer.PhysicalOrderSubRes, error) {
|
||||
var res transfer.PhysicalOrderSubRes
|
||||
req, err := r.request(vo.PHYSICAL_ORDER_SUBMIT)
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
@ -209,15 +209,24 @@ message OrderOpSubmitGoodsInfo {
|
|||
message PhysicalOrderListRes{
|
||||
string code = 1;
|
||||
string message = 2;
|
||||
PhysicalOrderListResData data = 3;
|
||||
OrderListData data = 3;
|
||||
|
||||
}
|
||||
|
||||
message OrderListData{
|
||||
repeated OrderListDataList list = 1;
|
||||
uint32 total = 2;
|
||||
message OrderListDataList{
|
||||
repeated OrderOpGoodsInfo goodsList = 1;
|
||||
OrderOpBasicInfo orderBasic = 2;
|
||||
}
|
||||
}
|
||||
message OrderInfoData{
|
||||
repeated OrderOpGoodsInfo goodsList = 1;
|
||||
OrderOpBasicInfo orderBasic = 2;
|
||||
}
|
||||
message PhysicalOrderListResData{
|
||||
repeated PhysicalOrderInfoRes data = 1;
|
||||
int32 total = 2;
|
||||
int32 page = 3;
|
||||
int32 limit = 4;
|
||||
repeated List list = 1;
|
||||
uint32 total = 2;
|
||||
}
|
||||
|
||||
message PhysicalOrderListReq {
|
||||
|
@ -239,24 +248,31 @@ message PhysicalOrderInfoRes {
|
|||
PhysicalOrderInfoResData data = 3;
|
||||
message PhysicalOrderInfoResData {
|
||||
OrderInfoData orderInfo=1;
|
||||
message OrderInfoData{
|
||||
OrderOpBasicInfo orderBasic = 1;
|
||||
repeated OrderOpGoodsInfo goodsList = 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
message OrderOpBasicInfo {
|
||||
|
||||
string customer_order_num = 1 ; // 客户订单编号
|
||||
string customer_name = 3; // 客户名称
|
||||
string consignee = 4; // 收货人
|
||||
string consignee_mobile = 5;
|
||||
string consignee_address = 6; // 收货地址
|
||||
string consignee_province_code = 7; // 省份编码
|
||||
string consignee_city_code = 8; // 市编码
|
||||
string consignee_area_code = 9; // 区编码
|
||||
int32 customer_id = 2 ; // 客户ID
|
||||
string customer_name = 3 ; // 客户名称
|
||||
string consignee = 4 ; // 收货人
|
||||
string consignee_mobile = 5 ;
|
||||
string consignee_address = 6 ; // 收货地址
|
||||
string consignee_province_code = 7 ; // 省份编码
|
||||
string consignee_city_code = 8 ; // 市编码
|
||||
string consignee_area_code = 9 ; // 区编码
|
||||
string consignee_county_code = 10; // 县编码
|
||||
double total_amount = 12 ; // 订单总额,单位元,小数点两位
|
||||
string in_remark = 14; // 客服备注
|
||||
string created_at = 16;
|
||||
int32 status = 17;
|
||||
string send_at = 18;
|
||||
int32 id = 21; // 订单ID
|
||||
string order_num = 22; // 订单编号
|
||||
double logistics_fee = 23; // 运费
|
||||
int32 order_after_type = 29;
|
||||
}
|
||||
|
||||
message OrderOpGoodsInfo {
|
||||
|
@ -337,8 +353,8 @@ message List{
|
|||
|
||||
|
||||
message Address{
|
||||
int64 code = 1 [json_name = "code"];
|
||||
int64 pcode = 2 [json_name = "pcode"];
|
||||
string code = 1 [json_name = "code"];
|
||||
string pcode = 2 [json_name = "pcode"];
|
||||
string name = 3 [json_name = "name"];
|
||||
int32 level = 4[json_name = "level"];
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -43,6 +43,9 @@ type (
|
|||
NewMarketQueryReq = transfer.NewMarketQueryReq
|
||||
OrderAfterOpBasic = transfer.OrderAfterOpBasic
|
||||
OrderAfterOpGoodsInfo = transfer.OrderAfterOpGoodsInfo
|
||||
OrderInfoData = transfer.OrderInfoData
|
||||
OrderListData = transfer.OrderListData
|
||||
OrderListData_OrderListDataList = transfer.OrderListData_OrderListDataList
|
||||
OrderOpBasicInfo = transfer.OrderOpBasicInfo
|
||||
OrderOpGoodsInfo = transfer.OrderOpGoodsInfo
|
||||
OrderOpLogistics = transfer.OrderOpLogistics
|
||||
|
@ -81,7 +84,6 @@ type (
|
|||
PhysicalOrderInfoReq = transfer.PhysicalOrderInfoReq
|
||||
PhysicalOrderInfoRes = transfer.PhysicalOrderInfoRes
|
||||
PhysicalOrderInfoRes_PhysicalOrderInfoResData = transfer.PhysicalOrderInfoRes_PhysicalOrderInfoResData
|
||||
PhysicalOrderInfoRes_PhysicalOrderInfoResData_OrderInfoData = transfer.PhysicalOrderInfoRes_PhysicalOrderInfoResData_OrderInfoData
|
||||
PhysicalOrderListReq = transfer.PhysicalOrderListReq
|
||||
PhysicalOrderListRes = transfer.PhysicalOrderListRes
|
||||
PhysicalOrderListResData = transfer.PhysicalOrderListResData
|
||||
|
|
Loading…
Reference in New Issue