Authored by min.ling

限定商品开售通知

... ... @@ -22,11 +22,12 @@
10、拼团服务号通知增加小程序跳转链接 2018-12-03 ADD BY LM 1.1.0
11、抽奖用户和拼团下单用户增加发券通知 2019-01-07 ADD BY LM 1.1.1
12、UFO增加调价场景通知 2019-01-29 ADD BY LM 1.1.2
13、限定商品发售通知 2019-03-15 ADD BY LM 1.1.3
-->
<groupId>com.yoho.dsf</groupId>
<artifactId>yoho-message-sdk</artifactId>
<name>yoho-message-sdk</name>
<version>1.1.2-SNAPSHOT</version>
<version>1.1.3-SNAPSHOT</version>
<packaging>jar</packaging>
<dependencies>
... ...
... ... @@ -5,7 +5,7 @@ public enum MiniAppTypeEnum {
NEW_FORCE(1, "新与力", "wxe4f1cbdfd470035d"), // 已经废弃不用了
OFFSHOP(2,"线下店","wx8c854ca3917e9ba8"),
REDMAN_SHOP(3,"红人小店","wx66ecf50a505afefa"),
LIMIT_SELL(4, "限定频道","wx39f299b6485cf97a"),
LIMIT_SELL(4, "限定频道","wxed31f9e8705fb8d1"),
GROUP_ORDER(60, "拼团独立小程序","wx207f18be42db9028");
private String appId;
... ...
... ... @@ -33,4 +33,7 @@ public final class PromotionScenes {
//成功获得限购码当天提醒
public static final String GET_LIMITCODE_SUCCESS = "GET_LIMITCODE_SUCCESS";
//限定发售商品开始发售提醒
public static final String LIMIT_PRODUCT_SELL_START = "LIMIT_PRODUCT_SELL_START";
}
... ...
... ... @@ -42,4 +42,17 @@ public interface ISendLimitCodeMessage {
* @return
*/
SendMessageRspBo getLimitCodeSuccess(String uid, String productName, String releaseDateTime, String limitProductCode);
/**
* 获取限购码的用户开售当天提醒
* @param uid
* @param mobile 购买者手机号(中间四位*代替)
* @param productName 商品名称
* @param productPrice 商品价格
* @param sellStartTime 发售时间(yyyy-MM-dd HH:mm)
* @param productSkn 商品skn
* @return
*/
SendMessageRspBo limitProductSellStart(String uid,String mobile,String productName,String productPrice,String sellStartTime,String productSkn);
}
... ...
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");
}
}
... ...
... ... @@ -33,4 +33,9 @@ public class TestLimitCodeMessage {
sendLimitCodeMessage.getLimitCodeSuccess("1234567","VANS帅气卫衣","2018-12-01 14:00","ABCDEFG");
}
@Test
public void limitProductSellStart(){
sendLimitCodeMessage.limitProductSellStart("500031566","189****1292","VANS清新卫衣","120","2019-03-28 12:00","52054104");
}
}
... ...