1
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package com.yxt.messagecenter.api.kafka;
|
||||
|
||||
/**
|
||||
* @author liuguohui
|
||||
* @version 1.0
|
||||
* @description kafka Topics (使用枚举报错)
|
||||
* @date 2022/03/22
|
||||
*/
|
||||
public class KafKaTopics {
|
||||
|
||||
/**
|
||||
* 提醒联系潜在客户
|
||||
*/
|
||||
public static final String CUSTOMERREMIND = "customerRemind";
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.yxt.messagecenter.api.kafka;
|
||||
|
||||
/**
|
||||
* @author liuguohui
|
||||
* @version 1.0
|
||||
* @description
|
||||
* @date 2022/03/22
|
||||
*/
|
||||
public class KafaGroupId {
|
||||
|
||||
/**
|
||||
* 客户管理
|
||||
*/
|
||||
public static final String CRM = "crm";
|
||||
|
||||
/**
|
||||
* 销售业务
|
||||
*/
|
||||
public static final String buscenter = "buscenter";
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.yxt.messagecenter.api.kafka;
|
||||
|
||||
import com.yxt.messagecenter.api.message.AppMessageDto;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author liuguohui
|
||||
* @version 1.0
|
||||
* @description
|
||||
* @date 2022/03/22
|
||||
*/
|
||||
@ApiModel("kafka消息对象")
|
||||
@Data
|
||||
public class KafkaMessageDto extends AppMessageDto implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty("业务参数")
|
||||
private Map<String, Object> map;
|
||||
|
||||
}
|
||||
@@ -7,6 +7,8 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Project: message-center(消息中心) <br/>
|
||||
@@ -93,4 +95,8 @@ public class MessageDto implements Dto {
|
||||
@ApiModelProperty(value = "接收人sid(多个人员以,分隔)", required = true)
|
||||
@NotBlank(message = "接收人sid不能为空")
|
||||
private String receiveSids;
|
||||
|
||||
private String assignee;
|
||||
|
||||
private List<String> groupIdList;
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.yxt.messagecenter.api.message;
|
||||
|
||||
/**
|
||||
* @author liuguohui
|
||||
* @version 1.0
|
||||
* @Description: 推送的消息打开的action(APP)枚举类
|
||||
* @date 2022/03/28
|
||||
*/
|
||||
public enum MsgTargetUriEnum {
|
||||
APPUPDATE("app更新", "com.anrui.android.activity.UpdateActivity"),
|
||||
CUSTOMERREMIND("客户提醒", "com.anrui.android.plugin.autoservice.activity.DetailCustomerActivity");
|
||||
|
||||
/**
|
||||
* uri名称
|
||||
*/
|
||||
private final String uriName;
|
||||
|
||||
/**
|
||||
* uri
|
||||
*/
|
||||
private final String uri;
|
||||
|
||||
MsgTargetUriEnum(String uriName, String uri) {
|
||||
this.uriName = uriName;
|
||||
this.uri = uri;
|
||||
}
|
||||
|
||||
public String getUriName() {
|
||||
return uriName;
|
||||
}
|
||||
|
||||
public String getUri() {
|
||||
return uri;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.yxt.messagecenter.api.message;
|
||||
|
||||
/**
|
||||
* @author liuguohui
|
||||
* @version 1.0
|
||||
* @Description: 消息标题枚举类
|
||||
* @date 2022/03/28
|
||||
*/
|
||||
public enum MsgTitleEnum {
|
||||
|
||||
CUSTOMERREMIND("客户跟进提醒", "customerRemind"),
|
||||
;
|
||||
|
||||
/**
|
||||
* 标题名称
|
||||
*/
|
||||
private final String titleName;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
private final String title;
|
||||
|
||||
MsgTitleEnum(String titleName, String title) {
|
||||
this.titleName = titleName;
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getTitleName() {
|
||||
return titleName;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.yxt.messagecenter.api.messagetype;
|
||||
|
||||
/**
|
||||
* @author liuguohui
|
||||
* @version 1.0
|
||||
* @Description: 消息类别枚举类
|
||||
* @date 2022/03/21
|
||||
*/
|
||||
public enum MessageTypeEnum {
|
||||
|
||||
SYSTEM("4598b44e-52df-4d83-b012-4db1ea7e5ed7", "系统消息"),
|
||||
CUSTOMER("7344e7d7-4f5e-11ec-981f-6479f0dd0373", "客户"),
|
||||
FINANCE("2ab6dac4-87c0-11ec-b13a-fa163e0cb33c", "财务"),
|
||||
APPROVAL("b4b50229-cce0-4cb1-8c0a-ae7545a9ec59", "审批中心"),
|
||||
;
|
||||
|
||||
/**
|
||||
* 消息类别sid
|
||||
*/
|
||||
private final String msgTypeSid;
|
||||
|
||||
/**
|
||||
* 消息类别名称
|
||||
*/
|
||||
private final String msgTypeName;
|
||||
|
||||
MessageTypeEnum(String msgTypeSid, String msgTypeName) {
|
||||
this.msgTypeSid = msgTypeSid;
|
||||
this.msgTypeName = msgTypeName;
|
||||
}
|
||||
|
||||
public String getMsgTypeSid() {
|
||||
return msgTypeSid;
|
||||
}
|
||||
|
||||
public String getMsgTypeName() {
|
||||
return msgTypeName;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user