实现用户角色权限区域管理模块
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.atguigu.ssyx.enums;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.EnumValue;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum ActivityType {
|
||||
FULL_REDUCTION(1, "满减"),
|
||||
FULL_DISCOUNT(2, "满量打折");
|
||||
|
||||
@EnumValue
|
||||
private Integer code;
|
||||
private String comment;
|
||||
|
||||
ActivityType(Integer code, String comment) {
|
||||
this.code = code;
|
||||
this.comment = comment;
|
||||
}
|
||||
}
|
@@ -0,0 +1,24 @@
|
||||
package com.atguigu.ssyx.enums;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONType;
|
||||
import com.alibaba.fastjson.parser.deserializer.EnumDeserializer;
|
||||
import com.alibaba.fastjson.serializer.EnumSerializer;
|
||||
import com.baomidou.mybatisplus.annotation.EnumValue;
|
||||
import lombok.Getter;
|
||||
|
||||
@JSONType(serializer = EnumSerializer.class, deserializer = EnumDeserializer.class, serializeEnumAsJavaBean = true)
|
||||
@Getter
|
||||
public enum BillType {
|
||||
ORDER(0, "订单佣金"),
|
||||
WITHDRAW(1, "提现"),
|
||||
REFUND(1, "订单退款");
|
||||
|
||||
@EnumValue
|
||||
private final Integer code;
|
||||
private final String comment;
|
||||
|
||||
BillType(Integer code, String comment) {
|
||||
this.code = code;
|
||||
this.comment = comment;
|
||||
}
|
||||
}
|
@@ -0,0 +1,21 @@
|
||||
package com.atguigu.ssyx.enums;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.EnumValue;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum CouponRangeType {
|
||||
ALL(1, "通用"),
|
||||
SKU(2, "SKU"),
|
||||
CATEGORY(3, "分类");
|
||||
|
||||
@EnumValue
|
||||
private Integer code;
|
||||
private String comment;
|
||||
|
||||
CouponRangeType(Integer code, String comment) {
|
||||
this.code = code;
|
||||
this.comment = comment;
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,19 @@
|
||||
package com.atguigu.ssyx.enums;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.EnumValue;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum CouponStatus {
|
||||
NOT_USED(1, "未使用"),
|
||||
USED(2, "已使用");
|
||||
|
||||
@EnumValue
|
||||
private Integer code;
|
||||
private String comment;
|
||||
|
||||
CouponStatus(Integer code, String comment) {
|
||||
this.code = code;
|
||||
this.comment = comment;
|
||||
}
|
||||
}
|
@@ -0,0 +1,19 @@
|
||||
package com.atguigu.ssyx.enums;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.EnumValue;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum CouponType {
|
||||
FULL_REDUCTION(1, "满减"),
|
||||
CASH(2, "现金卷");
|
||||
|
||||
@EnumValue
|
||||
private Integer code;
|
||||
private String comment;
|
||||
|
||||
CouponType(Integer code, String comment) {
|
||||
this.code = code;
|
||||
this.comment = comment;
|
||||
}
|
||||
}
|
@@ -0,0 +1,24 @@
|
||||
package com.atguigu.ssyx.enums;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.EnumValue;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum OrderStatus {
|
||||
//订单状态【0->待付款;1->待发货;2->待团长收货;3->待用户收货,已完成;-1->已取消】
|
||||
UNPAID(0, "待支付"),
|
||||
WAITING_DELEVER(1, "待发货"),
|
||||
WAITING_TAKE(2, "待提货"),
|
||||
WAITING_COMMON(3, "待评论"),
|
||||
FINISHED(4, "已完结"),
|
||||
CANCEL(-1, "已取消");
|
||||
|
||||
@EnumValue
|
||||
private Integer code;
|
||||
private String comment;
|
||||
|
||||
OrderStatus(Integer code, String comment) {
|
||||
this.code = code;
|
||||
this.comment = comment;
|
||||
}
|
||||
}
|
@@ -0,0 +1,21 @@
|
||||
package com.atguigu.ssyx.enums;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.EnumValue;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum PaymentStatus {
|
||||
UNPAID(1, "支付中"),
|
||||
PAID(2, "已支付");
|
||||
//REFUND(-1,"已退款");
|
||||
|
||||
@EnumValue
|
||||
private Integer code;
|
||||
private String comment;
|
||||
|
||||
PaymentStatus(Integer code, String comment) {
|
||||
this.code = code;
|
||||
this.comment = comment;
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,20 @@
|
||||
package com.atguigu.ssyx.enums;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.EnumValue;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum PaymentType {
|
||||
ALIPAY(1, "支付宝"),
|
||||
WEIXIN(2, "微信");
|
||||
|
||||
@EnumValue
|
||||
private Integer code;
|
||||
private String comment;
|
||||
|
||||
PaymentType(Integer code, String comment) {
|
||||
this.code = code;
|
||||
this.comment = comment;
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,26 @@
|
||||
package com.atguigu.ssyx.enums;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.EnumValue;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum ProcessStatus {
|
||||
UNPAID(1, OrderStatus.UNPAID),
|
||||
WAITING_DELEVER(2, OrderStatus.WAITING_DELEVER),
|
||||
WAITING_LEADER_TAKE(3, OrderStatus.WAITING_TAKE),
|
||||
WAITING_USER_TAKE(4, OrderStatus.WAITING_TAKE),
|
||||
WAITING_COMMON(5, OrderStatus.WAITING_COMMON),
|
||||
FINISHED(6, OrderStatus.FINISHED),
|
||||
CANCEL(-1, OrderStatus.CANCEL),
|
||||
PAY_FAIL(-2, OrderStatus.UNPAID);
|
||||
|
||||
@EnumValue
|
||||
private Integer code;
|
||||
private OrderStatus orderStatus;
|
||||
|
||||
ProcessStatus(Integer code, OrderStatus orderStatus) {
|
||||
this.code = code;
|
||||
this.orderStatus = orderStatus;
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,19 @@
|
||||
package com.atguigu.ssyx.enums;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.EnumValue;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum SkuType {
|
||||
COMMON(0, "普通"),
|
||||
SECKILL(1, "秒杀");
|
||||
|
||||
@EnumValue
|
||||
private Integer code;
|
||||
private String comment;
|
||||
|
||||
SkuType(Integer code, String comment) {
|
||||
this.code = code;
|
||||
this.comment = comment;
|
||||
}
|
||||
}
|
@@ -0,0 +1,23 @@
|
||||
package com.atguigu.ssyx.enums;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONType;
|
||||
import com.alibaba.fastjson.parser.deserializer.EnumDeserializer;
|
||||
import com.alibaba.fastjson.serializer.EnumSerializer;
|
||||
import com.baomidou.mybatisplus.annotation.EnumValue;
|
||||
import lombok.Getter;
|
||||
|
||||
@JSONType(serializer = EnumSerializer.class, deserializer = EnumDeserializer.class, serializeEnumAsJavaBean = true)
|
||||
@Getter
|
||||
public enum UserType {
|
||||
USER(0, "会员"),
|
||||
LEADER(1, "团长");
|
||||
|
||||
@EnumValue
|
||||
private Integer code;
|
||||
private String comment;
|
||||
|
||||
UserType(Integer code, String comment) {
|
||||
this.code = code;
|
||||
this.comment = comment;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user