|
|
package com.yoho.message.sdk.service.impl;
|
|
|
|
|
|
import com.yoho.message.sdk.common.constants.MiniAppTypeEnum;
|
|
|
import com.yoho.message.sdk.common.constants.PromotionScenes;
|
|
|
import com.yoho.message.sdk.common.handler.MessageCenterMqHandler;
|
|
|
import com.yoho.message.sdk.common.model.MessageCenterCommonEvent;
|
...
|
...
|
@@ -95,4 +96,26 @@ public class SendlimitCodeMessageImpl extends AbstractSendMessage implements ISe |
|
|
messageCenterMqHandler.sendMessageToMq(centerCommonEvent);
|
|
|
return new SendMessageRspBo(200, "SUCCESS");
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取限购码的用户开售当天提醒
|
|
|
* @param uid
|
|
|
* @param mobile 购买者手机号(中间四位*代替)
|
|
|
* @param productName 商品名称
|
|
|
* @param productPrice 商品价格
|
|
|
* @param sellStartTime 发售时间(yyyy-MM-dd HH:mm)
|
|
|
* @param productSkn 商品skn
|
|
|
* @return
|
|
|
*/
|
|
|
public SendMessageRspBo limitProductSellStart(String uid,String mobile,String productName,String productPrice,String sellStartTime,String productSkn){
|
|
|
MessageCenterCommonEvent centerCommonEvent = genMessageCenterCommonEvent(PromotionScenes.LIMIT_PRODUCT_SELL_START,
|
|
|
String.valueOf(System.currentTimeMillis()), MiniAppTypeEnum.LIMIT_SELL.getCode(), uid);
|
|
|
centerCommonEvent.putInParams("mobile",mobile);
|
|
|
centerCommonEvent.putInParams("productName",productName);
|
|
|
centerCommonEvent.putInParams("productPrice",productPrice);
|
|
|
centerCommonEvent.putInParams("sellStartTime",sellStartTime);
|
|
|
centerCommonEvent.putInParams("productSkn",productSkn);
|
|
|
messageCenterMqHandler.sendMessageToMq(centerCommonEvent);
|
|
|
return new SendMessageRspBo(200, "SUCCESS");
|
|
|
}
|
|
|
} |
...
|
...
|
|