REQ-3045: 添加一些基础类
This commit is contained in:
parent
fdea50bc17
commit
8eb94e5750
@ -1,4 +1,4 @@
|
||||
package cn.axzo.msg.center.domain.entity.jsondomain;
|
||||
package cn.axzo.msg.center.service.domain;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
@ -8,11 +8,11 @@ import lombok.Setter;
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
public class CardLinkConfig {
|
||||
public class CardUrlConfig {
|
||||
|
||||
/**
|
||||
* 链接配置
|
||||
*/
|
||||
private LinksConfig linksConfig;
|
||||
private UrlConfig urlConfig;
|
||||
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.axzo.msg.center.domain.entity.jsondomain;
|
||||
package cn.axzo.msg.center.service.domain;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
@ -0,0 +1,15 @@
|
||||
package cn.axzo.msg.center.service.domain;
|
||||
|
||||
import cn.axzo.msg.center.service.domain.url.AppUrl;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author yanglin
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
public class MobileUrlConfig {
|
||||
private AppUrl ios;
|
||||
private AppUrl android;
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
package cn.axzo.msg.center.service.domain;
|
||||
|
||||
import cn.axzo.msg.center.service.domain.url.WebUrl;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author yanglin
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
public class UrlConfig {
|
||||
// PC(OMS)
|
||||
private WebUrl pcOms;
|
||||
// PC(CMS)
|
||||
private WebUrl pcCms;
|
||||
// 监管平台
|
||||
private WebUrl pcGaGeneral;
|
||||
// APP(工人端)
|
||||
private MobileUrlConfig appWorker;
|
||||
// APP(管理端)
|
||||
private MobileUrlConfig appManager;
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package cn.axzo.msg.center.service.domain.url;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author yanglin
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
public class AppUrl {
|
||||
|
||||
/**
|
||||
* url地址
|
||||
*/
|
||||
private String url;
|
||||
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package cn.axzo.msg.center.service.domain.url;
|
||||
|
||||
import lombok.AccessLevel;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* @author yanglin
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public enum WebPageOpenStrategy {
|
||||
|
||||
NEW_PAGE("新页面打开"),
|
||||
CURRENT_PAGE("当前页面打开"),
|
||||
DRAWER("抽屉")
|
||||
|
||||
;
|
||||
|
||||
private final String desc;
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
package cn.axzo.msg.center.service.domain.url;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author yanglin
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
public class WebUrl {
|
||||
|
||||
/**
|
||||
* 网页打开方式. NEW_PAGE: 新页面打开, CURRENT_PAGE: 当前页面打开, DRAWER: 抽屉
|
||||
*/
|
||||
private WebPageOpenStrategy openStrategy;
|
||||
|
||||
/**
|
||||
* url地址
|
||||
*/
|
||||
private String url;
|
||||
|
||||
}
|
||||
@ -9,7 +9,7 @@ import lombok.Getter;
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public enum CardLinkStrategy {
|
||||
public enum CardUrlOpenStrategy {
|
||||
|
||||
NONE("无跳转"),
|
||||
OPEN_TODO_DETAIL("打开待办详情"),
|
||||
@ -1,6 +1,6 @@
|
||||
package cn.axzo.msg.center.domain.entity;
|
||||
|
||||
import cn.axzo.msg.center.domain.entity.jsondomain.LinksConfig;
|
||||
import cn.axzo.msg.center.service.domain.UrlConfig;
|
||||
import cn.axzo.msg.center.service.enums.PresetButtonType;
|
||||
import cn.axzo.msg.center.service.enums.RouterButtonSourceEnum;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
@ -41,7 +41,7 @@ public class MessageTemplateButtonV3 extends BaseEntityWithOperator<MessageTempl
|
||||
/**
|
||||
* 按钮链接配置
|
||||
*/
|
||||
private LinksConfig linkConfig;
|
||||
private UrlConfig urlConfig;
|
||||
|
||||
/**
|
||||
* 按钮style配置
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
package cn.axzo.msg.center.domain.entity;
|
||||
|
||||
import cn.axzo.msg.center.domain.entity.jsondomain.GroupConfig;
|
||||
import cn.axzo.msg.center.service.domain.GroupConfig;
|
||||
import cn.axzo.msg.center.service.enums.GroupType;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Getter;
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
package cn.axzo.msg.center.domain.entity;
|
||||
|
||||
import cn.axzo.msg.center.domain.entity.jsondomain.CardLinkConfig;
|
||||
import cn.axzo.msg.center.domain.entity.jsondomain.LinksConfig;
|
||||
import cn.axzo.msg.center.service.enums.CardLinkStrategy;
|
||||
import cn.axzo.msg.center.service.domain.CardUrlConfig;
|
||||
import cn.axzo.msg.center.service.enums.CardUrlOpenStrategy;
|
||||
import cn.axzo.msg.center.service.enums.MessageCategoryEnum;
|
||||
import cn.axzo.msg.center.service.enums.StatusEnum;
|
||||
import cn.axzo.msg.center.service.enums.YesOrNo;
|
||||
@ -47,7 +46,7 @@ public class MessageTemplateV3 extends BaseEntityWithOperator<MessageTemplateV3>
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* 消息详情样式. BIZ_COMMON: 业务待办能用, FLOW_COMMON: 审批待办能用, 其它动态配置的
|
||||
* 消息详情样式. BIZ_COMMON: 业务待办能用, FLOW_COMMON: 审批待办能用, 其它动态配置的
|
||||
*/
|
||||
private String detailStyleCode;
|
||||
|
||||
@ -74,12 +73,13 @@ public class MessageTemplateV3 extends BaseEntityWithOperator<MessageTemplateV3>
|
||||
/**
|
||||
* 卡片跳转方式. NONE: 无跳转, OPEN_TODO_DETAIL: 打开待办详情, OPEN_CUSTOM_PAGE: 打开指定页面
|
||||
*/
|
||||
private CardLinkStrategy cardLinkStrategy;
|
||||
private CardUrlOpenStrategy cardUrlOpenStrategy;
|
||||
|
||||
/**
|
||||
* 卡片跳转配置. 在links的基础上再包一层, 避免以后卡片增加自己的配置
|
||||
*/
|
||||
private CardLinkConfig cardLinkConfig;
|
||||
@TableField(typeHandler = FastjsonTypeHandler.class)
|
||||
private CardUrlConfig cardUrConfig;
|
||||
|
||||
/**
|
||||
* IM发送优先级
|
||||
|
||||
@ -1,12 +0,0 @@
|
||||
package cn.axzo.msg.center.domain.entity.jsondomain;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author yanglin
|
||||
*/
|
||||
@Setter
|
||||
@Getter
|
||||
public class LinksConfig {
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user