init
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package com.ruoyi.cai.enums.systempush;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum SystemPushGroupIdEnum {
|
||||
// 群体类型: 0=单个用户,1=全部用户,2=男用户,3=女用户, 4 =认证女神
|
||||
ONE_USER(0,"单个用户"),
|
||||
ALL_USER(1,"全部用户"),
|
||||
MEN_USER(2,"男用户"),
|
||||
WOMEN_USER(3,"女用户"),
|
||||
ANCHOR_USER(4,"认证女神"),
|
||||
;
|
||||
private final Integer code;
|
||||
private final String text;
|
||||
|
||||
SystemPushGroupIdEnum(Integer code, String text) {
|
||||
this.code = code;
|
||||
this.text = text;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.ruoyi.cai.enums.systempush;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
// 推送状态:0=未推送,1=推送中,2=推送失败,3=推送成功
|
||||
@Getter
|
||||
public enum SystemPushLogStatus {
|
||||
NO_SEND(0,"未推送"),
|
||||
SENDING(1,"推送中"),
|
||||
SEND_FAIL(2,"推送失败"),
|
||||
SEND_SUCCESS(3,"推送成功"),
|
||||
;
|
||||
private final Integer code;
|
||||
private final String text;
|
||||
|
||||
SystemPushLogStatus(Integer code, String text) {
|
||||
this.code = code;
|
||||
this.text = text;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.ruoyi.cai.enums.systempush;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum SystemPushSendTimeTypeEnum {
|
||||
// 发送类型:0=手动发送,1=定时发送
|
||||
HAND_SEND(0,"手动发送"),
|
||||
SCHEDULED_SEND(1,"定时发送"),
|
||||
|
||||
;
|
||||
private final Integer code;
|
||||
private final String text;
|
||||
|
||||
SystemPushSendTimeTypeEnum(Integer code, String text) {
|
||||
this.code = code;
|
||||
this.text = text;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.ruoyi.cai.enums.systempush;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum SystemPushStatusEnum {
|
||||
// 状态:0=未执行,1=执行中,2=队列执行中,3=已完成
|
||||
NO_RUN(0,"未执行"),
|
||||
RUNNING(1,"执行中"),
|
||||
QUEUE_RUNNING(2,"队列执行中"),
|
||||
COMPLETE(3,"已完成"),
|
||||
;
|
||||
private final Integer code;
|
||||
private final String text;
|
||||
|
||||
SystemPushStatusEnum(Integer code, String text) {
|
||||
this.code = code;
|
||||
this.text = text;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.ruoyi.cai.enums.systempush;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum SystemPushTypeEnum {
|
||||
// 消息类型:0=纯文字消息,1=文本消息,2=单图文消息,3=多图文消息
|
||||
SIMPLE_TEXT(0,"纯文字消息"),
|
||||
TEXT(1,"文本消息"),
|
||||
SIMPLE_IMAGE_TEXT(2,"单图文消息"),
|
||||
IMAGE_TEXT(3,"多图文消息"),
|
||||
;
|
||||
private final Integer code;
|
||||
private final String text;
|
||||
|
||||
SystemPushTypeEnum(Integer code, String text) {
|
||||
this.code = code;
|
||||
this.text = text;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user