REQ-3045: IM按钮
This commit is contained in:
parent
c9b44c0570
commit
f654ed1c60
@ -2,7 +2,7 @@ package cn.axzo.msg.center.inside.notices.service.impl.v3.msg;
|
||||
|
||||
import cn.axzo.msg.center.domain.entity.MessageRecordV3;
|
||||
import cn.axzo.msg.center.message.domain.dto.TemplateModelV3;
|
||||
import cn.axzo.msg.center.message.domain.vo.CardButtonV3;
|
||||
import cn.axzo.msg.center.message.domain.vo.CardButtonForCms;
|
||||
import cn.axzo.msg.center.message.domain.vo.GeneralMessagePushVO;
|
||||
import cn.axzo.msg.center.message.domain.vo.GeneralMessagePushVO.CardButton;
|
||||
import cn.axzo.msg.center.message.domain.vo.GeneralMessagePushVO.CardExtensionItem;
|
||||
@ -129,15 +129,15 @@ public class MessageTemplateParserV3 {
|
||||
}
|
||||
|
||||
private void parseButtonV3(ParsedButtonV3 button) {
|
||||
CardButtonV3 imButton = new CardButtonV3();
|
||||
imButton.setTitle(button.getName());
|
||||
imButton.setAction(button.getCategory().name());
|
||||
imButton.setIsHighlight(button.parseStyle().contains(ButtonStyleEnum.HIGH_LIGHT));
|
||||
imButton.setIsOverCard(button.parseStyle().contains(ButtonStyleEnum.OVER_CARD));
|
||||
imButton.setUrlInfo(parseUrlForCms(button.getUrlConfig()));
|
||||
if (im.getCardButtonsV3() == null)
|
||||
im.setCardButtonsV3(new ArrayList<>());
|
||||
im.getCardButtonsV3().add(imButton);
|
||||
CardButtonForCms cmsButton = new CardButtonForCms();
|
||||
cmsButton.setTitle(button.getName());
|
||||
cmsButton.setAction(button.getCategory().name());
|
||||
cmsButton.setIsHighlight(button.parseStyle().contains(ButtonStyleEnum.HIGH_LIGHT));
|
||||
cmsButton.setIsOverCard(button.parseStyle().contains(ButtonStyleEnum.OVER_CARD));
|
||||
cmsButton.setUrlInfo(parseUrlForCms(button.getUrlConfig()));
|
||||
if (im.getCardButtonsForCms() == null)
|
||||
im.setCardButtonsForCms(new ArrayList<>());
|
||||
im.getCardButtonsForCms().add(cmsButton);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
@ -8,7 +8,7 @@ import lombok.Setter;
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
public class CardButtonV3 {
|
||||
public class CardButtonForCms {
|
||||
/**
|
||||
* url
|
||||
*/
|
||||
@ -78,7 +78,7 @@ public class GeneralMessagePushVO implements Serializable {
|
||||
/**
|
||||
* 按钮操作区域 (cms)
|
||||
*/
|
||||
private List<CardButtonV3> cardButtonsV3;
|
||||
private List<CardButtonForCms> cardButtonsForCms;
|
||||
/**
|
||||
* 业务编码
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user