【同步】Boot 和 Cloud 的功能同步
This commit is contained in:
@@ -125,4 +125,10 @@ public interface ErrorCodeConstants {
|
||||
ErrorCode DIY_PAGE_NOT_EXISTS = new ErrorCode(1_013_018_000, "装修页面不存在");
|
||||
ErrorCode DIY_PAGE_NAME_USED = new ErrorCode(1_013_018_001, "装修页面名称({})已经被使用");
|
||||
|
||||
// ========== 客服会话 1-013-019-000 ==========
|
||||
ErrorCode KEFU_CONVERSATION_NOT_EXISTS = new ErrorCode(1_013_019_000, "客服会话不存在");
|
||||
|
||||
// ========== 客服消息 1-013-020-000 ==========
|
||||
ErrorCode KEFU_MESSAGE_NOT_EXISTS = new ErrorCode(1_013_020_000, "客服消息不存在");
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
package cn.iocoder.yudao.module.promotion.enums;
|
||||
|
||||
/**
|
||||
* Promotion 的 WebSocket 消息类型枚举类
|
||||
*
|
||||
* @author HUIHUI
|
||||
*/
|
||||
public interface WebSocketMessageTypeConstants {
|
||||
|
||||
// ======================= mall 客服 =======================
|
||||
|
||||
String KEFU_MESSAGE_TYPE = "kefu_message_type"; // 客服消息类型
|
||||
String KEFU_MESSAGE_ADMIN_READ = "kefu_message_read_status_change"; // 客服消息管理员已读
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package cn.iocoder.yudao.module.promotion.enums.kefu;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* 客服消息的类型枚举
|
||||
*
|
||||
* @author HUIHUI
|
||||
*/
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
public enum KeFuMessageContentTypeEnum implements IntArrayValuable {
|
||||
|
||||
TEXT(1, "文本消息"),
|
||||
IMAGE(2, "图片消息"),
|
||||
VOICE(3, "语音消息"),
|
||||
VIDEO(4, "视频消息"),
|
||||
SYSTEM(5, "系统消息"),
|
||||
|
||||
// ========== 商城特殊消息 ==========
|
||||
PRODUCT(10, "商品消息"),
|
||||
ORDER(11, "订单消息");
|
||||
|
||||
private static final int[] ARRAYS = Arrays.stream(values()).mapToInt(KeFuMessageContentTypeEnum::getType).toArray();
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
private final Integer type;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private final String name;
|
||||
|
||||
@Override
|
||||
public int[] array() {
|
||||
return ARRAYS;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user