Initial commit
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
package com.ruoyi.domain.common.constant;
|
||||
|
||||
// 发货订单状态(0发起提货 1待发货 3待收货 10订单完成 11订单取消)
|
||||
public enum DeliveryOrderStatus {
|
||||
|
||||
// 0发起提货(多余)
|
||||
//CREATE_ORDER(0,"0发起提货"),
|
||||
|
||||
// 1待发货
|
||||
DELIVERY_BEFORE(1,"1待发货"),
|
||||
|
||||
// 2已发货
|
||||
DELIVERY_AFTER(2,"2已发货"),
|
||||
|
||||
// 3客户确认已收货
|
||||
OWN_BEFORE(3,"3客户确认已收货"),
|
||||
|
||||
// // 4客户确认已收货
|
||||
// OWN_BEFORE(4,"3客户确认已收货"),
|
||||
|
||||
// 10订单完成
|
||||
ORDER_COMPLETE(10,"10订单完成"),
|
||||
|
||||
//11订单取消
|
||||
ORDER_CANCEL(11,"11订单取消"),
|
||||
|
||||
// 12订单异常冻结
|
||||
ORDER_FREEZE(12,"12订单异常冻结");
|
||||
|
||||
private final Integer code;
|
||||
private final String msg;
|
||||
|
||||
DeliveryOrderStatus(Integer code,String msg){
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public Integer getCode(){
|
||||
return this.code;
|
||||
}
|
||||
public String getMsg(){
|
||||
return this.msg;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.ruoyi.domain.common.constant;
|
||||
|
||||
// 提货方式
|
||||
public enum DeliveryPattern {
|
||||
|
||||
// 手动
|
||||
MANUAL(1),
|
||||
// 自动
|
||||
AUTO(2),
|
||||
// 主播提货
|
||||
ANCHOR(3);
|
||||
|
||||
private Integer code;
|
||||
|
||||
DeliveryPattern(Integer code){
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public Integer getCode(){
|
||||
return this.code;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.ruoyi.domain.common.constant.LockKey;
|
||||
|
||||
public enum UpgradeLock {
|
||||
|
||||
UPGRADE_LOCK("upgrade_lock:");
|
||||
|
||||
private String lock;
|
||||
|
||||
UpgradeLock(String lock){
|
||||
this.lock = lock;
|
||||
}
|
||||
|
||||
public String getLock(){
|
||||
return this.lock;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.ruoyi.domain.common.constant;
|
||||
|
||||
// 第三方平台
|
||||
public enum PartyType {
|
||||
|
||||
// 发货平台-----------------
|
||||
// 扎比特
|
||||
ZBT(1),
|
||||
|
||||
// yy有品
|
||||
YY_YOU_PING(2),
|
||||
|
||||
// 支付平台------------------
|
||||
// 支付宝
|
||||
ZFB(3),
|
||||
|
||||
// 微信
|
||||
VX(4),
|
||||
|
||||
// 聚合支付
|
||||
JU_HE_ZHI_FU(5),
|
||||
|
||||
// 九嘉支付宝
|
||||
JIU_JIA_ZFB(6),
|
||||
|
||||
V5ITEM(7),
|
||||
CS340(8),
|
||||
INNER_PICTURE_PAY(9),
|
||||
;
|
||||
|
||||
private final Integer code;
|
||||
|
||||
PartyType(Integer code){
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public Integer getCode(){
|
||||
return this.code;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.ruoyi.domain.common.constant;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
// 支付订单状态
|
||||
@Getter
|
||||
public enum PayOrderStatus {
|
||||
|
||||
/** 订单状态:-1超时未付款 0未付款,1已付款,2已取消 */
|
||||
|
||||
// 0未付款
|
||||
NO_PAY("0"),
|
||||
|
||||
// 用户支付成功
|
||||
PAY_YET("1"),
|
||||
|
||||
// 用户支付失败
|
||||
PAY_FAIL("-1"),
|
||||
|
||||
// 用户取消(超时未付款)
|
||||
CANCEL("2"),
|
||||
|
||||
// 用户已支付,但回调处理异常
|
||||
CALL_BACK_ERRO("3"),
|
||||
|
||||
// 支付完成
|
||||
PAY_COMPLE("4");
|
||||
|
||||
private final String code;
|
||||
|
||||
PayOrderStatus(String code){
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.ruoyi.domain.common.constant;
|
||||
|
||||
// 支付方式
|
||||
public enum PayType {
|
||||
|
||||
// 中云 支付宝
|
||||
ZY_ZFB("1"),
|
||||
|
||||
// 卡密
|
||||
MK_CARD("2"),
|
||||
|
||||
// 支付宝
|
||||
ZFB("3"),
|
||||
|
||||
// 微信
|
||||
VX("4"),
|
||||
|
||||
// 聚合支付(蚂蚁支付)
|
||||
JU_HE_ZHI_FU("5"),
|
||||
|
||||
// 九嘉支付宝
|
||||
JIU_JIA_ZFB("6"),
|
||||
|
||||
// 星火支付宝
|
||||
XIN_HUO_ZFB("7"),
|
||||
|
||||
//QS聚合支付
|
||||
QS_PAY("8"),
|
||||
|
||||
// 国富汇通
|
||||
GFHT_PAY("9"),
|
||||
|
||||
// hipay
|
||||
HI_PAY("10");
|
||||
|
||||
private final String code;
|
||||
|
||||
PayType(String code){
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode(){
|
||||
return this.code;
|
||||
}
|
||||
|
||||
}
|
||||
+197
@@ -0,0 +1,197 @@
|
||||
package com.ruoyi.domain.common.constant;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
// 账户流水来源类型(这个类型金币和积分通用)
|
||||
public enum TtAccountRecordSource {
|
||||
|
||||
// 充值
|
||||
RECHARGE(1, TtAccountRecordType.INPUT, "充值收入"),
|
||||
|
||||
// 玩转盲盒
|
||||
GAME_TYPE_01(2, TtAccountRecordType.OUTPUT, "经典盲盒消费"),
|
||||
|
||||
// 玩转盲盒游戏奖励
|
||||
game_type_01_award(3, TtAccountRecordType.INPUT, "经典盲盒游戏奖励"),
|
||||
|
||||
// 急速对战
|
||||
GAME_TYPE_02(4, TtAccountRecordType.OUTPUT, "百变竞技消费"),
|
||||
|
||||
// 急速对战游戏奖励
|
||||
GAME_TYPE_02_AWARD(5, TtAccountRecordType.INPUT, "百变竞技游戏奖励"),
|
||||
|
||||
// roll房
|
||||
GAME_TYPE_03(6, TtAccountRecordType.OUTPUT, "roll房消费"),
|
||||
|
||||
// roll房游戏奖励
|
||||
GAME_TYPE_03_AWARD(7, TtAccountRecordType.INPUT, "roll房游戏奖励"),
|
||||
|
||||
// 逐梦前行
|
||||
GAME_TYPE_04(8, TtAccountRecordType.OUTPUT, "逐梦前行消费"),
|
||||
|
||||
// 逐梦前行游戏奖励
|
||||
GAME_TYPE_04_AWARD(9, TtAccountRecordType.INPUT, "逐梦前行游戏奖励"),
|
||||
|
||||
// 分解饰品
|
||||
DECOMPOSE_ORNAMENT(10, TtAccountRecordType.INPUT, "分解饰品收入"),
|
||||
|
||||
// 任务
|
||||
TASK(11, TtAccountRecordType.INPUT, "首次下载任务奖励"),
|
||||
|
||||
// 商城兑换
|
||||
EXCHANGE(12, TtAccountRecordType.OUTPUT, "商城兑换消费"),
|
||||
|
||||
// 推广福利
|
||||
P_WELFARE(13, TtAccountRecordType.INPUT, "推广福利收入"),
|
||||
|
||||
// 后台操作
|
||||
ADMIN_UPDATA(14, TtAccountRecordType.INPUT, "后台操作"),
|
||||
|
||||
// 奖励津贴(暂时没啥用)
|
||||
BONUS(15, TtAccountRecordType.INPUT, "奖励津贴"),
|
||||
|
||||
// 积分兑换金币
|
||||
INTEGRATING_CONVERSION(16, TtAccountRecordType.INPUT, "积分兑换金币"),
|
||||
|
||||
// 口令红包
|
||||
RECEIVE_RED_PACKET(17, TtAccountRecordType.INPUT, "福利CDK收入"),
|
||||
|
||||
// 注册奖励
|
||||
REGIST_AWARD(18, TtAccountRecordType.INPUT, "注册奖励"),
|
||||
|
||||
RANK_BLEND_ERCASH(19, TtAccountRecordType.INPUT, "综合流水排行榜奖励"),
|
||||
RANK_AMOUNT(20, TtAccountRecordType.INPUT, "金币消费排行榜奖励"),
|
||||
RANK_CREDITS(21, TtAccountRecordType.INPUT, "积分消费排行榜奖励"),
|
||||
RANK_PROD_ORN(22, TtAccountRecordType.INPUT, "出货排行榜奖励"),
|
||||
|
||||
FIRST_CHARGE(23, TtAccountRecordType.INPUT, "首充赠送"),
|
||||
|
||||
PROMOTION_LEVEL_CHARGE(24, TtAccountRecordType.INPUT, "推广等级充值赠送"),
|
||||
|
||||
// 充值红包
|
||||
CHARGE_RED_PACKET(25, TtAccountRecordType.INPUT, "充值红包收入"),
|
||||
|
||||
// 推广等级达标
|
||||
PROMOTION_LEVEL_REACH(26, TtAccountRecordType.INPUT, "推广等级达标赠送"),
|
||||
|
||||
// 推广充值返佣
|
||||
PROMOTION_CHARGE_COMMISSION(27, TtAccountRecordType.INPUT, "推广充值返佣"),
|
||||
|
||||
// 对战排行榜奖励
|
||||
FIGHT_RANKING_REWARD(28, TtAccountRecordType.INPUT, "百变竞技排行榜奖励"),
|
||||
|
||||
// 消费排行榜奖励
|
||||
RECHARGE_RANKING_REWARD(29, TtAccountRecordType.INPUT, "消费排行榜奖励"),
|
||||
|
||||
// VIP等级达标
|
||||
VIP_LEVEL_REACH(30, TtAccountRecordType.INPUT, "VIP等级达标赠送"),
|
||||
|
||||
// 主播发放工资
|
||||
PROMOTION_RECHARGE(31, TtAccountRecordType.INPUT, "主播日常发放工资"),
|
||||
|
||||
// 充值金额达到门槛奖励
|
||||
RECHARGE_RESEARCH_BONUS(32, TtAccountRecordType.INPUT, "充值金额达到门槛奖励"),
|
||||
|
||||
// 玩转指数盲盒
|
||||
EXPONENT_GAME_TYPE_01(33, TtAccountRecordType.OUTPUT, "玩转指数盲盒消费"),
|
||||
|
||||
SUGAR_SPIN_NORMAL(34, TtAccountRecordType.OUTPUT, "极速永恒普通旋转消费"),
|
||||
SUGAR_BUY_FREE_SPIN(35, TtAccountRecordType.OUTPUT, "极速永恒购买免费旋转消费"),
|
||||
SUGAR_BUY_SUPER_SPIN(36, TtAccountRecordType.OUTPUT, "极速永恒购买超级免费旋转消费"),
|
||||
SUGAR_SPIN_REWARD(37, TtAccountRecordType.INPUT, "极速永恒奖励"),
|
||||
|
||||
LUCKLY_WHEEL_SPIN(38, TtAccountRecordType.OUTPUT, "幸运转盘消费"),
|
||||
LUCKLY_WHEEL_REWARD(39, TtAccountRecordType.INPUT, "幸运转盘奖励"),
|
||||
|
||||
GOLD_DEVICE(40, TtAccountRecordType.OUTPUT, "黄金装备消费"),
|
||||
GOLD_DEVICE_REWARD(41, TtAccountRecordType.INPUT, "黄金装备奖励"),
|
||||
|
||||
ZHUBO_EXTRACT(42, TtAccountRecordType.OUTPUT, "主播后台提取消费"),
|
||||
|
||||
RECHARGE_AWARD(43, TtAccountRecordType.INPUT, "充值福利奖励"),
|
||||
VIP_CONSUME_AWARD(44, TtAccountRecordType.INPUT, "VIP流水奖励"),
|
||||
;
|
||||
|
||||
private final Integer code;
|
||||
private final TtAccountRecordType type;
|
||||
private final String msg;
|
||||
|
||||
|
||||
TtAccountRecordSource(Integer code, TtAccountRecordType t, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
this.type = t;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return this.msg;
|
||||
}
|
||||
|
||||
// 计算推广福利的流水类型
|
||||
public static Set<Integer> getWelfarePrizeCodes() {
|
||||
return Set.of(RECHARGE.getCode(),
|
||||
GAME_TYPE_01.getCode(),
|
||||
GAME_TYPE_02.getCode(),
|
||||
GOLD_DEVICE.getCode(),
|
||||
LUCKLY_WHEEL_SPIN.getCode(),
|
||||
SUGAR_SPIN_NORMAL.getCode(),
|
||||
SUGAR_BUY_FREE_SPIN.getCode(),
|
||||
SUGAR_BUY_SUPER_SPIN.getCode());
|
||||
}
|
||||
|
||||
// 计算流水返利的游戏类型
|
||||
public static Set<Integer> getGameConsumeCodes() {
|
||||
return Set.of(GAME_TYPE_01.getCode(),
|
||||
GAME_TYPE_02.getCode(),
|
||||
GOLD_DEVICE.getCode(),
|
||||
LUCKLY_WHEEL_SPIN.getCode(),
|
||||
SUGAR_SPIN_NORMAL.getCode(),
|
||||
SUGAR_BUY_FREE_SPIN.getCode(),
|
||||
SUGAR_BUY_SUPER_SPIN.getCode());
|
||||
}
|
||||
|
||||
// 今日总投注:所有游戏消费 source
|
||||
public static Set<Integer> getGameBetCodes() {
|
||||
return Set.of(
|
||||
GAME_TYPE_01.getCode(), // 经典盲盒消费
|
||||
GAME_TYPE_02.getCode(), // 百变竞技消费
|
||||
GAME_TYPE_03.getCode(), // roll房消费
|
||||
GAME_TYPE_04.getCode(), // 逐梦前行消费
|
||||
EXPONENT_GAME_TYPE_01.getCode(), // 指数盲盒消费
|
||||
SUGAR_SPIN_NORMAL.getCode(), // 极速永恒普通旋转
|
||||
SUGAR_BUY_FREE_SPIN.getCode(), // 极速永恒购买免费旋转
|
||||
SUGAR_BUY_SUPER_SPIN.getCode(), // 极速永恒购买超级免费旋转
|
||||
LUCKLY_WHEEL_SPIN.getCode(), // 幸运转盘消费
|
||||
GOLD_DEVICE.getCode() // 黄金装备消费
|
||||
);
|
||||
}
|
||||
|
||||
// 今日总赢奖:所有游戏奖励 source
|
||||
public static Set<Integer> getGameRewardCodes() {
|
||||
return Set.of(
|
||||
game_type_01_award.getCode(), // 经典盲盒奖励
|
||||
GAME_TYPE_02_AWARD.getCode(), // 百变竞技奖励
|
||||
GAME_TYPE_03_AWARD.getCode(), // roll房奖励
|
||||
GAME_TYPE_04_AWARD.getCode(), // 逐梦前行奖励
|
||||
SUGAR_SPIN_REWARD.getCode(), // 极速永恒奖励
|
||||
LUCKLY_WHEEL_REWARD.getCode(), // 幸运转盘奖励
|
||||
GOLD_DEVICE_REWARD.getCode() // 黄金装备奖励
|
||||
);
|
||||
}
|
||||
|
||||
public static boolean isNormalGameConsume(int code) {
|
||||
return code == GAME_TYPE_01.getCode() || code == GAME_TYPE_02.getCode() || code == GOLD_DEVICE.getCode();
|
||||
}
|
||||
|
||||
public static boolean isSpecialGameConsume(int code) {
|
||||
return code == LUCKLY_WHEEL_SPIN.getCode()
|
||||
|| code == SUGAR_SPIN_NORMAL.getCode()
|
||||
|| code == SUGAR_BUY_FREE_SPIN.getCode()
|
||||
|| code == SUGAR_BUY_SUPER_SPIN.getCode();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.ruoyi.domain.common.constant;
|
||||
|
||||
// 流水类型
|
||||
public enum TtAccountRecordType {
|
||||
|
||||
// 收入
|
||||
INPUT(1),
|
||||
// 支出
|
||||
OUTPUT(0);
|
||||
|
||||
private Integer code;
|
||||
|
||||
TtAccountRecordType(Integer code){
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public Integer getCode(){
|
||||
return this.code;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.ruoyi.domain.common.constant;
|
||||
|
||||
// 账户流水来源类型
|
||||
// 注意和TtboxRecordSource区分
|
||||
public enum TtboxRecordSource {
|
||||
|
||||
// 玩转盲盒
|
||||
BLIND_BOX(1,"玩转盲盒"),
|
||||
|
||||
// 急速对战
|
||||
FIGHT(2,"急速对战"),
|
||||
|
||||
// roll房
|
||||
ROLL(3,"roll房"),
|
||||
|
||||
// 急速对战
|
||||
UPGRADE(4,"幸运升级"),
|
||||
// roll房
|
||||
SYS_GRANT(5,"系统发放"),
|
||||
|
||||
MALL_EXCHANGE(6,"商城兑换"),
|
||||
|
||||
REPLACEMENT(7,"汰换"),
|
||||
EXPONENT_BOX(8,"指数盲盒"),
|
||||
TRANSFER(9,"转赠"),
|
||||
;
|
||||
|
||||
private Integer code;
|
||||
|
||||
private String msg;
|
||||
|
||||
TtboxRecordSource(Integer code, String msg){
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public Integer getCode(){
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getMsg(){
|
||||
return this.msg;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.ruoyi.domain.common.constant;
|
||||
|
||||
// 开箱记录状态/背包饰品状态
|
||||
public enum TtboxRecordStatus {
|
||||
|
||||
IN_PACKSACK_ON(0,"在背包显示"),
|
||||
|
||||
// 用于对战模式,游戏完全结束才显示
|
||||
IN_PACKSACK_OFF(1,"在背包不显示"),
|
||||
APPLY_DELIVERY(2,"申请提货"),
|
||||
DELIVERY_YET(3,"已经提货"),
|
||||
RESOLVE(5,"分解"),
|
||||
ADMIN_DELETE(10,"管理员删除");
|
||||
|
||||
private final Integer code;
|
||||
|
||||
private final String msg;
|
||||
|
||||
TtboxRecordStatus(Integer code, String msg){
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public Integer getCode(){
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getMsg(){
|
||||
return this.msg;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.ruoyi.domain.common.constant;
|
||||
|
||||
//用户类型
|
||||
public enum UserType {
|
||||
|
||||
// 主播
|
||||
ANCHOR("01"),
|
||||
// 普通用户
|
||||
COMMON_USER("02"),
|
||||
// 机器人
|
||||
ROBOT_USER("03"),
|
||||
// 招商号
|
||||
BUSINESS_USER("04"),
|
||||
;
|
||||
|
||||
private String code;
|
||||
|
||||
UserType(String code){
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode(){
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public static UserType fromCode(String code){
|
||||
for (UserType userType : UserType.values()){
|
||||
if (userType.getCode().equals(code)){
|
||||
return userType;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.ruoyi.domain.common.constant.roll;
|
||||
|
||||
// roll房玩家获奖方式
|
||||
public enum RollGetPrizeWay {
|
||||
|
||||
// 系统指定
|
||||
SYS(0),
|
||||
// 随机
|
||||
COMMON(1);
|
||||
|
||||
private final Integer code;
|
||||
|
||||
RollGetPrizeWay(Integer code){
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public Integer getCode(){
|
||||
return this.code;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.ruoyi.domain.common.constant.roll;
|
||||
|
||||
// roll房状态
|
||||
public enum RollStatus {
|
||||
|
||||
// 未开奖
|
||||
ING("0"),
|
||||
// 已开奖
|
||||
END("1");
|
||||
|
||||
private final String code;
|
||||
|
||||
RollStatus(String code){
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode(){
|
||||
return this.code;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.ruoyi.domain.common.constant.roll;
|
||||
|
||||
// roll房状态
|
||||
public enum RollType {
|
||||
|
||||
// 主播
|
||||
ANCHOR("1"),
|
||||
// 官方
|
||||
OFFICIAL("0");
|
||||
|
||||
private final String code;
|
||||
|
||||
RollType(String code){
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode(){
|
||||
return this.code;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.ruoyi.domain.common.constant.sys;
|
||||
|
||||
//用户类型
|
||||
public enum MoneyType {
|
||||
|
||||
// 金币
|
||||
GOLD(1),
|
||||
// 积分
|
||||
CREDITS(2);
|
||||
|
||||
private final Integer code;
|
||||
|
||||
MoneyType(Integer code){
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public Integer getCode(){
|
||||
return this.code;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.ruoyi.domain.common.constant.sys;
|
||||
|
||||
public enum UserStatus {
|
||||
|
||||
// 金币
|
||||
NORMAL(0);
|
||||
|
||||
private final Integer code;
|
||||
|
||||
UserStatus(Integer code){
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public Integer getCode(){
|
||||
return this.code;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user