|
|
package com.yoho.message.sdk.service.user.impl;
|
|
|
|
|
|
import com.yoho.message.sdk.utils.DateUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
...
|
...
|
@@ -34,4 +35,30 @@ public class SendUserMessageImpl extends AbstractSendMessage implements ISendUse |
|
|
return new SendMessageRspBo(200, "SUCCESS");
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public SendMessageRspBo assistStart(String uid, String assistId, int startTime) {
|
|
|
|
|
|
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.MEMBERSHIP_UPGRADE, null, uid);
|
|
|
messageCenterCommonEvent.putInParams("startTime", DateUtils.long2DateStr(Long.parseLong(String.valueOf(startTime)), "yyyy-MM-dd HH:mm"));
|
|
|
messageCenterCommonEvent.putInParams("assisId", assistId);
|
|
|
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
|
|
|
return new SendMessageRspBo(200, "SUCCESS");
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public SendMessageRspBo assistUidProcess(String uid, String assistId) {
|
|
|
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.MEMBERSHIP_UPGRADE, null, uid);
|
|
|
messageCenterCommonEvent.putInParams("assisId", assistId);
|
|
|
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
|
|
|
return new SendMessageRspBo(200, "SUCCESS");
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public SendMessageRspBo assistExpireProcess(String uid, String assistId) {
|
|
|
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.MEMBERSHIP_UPGRADE, null, uid);
|
|
|
messageCenterCommonEvent.putInParams("assisId", assistId);
|
|
|
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
|
|
|
return new SendMessageRspBo(200, "SUCCESS");
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|