Commit 1753cf58 by guanghui.cui

订单推送报文字段修改

parent fa21788b
...@@ -49,38 +49,38 @@ struct payment ...@@ -49,38 +49,38 @@ struct payment
std::vector<paymentDetail> vecDetail; //付款明细数组 std::vector<paymentDetail> vecDetail; //付款明细数组
}; };
//订单积分详情 // //订单积分详情
struct bonusDetail // struct bonusDetail
{ // {
int type=0; //积分类型 // int type=0; //积分类型
std::string desc; //积分奖励描述 // std::string desc; //积分奖励描述
int point=0; //积分奖励数值 // int point=0; //积分奖励数值
std::string sku; //积分商品 // std::string sku; //积分商品
}; // };
//订单积分 // //订单积分
struct bonus // struct bonus
{ // {
std::string summary; //积分奖励总和 // std::string summary; //积分奖励总和
std::vector<bonusDetail> vecDetail; //付款明细数组 // std::vector<bonusDetail> vecDetail; //付款明细数组
}; // };
//促销明细 // //促销明细
struct promotionsDetail // struct promotionsDetail
{ // {
std::string pro_id; //促销编码 // std::string pro_id; //促销编码
int type=0; //促销类型 // int type=0; //促销类型
std::string desc; //促销描述 // std::string desc; //促销描述
int offer=0; //促销金额 // int offer=0; //促销金额
std::string sku; //促销商品 // std::string sku; //促销商品
}; // };
//促销 // //促销
struct promotions // struct promotions
{ // {
std::string summary; //促销金额总和 // std::string summary; //促销金额总和
std::vector<promotionsDetail> vecDetail; //付款明细数组 // std::vector<promotionsDetail> vecDetail; //付款明细数组
}; // };
//响应结果 //响应结果
struct responseRlt struct responseRlt
...@@ -119,12 +119,53 @@ struct customer ...@@ -119,12 +119,53 @@ struct customer
std::string account_level; //顾客账号等级 std::string account_level; //顾客账号等级
}; };
//促销
struct promotions
{
std::string pcode; //优惠码
std::string proType; //类型: 00快速积点 ,20售价促销,30进价+售价促销,40组合促销,50整单促销,60厂区促销,70会员卡充值促销, 80电子点标
std::string type; //优惠子类型
std::string desc; //优惠明细
std::string name; //名称
std::string sku; //商品编号
int originalPrice=0; //原始价格
int discount=0; //折扣
int prmotionPrice=0; //优惠价格
std::string giftSku; //赠品的编码
int giftQty=0; //赠品的数量
};
//积分
struct bonus
{
std::string pcode; //优惠码
std::string proType; //类型: 00快速积点 ,20售价促销,30进价+售价促销,40组合促销,50整单促销,60厂区促销,70会员卡充值促销, 80电子点标
std::string type; //优惠子类型
std::string desc; //优惠明细
std::string name; //名称
std::string sku; //商品编号
int bonus=0; //获得积分
};
//电子点标
struct ecoupon
{
std::string pcode; //优惠码
std::string proType; //类型: 00快速积点 ,20售价促销,30进价+售价促销,40组合促销,50整单促销,60厂区促销,70会员卡充值促销, 80电子点标
std::string type; //优惠子类型
std::string desc; //优惠明细
std::string name; //名称
std::string sku; //商品编号
std::string ecouponNumber; //电子点标号码
int ecouponQty=0; //电子点标数量
};
//订单结构体 //订单结构体
struct orderObj struct orderObj
{ {
int fm_cmd=0; //请求类型 int fm_cmd=0; //请求类型
std::string channel; //订单渠道 std::string channel; //订单渠道
bool offline_bonus=false; //是否需要线下累分 bool offline_bonus=false; //是否需要线下累分
int order_no=0; //订单序号 int order_no=0; //订单序号
std::string order_id; //订单标识号 std::string order_id; //订单标识号
std::string create_time; //订单创建时间 std::string create_time; //订单创建时间
...@@ -135,6 +176,9 @@ struct orderObj ...@@ -135,6 +176,9 @@ struct orderObj
int total_price=0; //订单总价 int total_price=0; //订单总价
int delivery_price=0; //配送费 int delivery_price=0; //配送费
int reduced_price=0; //折扣总金额 int reduced_price=0; //折扣总金额
int wmDiscount=0; //外卖优惠金额
int wmPtSharedDiscount=0; //外卖平台承担的优惠金额
int wmSjSharedDiscount=0; //外卖商家承担的优惠金额
std::string pickup_code; //自取订单取餐码 std::string pickup_code; //自取订单取餐码
std::string pickup_point; //自取订单取餐处 std::string pickup_point; //自取订单取餐处
std::string invoice_pickup_code; //订单发票提出码 std::string invoice_pickup_code; //订单发票提出码
...@@ -144,8 +188,9 @@ struct orderObj ...@@ -144,8 +188,9 @@ struct orderObj
customer customerInfo; //顾客信息 customer customerInfo; //顾客信息
std::vector<productAttr> vecProducts; //商品列表 std::vector<productAttr> vecProducts; //商品列表
payment payInfo; //付款明细 payment payInfo; //付款明细
bonus bonusInfo; //消费积分 std::vector<bonus> vecBonus; //消费积分
promotions promotionInfo; //促销列表 std::vector<promotions> vecPromotions; //促销列表
std::vector<ecoupon> vecEcoupon; //电子点标
}; };
//订单状态 //订单状态
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment