This commit is contained in:
张良(004796)
2024-03-06 18:30:52 +08:00
parent 7e1f31ed2f
commit 60293b4a70
19 changed files with 404 additions and 4 deletions

View File

@@ -0,0 +1,19 @@
package com.ruoyi.xq.enums.vip;
import lombok.Getter;
// VIP开通状态 0-未开通 1-已开通 2-已到期
@Getter
public enum UserVipOpenStatusEnum {
NO(0,"未开通"),
OPEN_VIP(1,"已开通"),
VIP_TIMEOUT(2,"已到期"),
;
private final Integer code;
private final String text;
UserVipOpenStatusEnum(Integer code, String text) {
this.code = code;
this.text = text;
}
}

View File

@@ -0,0 +1,20 @@
package com.ruoyi.xq.enums.vip;
import lombok.Getter;
// 1-正常 2-已过期 3-已取消
@Getter
public enum VipStatusEnum {
NORMAL(1,"正常"),
TIMEOUT(2,"已过期"),
CLOSE(3,"已取消"),
;
private final Integer code;
private final String text;
VipStatusEnum(Integer code, String text) {
this.code = code;
this.text = text;
}
}

View File

@@ -0,0 +1,19 @@
package com.ruoyi.xq.enums.vip;
import lombok.Getter;
import org.springframework.web.bind.annotation.GetMapping;
@Getter
public enum VipTypeEnum {
ONE(1,"一级会员"),
TWO(2,"二级会员"),
THREE(3,"三级会员"),
;
private final Integer code;
private final String text;
VipTypeEnum(Integer code, String text) {
this.code = code;
this.text = text;
}
}