123333
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.ruoyi.cai.enums;
|
||||
|
||||
import com.ruoyi.yunxin.enums.YxImTypeEnum;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
@@ -8,11 +9,11 @@ import lombok.Getter;
|
||||
* @author duet
|
||||
*/
|
||||
public enum ChatTypeEnum {
|
||||
MESSAGE(1,0),
|
||||
VOICE(2,2),
|
||||
PICTURE(3,1),
|
||||
VIDEO(4,3),
|
||||
CUSTOM(100,100)
|
||||
MESSAGE(1, YxImTypeEnum.TXT.getCode()),
|
||||
VOICE(2,YxImTypeEnum.VOICE.getCode()),
|
||||
IMAGE(3,YxImTypeEnum.IMAGE.getCode()),
|
||||
VIDEO(4,YxImTypeEnum.VIDEO.getCode()),
|
||||
CUSTOM(100,YxImTypeEnum.CUSTOM.getCode())
|
||||
;
|
||||
|
||||
@Getter
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.ruoyi.cai.enums.im;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
// 图片下载状态:0=未更新,1=已更新,2=已下载,3=下载失败
|
||||
@Getter
|
||||
public enum ImImgStatusEnum {
|
||||
NO(0,"未更新"),
|
||||
INIT(1,"已初始化"),
|
||||
DOWNLOAD(2,"已下载"),
|
||||
DOWNLOAD_FAIL(3,"下载失败"),
|
||||
;
|
||||
private final Integer code;
|
||||
private final String text;
|
||||
|
||||
ImImgStatusEnum(Integer code, String text) {
|
||||
this.code = code;
|
||||
this.text = text;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user