Authored by unknown

拼团砍价小程序通知

... ... @@ -107,4 +107,13 @@ public class SendScenes {
//退款成功 补加小程序通知 因为同为优先级一,暂新增场景处理
public static final String REFUND_SUCCESS_MINI = "REFUND_SUCCESS_MINI";
//砍价进度提醒
public static final String CUT_PRICE_PROGRESS = "CUT_PRICE_PROGRESS";
//砍价成功通知
public static final String CUT_PRICE_SUCCESS = "CUT_PRICE_SUCCESS";
//砍价失败通知
public static final String CUT_PRICE_FAIL = "CUT_PRICE_FAIL";
}
... ...
... ... @@ -368,6 +368,36 @@ public interface ISendOrderMessage {
public SendMessageRspBo paySuccess(String uid, String orderCode, int payTime, String productName, String goodReceiptAddress, String orderAmount,int miniappFlg);
/**
* 砍价进度提醒
* @param uid
* @param productName 商品名称
* @param remainTime 剩余时间
* @param cutDesc 砍价描述
* @return
*/
SendMessageRspBo cutPriceProgress(String uid, String productName, String remainTime, String cutDesc);
/**
* 砍价成功提醒
* @param uid
* @param productName 商品名称
* @param originPrice 砍价前原价
* @param currentPrice 现在价格
* @return
*/
SendMessageRspBo cutPriceSuccess(String uid, String productName, String originPrice, String currentPrice);
/**
* 砍价失败提醒
* @param uid
* @param productName 商品名称
* @param failReason 失败原因
* @param cutPrice 砍掉价格
* @return
*/
SendMessageRspBo cutPriceFail(String uid, String productName, String failReason, String cutPrice);
}
... ...
... ... @@ -501,4 +501,57 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr
return new SendMessageRspBo(200, "SUCCESS");
}
/**
* 砍价进度提醒
* @param uid
* @param productName 商品名称
* @param remainTime 剩余时间
* @param cutDesc 砍价描述
* @return
*/
public SendMessageRspBo cutPriceProgress(String uid, String productName, String remainTime, String cutDesc){
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.CUT_PRICE_PROGRESS, uid, uid);
messageCenterCommonEvent.putInParams("productName", productName);
messageCenterCommonEvent.putInParams("remainTime", remainTime);
messageCenterCommonEvent.putInParams("cutDesc", cutDesc);
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
return new SendMessageRspBo(200, "SUCCESS");
}
/**
* 砍价成功提醒
* @param uid
* @param productName 商品名称
* @param originPrice 砍价前原价
* @param currentPrice 现在价格
* @return
*/
public SendMessageRspBo cutPriceSuccess(String uid, String productName, String originPrice, String currentPrice){
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.CUT_PRICE_SUCCESS, uid, uid);
messageCenterCommonEvent.putInParams("productName", productName);
messageCenterCommonEvent.putInParams("originPrice", originPrice);
messageCenterCommonEvent.putInParams("currentPrice", currentPrice);
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
return new SendMessageRspBo(200, "SUCCESS");
}
/**
* 砍价失败提醒
* @param uid
* @param productName 商品名称
* @param failReason 失败原因
* @param cutPrice 砍掉价格
* @return
*/
public SendMessageRspBo cutPriceFail(String uid, String productName, String failReason, String cutPrice){
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.CUT_PRICE_FAIL, uid, uid);
messageCenterCommonEvent.putInParams("productName", productName);
messageCenterCommonEvent.putInParams("failReason", failReason);
messageCenterCommonEvent.putInParams("cutPrice", cutPrice);
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
return new SendMessageRspBo(200, "SUCCESS");
}
}
\ No newline at end of file
... ...