This commit is contained in:
77
2024-03-21 23:04:40 +08:00
parent 4dd60a74f5
commit d0b1f961e8
41 changed files with 1048 additions and 62 deletions

View File

@@ -6,6 +6,7 @@ import lombok.Getter;
public enum OrderTypeEnum {
VIP("V"),
WITHDRAW("W"),
WX_TRANS("X"),
;
private final String type;

View File

@@ -0,0 +1,18 @@
package com.ruoyi.xq.enums.pay;
import lombok.Getter;
@Getter
public enum PlatformTypeEnum {
ALI("ALI"),
WX("WX"),
ADMIN("ADMIN"),
SYS("SYS"),
;
private final String code;
PlatformTypeEnum(String code) {
this.code = code;
}
}

View File

@@ -0,0 +1,31 @@
package com.ruoyi.xq.enums.syspush;
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;
}
public static SystemPushGroupIdEnum getByCode(Integer groupId) {
SystemPushGroupIdEnum[] values = SystemPushGroupIdEnum.values();
for (SystemPushGroupIdEnum value : values) {
if(value.getCode().equals(groupId)){
return value;
}
}
return null;
}
}

View File

@@ -0,0 +1,20 @@
package com.ruoyi.xq.enums.syspush;
import lombok.Getter;
// 推送状态:0=未推送,1=推送中,2=推送失败,3=推送成功
@Getter
public enum SystemPushLogStatusEnum {
NO_SEND(0,"未推送"),
SENDING(1,"推送中"),
SEND_FAIL(2,"推送失败"),
SEND_SUCCESS(3,"推送成功"),
;
private final Integer code;
private final String text;
SystemPushLogStatusEnum(Integer code, String text) {
this.code = code;
this.text = text;
}
}

View File

@@ -0,0 +1,29 @@
package com.ruoyi.xq.enums.syspush;
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;
}
public static SystemPushSendTimeTypeEnum getByCode(Integer sendTimeType) {
SystemPushSendTimeTypeEnum[] values = SystemPushSendTimeTypeEnum.values();
for (SystemPushSendTimeTypeEnum value : values) {
if(value.getCode().equals(sendTimeType)){
return value;
}
}
return null;
}
}

View File

@@ -0,0 +1,22 @@
package com.ruoyi.xq.enums.syspush;
import lombok.Getter;
@Getter
public enum SystemPushStatusEnum {
// 状态:0=未执行,1=执行中,2=队列执行中,3=已完成
NO_RUN(0,"未执行"),
RUNNING(1,"执行中"),
QUEUE_RUNNING(2,"队列执行中"),
COMPLETE(3,"已完成"),
CLOSE(4,"已取消"),
FAIL(10,"执行失败"),
;
private final Integer code;
private final String text;
SystemPushStatusEnum(Integer code, String text) {
this.code = code;
this.text = text;
}
}

View File

@@ -0,0 +1,31 @@
package com.ruoyi.xq.enums.syspush;
import lombok.Getter;
@Getter
public enum SystemPushTypeEnum {
// 消息类型:0=纯文字消息,1=文本消息,2=单图文消息,3=多图文消息
SIMPLE_TEXT(0,"纯文字消息"),
TEXT(1,"文本消息"),
SIMPLE_IMAGE_TEXT(2,"单图文消息"),
IMAGE_TEXT(3,"多图文消息"),
ONLY_IMAGE(4,"纯图文消息"),
;
private final Integer code;
private final String text;
SystemPushTypeEnum(Integer code, String text) {
this.code = code;
this.text = text;
}
public static SystemPushTypeEnum getByCode(Integer type) {
SystemPushTypeEnum[] values = SystemPushTypeEnum.values();
for (SystemPushTypeEnum value : values) {
if(value.getCode().equals(type)){
return value;
}
}
return null;
}
}