Authored by unknown

增加线下店潮流课堂微信模板

... ... @@ -13,12 +13,12 @@
1、添加拼团成功模版 2018-08-07 ADD BY XINEI 版本 1.0.0
2、添加注册成功、升/降级模板,退款提醒增加小程序模板 2018-08-22 ADD BY LM 版本 1.0.1
3、线下店小程序消息中心 2018-09-04 ADD BY XINFEI 1.0.2
4、线下店潮流课堂预约、开课模板 2018-09-10 ADD BY LM 1.0.3
-->
<groupId>com.yoho.dsf</groupId>
<artifactId>yoho-message-sdk</artifactId>
<name>yoho-message-sdk</name>
<version>1.0.2-SNAPSHOT</version>
<version>1.0.3-SNAPSHOT</version>
<packaging>jar</packaging>
<dependencies>
... ...
... ... @@ -41,6 +41,15 @@ public class OfflineShopScenes {
public static String APPOINTMENT_REMIND = "APPOINTMENT_REMIND";
/**
* 课程开班提醒
*/
public static String ACTIVITY_OPEN_REMIND = "ACTIVITY_OPEN_REMIND";
/**
* 课程预约开始提醒
*/
public static String APPOINT_START_REMIND = "APPOINT_START_REMIND";
}
... ...
... ... @@ -9,12 +9,12 @@ public interface IOfflineShopMessage {
/**
* 预约成功
*
* @param activityName 活动名称
* @param startTime 限定活动开始时间
* @param endTime 限定活动结束时间
* @param isAB AB类为小程序限定发售详情页,CD类活动详情页
* @param miniPathParam 小程序页面路径的参数
*
* @return
*/
SendMessageRspBo reserveRemindForAllFans(String activityName, int startTime, int endTime, boolean isAB, String miniPathParam);
... ... @@ -22,6 +22,7 @@ public interface IOfflineShopMessage {
/**
* 实名登记提
*
* @param uids
* @param activityName
* @param startTime
... ... @@ -34,6 +35,7 @@ public interface IOfflineShopMessage {
/**
* 排队成功通知
*
* @param uid
* @param activityName 活动名称
* @param queueTimeStr 排队时间
... ... @@ -46,6 +48,7 @@ public interface IOfflineShopMessage {
/**
* 服务到期提醒
*
* @param uid
* @param expireCouponNum 券数量
* @param brandName 体验券的销售渠道
... ... @@ -56,9 +59,9 @@ public interface IOfflineShopMessage {
SendMessageRspBo serviceDue(String uid, String brandName, int expireCouponNum, String couponName, String expireTime);
/**
* 入驻成功通知
*
* @param desc 后台配置内容字段
* @param enterTimeStr 入驻时间
* @param remark 后台配置温馨提示
... ... @@ -70,6 +73,7 @@ public interface IOfflineShopMessage {
/**
* 赴约通知
*
* @param desc 后台配置内容字段值
* @param activityName 活动名称
* @param activityAddress 活动地点
... ... @@ -77,17 +81,33 @@ public interface IOfflineShopMessage {
* @param appointmentPerson 赴约的人
* @param remark 后台配置温馨提示字段值
* @param activityId 咨询id
*
* @return
*/
SendMessageRspBo appointmentRemind(String desc, String activityName, String activityAddress, int activityTime,
String appointmentPerson, String remark, String activityId);
/**
* 课程开班提醒
*
* @param uid
* @param activityName 课程名称
* @param activityContent 课程内容
* @param activityTime 上课时间
*
* @return
*/
SendMessageRspBo activityOpenRemind(String uid,String activityName, String activityContent, String activityTime);
/**
* 预约课程开始提醒:***课程开始预约啦
*
* @param activityId
* @param activityName 课程名称
* @param appointStartTime 预约开始时间
* @return
*/
SendMessageRspBo appointStartRemind(String activityId,String activityName, String appointStartTime);
}
... ...
... ... @@ -168,4 +168,45 @@ public class OfflineShopMessageImpl extends AbstractSendMessage implements IOffl
}
/**
* 课程开班提醒
* @param uid
* @param activityName 课程名称
* @param activityContent 课程内容
* @param activityTime 上课时间
*
*
* @return
*/
@Override
public SendMessageRspBo activityOpenRemind(String uid,String activityName,String activityContent,String activityTime){
// 指定线下店小程序
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(OfflineShopScenes.ACTIVITY_OPEN_REMIND,
String.valueOf(System.currentTimeMillis()), PublicNumberConstants.OFF_SHOP_MINIPROGRAM, PublicNumberConstants.OFF_SHOP_SERVICE, uid);
messageCenterCommonEvent.putInParams("activityName",activityName);
messageCenterCommonEvent.putInParams("activityContent",activityContent);
messageCenterCommonEvent.putInParams("activityTime",activityTime);
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
return new SendMessageRspBo(200, "SUCCESS");
}
/**
* 预约课程开始提醒:***课程开始预约啦
*
* @param activityId
* @param activityName 课程名称
* @param appointStartTime 预约开始时间
* @return
*/
@Override
public SendMessageRspBo appointStartRemind(String activityId,String activityName, String appointStartTime){
// 指定线下店小程序
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEventPublicCode(OfflineShopScenes.APPOINT_START_REMIND,
String.valueOf(System.currentTimeMillis()), PublicNumberConstants.OFF_SHOP_SERVICE, PublicNumberConstants.ALL_FANS);
messageCenterCommonEvent.putInParams("activityId",activityId);
messageCenterCommonEvent.putInParams("activityName",activityName);
messageCenterCommonEvent.putInParams("appointStartTime",appointStartTime);
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
return new SendMessageRspBo(200, "SUCCESS");
}
}
... ...
... ... @@ -65,8 +65,15 @@ public class TestOfflineShopMessage {
"18.04.06 10:00-10:00", "159****0217","123");
}
@Test
public void activityOpenRemind(){
offlineShopMessage.activityOpenRemind("500031566","YOHO潮流课堂","您预约的“烟雾弥漫的另类生活!”明日即将开课","18.04. 06 10:00");
}
@Test
public void appointStartRemind(){
offlineShopMessage.appointStartRemind("200", "烟雾弥漫的另类生活!", "18.04.06 10:00 ");
}
}
... ...