13个文件已删除
22个文件已添加
17个文件已修改
New file |
| | |
| | | package com.ruoyi.common.core.enums; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum ArticleStatusEnum { |
| | | |
| | | /*状态 1=待审核 2=已通过 3=已拒绝 4被举报*/ |
| | | |
| | | TO_BE_REVIEWED(1, "待审核"), |
| | | PASSED(2, "已通过"), |
| | | REJECTED(3, "已拒绝"), |
| | | REPORTED(4, "被举报"); |
| | | |
| | | @EnumValue |
| | | private final int code; |
| | | @JsonValue |
| | | private final String desc; |
| | | |
| | | |
| | | /** |
| | | * 通过code获取枚举 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static ArticleStatusEnum fromCode(Integer code) { |
| | | ArticleStatusEnum[] resultTypes = ArticleStatusEnum.values(); |
| | | for (ArticleStatusEnum resultType : resultTypes) { |
| | | if (code.equals(resultType.getCode())) { |
| | | return resultType; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.common.core.enums; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum ArticleTypeEnum { |
| | | PLATFORM_RELEASE(1, "平台发布"), |
| | | USER_POSTING(2, "用户发布"); |
| | | @JsonValue |
| | | private final Integer code; |
| | | @EnumValue |
| | | private final String desc; |
| | | |
| | | public static ArticleTypeEnum getEnumByCode(Integer code) { |
| | | for (ArticleTypeEnum e : ArticleTypeEnum.values()) { |
| | | if (e.code.equals(code)) { |
| | | return e; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ruoyi.common.core.enums; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum AuctionStartStatusEnum { |
| | | |
| | | /*开始状态 0=预展中 1=拍卖中 2=已结束*/ |
| | | |
| | | IN_PREVIEW(0, "预展中"), |
| | | IN_AUCTION(1, "拍卖中"), |
| | | ENDED(1, "已结束"); |
| | | @EnumValue |
| | | private final int code; |
| | | @JsonValue |
| | | private final String desc; |
| | | |
| | | |
| | | /** |
| | | * 通过code获取枚举 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static AuctionStartStatusEnum fromCode(Integer code) { |
| | | AuctionStartStatusEnum[] resultTypes = AuctionStartStatusEnum.values(); |
| | | for (AuctionStartStatusEnum resultType : resultTypes) { |
| | | if (code.equals(resultType.getCode())) { |
| | | return resultType; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.common.core.enums; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum AuctionTypeEnum { |
| | | |
| | | /* 拍卖类型 0=线下拍卖 1=线上线下结合*/ |
| | | |
| | | OFFLINE(0, "线下拍卖"), |
| | | COMBINING_ONLINE_AND_OFFLINE(1, "线上线下结合"); |
| | | @EnumValue |
| | | private final int code; |
| | | @JsonValue |
| | | private final String desc; |
| | | |
| | | |
| | | /** |
| | | * 通过code获取枚举 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static AuctionTypeEnum fromCode(Integer code) { |
| | | AuctionTypeEnum[] resultTypes = AuctionTypeEnum.values(); |
| | | for (AuctionTypeEnum resultType : resultTypes) { |
| | | if (code.equals(resultType.getCode())) { |
| | | return resultType; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.common.core.enums; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum AuditStatusEnum { |
| | | |
| | | /*审核状态 1待审批 2已通过 3已拒绝*/ |
| | | |
| | | TO_BE_REVIEWED(1, "待审核"), |
| | | PASSED(2, "已通过"), |
| | | REJECTED(3, "已拒绝"); |
| | | @EnumValue |
| | | private final int code; |
| | | @JsonValue |
| | | private final String desc; |
| | | |
| | | |
| | | /** |
| | | * 通过code获取枚举 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static AuditStatusEnum fromCode(Integer code) { |
| | | AuditStatusEnum[] resultTypes = AuditStatusEnum.values(); |
| | | for (AuditStatusEnum resultType : resultTypes) { |
| | | if (code.equals(resultType.getCode())) { |
| | | return resultType; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.common.core.enums; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum AuthenticationEnum { |
| | | |
| | | /*实名认证 0=不需实名 1=需要实名*/ |
| | | |
| | | NO_REAL_NAME_REQUIRED(0, "不需实名"), |
| | | REAL_NAME_REQUIRED(1, "需要实名"); |
| | | @EnumValue |
| | | private final int code; |
| | | @JsonValue |
| | | private final String desc; |
| | | |
| | | |
| | | /** |
| | | * 通过code获取枚举 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static AuthenticationEnum fromCode(Integer code) { |
| | | AuthenticationEnum[] resultTypes = AuthenticationEnum.values(); |
| | | for (AuthenticationEnum resultType : resultTypes) { |
| | | if (code.equals(resultType.getCode())) { |
| | | return resultType; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.common.core.enums; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum BannerTypeEnum { |
| | | |
| | | /* 轮播图类型 1=商城首页 2=资讯首页*/ |
| | | MALL_HOMEPAGE(1, "已领取"), |
| | | INFORMATION_HOMEPAGE(2, "资讯首页"); |
| | | @EnumValue |
| | | private final int code; |
| | | @JsonValue |
| | | private final String desc; |
| | | |
| | | |
| | | /** |
| | | * 通过code获取枚举 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static BannerTypeEnum fromCode(Integer code) { |
| | | BannerTypeEnum[] resultTypes = BannerTypeEnum.values(); |
| | | for (BannerTypeEnum resultType : resultTypes) { |
| | | if (code.equals(resultType.getCode())) { |
| | | return resultType; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.common.core.enums; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum BidStatusEnum { |
| | | |
| | | /*抬头类型 1=企业单位 2=个人/非企业单位*/ |
| | | |
| | | ELIMINATE(0, "淘汰"), |
| | | LEAD(1, "领先"); |
| | | @EnumValue |
| | | private final int code; |
| | | @JsonValue |
| | | private final String desc; |
| | | |
| | | |
| | | /** |
| | | * 通过code获取枚举 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static BidStatusEnum fromCode(Integer code) { |
| | | BidStatusEnum[] resultTypes = BidStatusEnum.values(); |
| | | for (BidStatusEnum resultType : resultTypes) { |
| | | if (code.equals(resultType.getCode())) { |
| | | return resultType; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.common.core.enums; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum CollectionTypeEnum { |
| | | |
| | | /*收藏类型1=商城商品 2=资讯文章 3=普通拍品*/ |
| | | |
| | | MALL_PRODUCTS(1, "商城商品"), |
| | | INFORMATION_ARTICLES(2, "资讯文章"), |
| | | REGULAR_ITEMS(3, "普通拍品"); |
| | | |
| | | @EnumValue |
| | | private final int code; |
| | | @JsonValue |
| | | private final String desc; |
| | | |
| | | |
| | | /** |
| | | * 通过code获取枚举 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static CollectionTypeEnum fromCode(Integer code) { |
| | | CollectionTypeEnum[] resultTypes = CollectionTypeEnum.values(); |
| | | for (CollectionTypeEnum resultType : resultTypes) { |
| | | if (code.equals(resultType.getCode())) { |
| | | return resultType; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.common.core.enums; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum CouponStatusEnum { |
| | | |
| | | /* 优惠券状态 -1删除 0已过期 1已领取 2已使用*/ |
| | | DELETED(-1, "删除"), |
| | | EXPIRED(0, "已过期 "), |
| | | RECEIVED(1, "已领取"), |
| | | USED(2, "已使用"); |
| | | @EnumValue |
| | | private final int code; |
| | | @JsonValue |
| | | private final String desc; |
| | | |
| | | |
| | | /** |
| | | * 通过code获取枚举 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static CouponStatusEnum fromCode(Integer code) { |
| | | CouponStatusEnum[] resultTypes = CouponStatusEnum.values(); |
| | | for (CouponStatusEnum resultType : resultTypes) { |
| | | if (code.equals(resultType.getCode())) { |
| | | return resultType; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.common.core.enums; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum CouponTypeEnum { |
| | | |
| | | /* 优惠券类型 1=满减券 2=代金券 3=折扣券*/ |
| | | |
| | | FULL_REDUCTION_COUPON(1, "满减券"), |
| | | CASH_COUPON(2, "代金券"), |
| | | COUPON(3, "折扣券"); |
| | | @EnumValue |
| | | private final int code; |
| | | @JsonValue |
| | | private final String desc; |
| | | |
| | | |
| | | /** |
| | | * 通过code获取枚举 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static CouponTypeEnum fromCode(Integer code) { |
| | | CouponTypeEnum[] resultTypes = CouponTypeEnum.values(); |
| | | for (CouponTypeEnum resultType : resultTypes) { |
| | | if (code.equals(resultType.getCode())) { |
| | | return resultType; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.common.core.enums; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum GenderEnum { |
| | | |
| | | /* 性别 0=女,1=男,2=未知*/ |
| | | |
| | | FEMALE(0, "女"), |
| | | MALE(1, "男"), |
| | | UNKNOWN(2, "未知"); |
| | | @EnumValue |
| | | private final int code; |
| | | @JsonValue |
| | | private final String desc; |
| | | |
| | | |
| | | /** |
| | | * 通过code获取枚举 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static GenderEnum fromCode(Integer code) { |
| | | GenderEnum[] resultTypes = GenderEnum.values(); |
| | | for (GenderEnum resultType : resultTypes) { |
| | | if (code.equals(resultType.getCode())) { |
| | | return resultType; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.common.core.enums; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum GroupStatusEnum { |
| | | |
| | | /* 成团状态 0=待成团 1=已成团 2=成团失败*/ |
| | | |
| | | TO_FORM_A_GROUP(0, "待成团"), |
| | | FORMED_INTO_A_GROUP(1, "已成团"), |
| | | GROUP_FAILURE(2, "成团失败"); |
| | | @EnumValue |
| | | private final int code; |
| | | @JsonValue |
| | | private final String desc; |
| | | |
| | | |
| | | /** |
| | | * 通过code获取枚举 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static GroupStatusEnum fromCode(Integer code) { |
| | | GroupStatusEnum[] resultTypes = GroupStatusEnum.values(); |
| | | for (GroupStatusEnum resultType : resultTypes) { |
| | | if (code.equals(resultType.getCode())) { |
| | | return resultType; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.common.core.enums; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum InvoiceTypeEnum { |
| | | |
| | | /*发票类型 1=普票 2=专票*/ |
| | | |
| | | UNIVERSAL_TICKET(1, "普票"), |
| | | SPECIAL_TICKET(2, "专票"); |
| | | @EnumValue |
| | | private final int code; |
| | | @JsonValue |
| | | private final String desc; |
| | | |
| | | |
| | | /** |
| | | * 通过code获取枚举 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static InvoiceTypeEnum fromCode(Integer code) { |
| | | InvoiceTypeEnum[] resultTypes = InvoiceTypeEnum.values(); |
| | | for (InvoiceTypeEnum resultType : resultTypes) { |
| | | if (code.equals(resultType.getCode())) { |
| | | return resultType; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.common.core.enums; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum ListingStatusEnum { |
| | | |
| | | /*上架状态 0=上架中 1=已下架*/ |
| | | |
| | | ON_SHELVES(0, "上架中"), |
| | | REMOVED_FROM_THE_SHELF(1, "已下架"); |
| | | @EnumValue |
| | | private final int code; |
| | | @JsonValue |
| | | private final String desc; |
| | | |
| | | |
| | | /** |
| | | * 通过code获取枚举 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static ListingStatusEnum fromCode(Integer code) { |
| | | ListingStatusEnum[] resultTypes = ListingStatusEnum.values(); |
| | | for (ListingStatusEnum resultType : resultTypes) { |
| | | if (code.equals(resultType.getCode())) { |
| | | return resultType; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.common.core.enums; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum OrderFromEnum { |
| | | |
| | | /* 订单来源 1=商品订单 2=秒杀订单 3=团购订单 4=保证金 5=拍卖订单*/ |
| | | |
| | | COMMODITY_ORDER(1, "商品订单"), |
| | | SNAP_ORDERS(2, "秒杀订单"), |
| | | GROUP_PURCHASE_ORDERS(3, "团购订单"), |
| | | BOND(4, "保证金"), |
| | | AUCTION_ORDERS(5, "拍卖订单"); |
| | | @EnumValue |
| | | private final int code; |
| | | @JsonValue |
| | | private final String desc; |
| | | |
| | | |
| | | /** |
| | | * 通过code获取枚举 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static OrderFromEnum fromCode(Integer code) { |
| | | OrderFromEnum[] resultTypes = OrderFromEnum.values(); |
| | | for (OrderFromEnum resultType : resultTypes) { |
| | | if (code.equals(resultType.getCode())) { |
| | | return resultType; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.common.core.enums; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum OrderStatusEnum { |
| | | |
| | | /*订单状态 1=待发货 2=待收货 3=已完成 4=已取消*/ |
| | | |
| | | TO_BE_SHIPPED(1, "待发货"), |
| | | GOODS_TO_BE_RECEIVED(2, "待收货"), |
| | | FINISHED(3, "已完成"), |
| | | CANCELED(4, "已取消"); |
| | | |
| | | @EnumValue |
| | | private final int code; |
| | | @JsonValue |
| | | private final String desc; |
| | | |
| | | |
| | | /** |
| | | * 通过code获取枚举 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static OrderStatusEnum fromCode(Integer code) { |
| | | OrderStatusEnum[] resultTypes = OrderStatusEnum.values(); |
| | | for (OrderStatusEnum resultType : resultTypes) { |
| | | if (code.equals(resultType.getCode())) { |
| | | return resultType; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.common.core.enums; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum PaymentMethodEnum { |
| | | |
| | | /* 支付方式 1=微信 2=支付宝*/ |
| | | |
| | | WECHAT(1, "男"), |
| | | ALIPAY(2, "未知"); |
| | | @EnumValue |
| | | private final int code; |
| | | @JsonValue |
| | | private final String desc; |
| | | |
| | | |
| | | /** |
| | | * 通过code获取枚举 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static PaymentMethodEnum fromCode(Integer code) { |
| | | PaymentMethodEnum[] resultTypes = PaymentMethodEnum.values(); |
| | | for (PaymentMethodEnum resultType : resultTypes) { |
| | | if (code.equals(resultType.getCode())) { |
| | | return resultType; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.common.core.enums; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum RequestTypeEnum { |
| | | |
| | | /*售后类型 1=退款 2=退款退货*/ |
| | | |
| | | REFUND(1, "退款"), |
| | | REFUNDS_AND_RETURNS(2, "退款退货"); |
| | | @EnumValue |
| | | private final int code; |
| | | @JsonValue |
| | | private final String desc; |
| | | |
| | | |
| | | /** |
| | | * 通过code获取枚举 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static RequestTypeEnum fromCode(Integer code) { |
| | | RequestTypeEnum[] resultTypes = RequestTypeEnum.values(); |
| | | for (RequestTypeEnum resultType : resultTypes) { |
| | | if (code.equals(resultType.getCode())) { |
| | | return resultType; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.common.core.enums; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum ReturnRequestStatusEnum { |
| | | |
| | | /*售后状态 1=待审核 2=待退货 3=待平台收货 4=已完成 5=已拒绝*/ |
| | | |
| | | TO_BE_REVIEWED(1, "待审核"), |
| | | TO_BE_RETURNED(2, "待退货"), |
| | | TO_BE_RECEIVED_BY_THE_PLATFORM(3, "待平台收货"), |
| | | COMPLETED(4, "已完成"), |
| | | REJECTED(5, "已拒绝"); |
| | | @EnumValue |
| | | private final int code; |
| | | @JsonValue |
| | | private final String desc; |
| | | |
| | | |
| | | /** |
| | | * 通过code获取枚举 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static ReturnRequestStatusEnum fromCode(Integer code) { |
| | | ReturnRequestStatusEnum[] resultTypes = ReturnRequestStatusEnum.values(); |
| | | for (ReturnRequestStatusEnum resultType : resultTypes) { |
| | | if (code.equals(resultType.getCode())) { |
| | | return resultType; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.common.core.enums; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum StartStatusEnum { |
| | | |
| | | /*开始状态 0=未开始 1=已开始 2=已结束*/ |
| | | |
| | | NOT_STARTED(0, "未开始"), |
| | | STARTED(1, "已开始"), |
| | | ENDED(1, "已结束"); |
| | | @EnumValue |
| | | private final int code; |
| | | @JsonValue |
| | | private final String desc; |
| | | |
| | | |
| | | /** |
| | | * 通过code获取枚举 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static StartStatusEnum fromCode(Integer code) { |
| | | StartStatusEnum[] resultTypes = StartStatusEnum.values(); |
| | | for (StartStatusEnum resultType : resultTypes) { |
| | | if (code.equals(resultType.getCode())) { |
| | | return resultType; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ruoyi.common.core.enums; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum TitleTypeEnum { |
| | | |
| | | /*抬头类型 1=企业单位 2=个人/非企业单位*/ |
| | | |
| | | ENTERPRISE_UNIT(1, "企业单位"), |
| | | NON_ENTERPRISE_UNITS(2, "个人/非企业单位"); |
| | | @EnumValue |
| | | private final int code; |
| | | @JsonValue |
| | | private final String desc; |
| | | |
| | | |
| | | /** |
| | | * 通过code获取枚举 |
| | | * |
| | | * @param code |
| | | * @return |
| | | */ |
| | | public static TitleTypeEnum fromCode(Integer code) { |
| | | TitleTypeEnum[] resultTypes = TitleTypeEnum.values(); |
| | | for (TitleTypeEnum resultType : resultTypes) { |
| | | if (code.equals(resultType.getCode())) { |
| | | return resultType; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ruoyi.common.core.enums.ArticleTypeEnum; |
| | | import com.ruoyi.common.core.enums.AuditStatusEnum; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.io.Serializable; |
| | |
| | | private Long id; |
| | | |
| | | @ApiModelProperty(value = "资讯类型 1=平台发布 2=用户发布") |
| | | private Integer articleType; |
| | | private ArticleTypeEnum articleType; |
| | | |
| | | @ApiModelProperty(value = "资讯标题") |
| | | private String title; |
| | |
| | | @ApiModelProperty(value = "资讯视频") |
| | | private String videoUrl; |
| | | |
| | | @ApiModelProperty(value = "状态 1=待审核 2=已通过 3=已拒绝") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "举报状态 0=正常 1=被举报") |
| | | private Integer reportStatus; |
| | | @ApiModelProperty(value = "状态 1=待审核 2=已通过 3=已拒绝 4被举报") |
| | | private AuditStatusEnum status; |
| | | |
| | | @ApiModelProperty(value = "举报用户") |
| | | private String reportBy; |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ruoyi.common.core.enums.BidStatusEnum; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.io.Serializable; |
| | |
| | | private BigDecimal lastBidAmount; |
| | | |
| | | @ApiModelProperty(value = "开始状态 0=淘汰 1=领先") |
| | | private Integer status; |
| | | private BidStatusEnum status; |
| | | |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField(value = "create_by", fill = FieldFill.INSERT) |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ruoyi.common.core.enums.AuctionStartStatusEnum; |
| | | import com.ruoyi.common.core.enums.AuthenticationEnum; |
| | | import com.ruoyi.common.core.enums.ListingStatusEnum; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.io.Serializable; |
| | |
| | | private BigDecimal bond; |
| | | |
| | | @ApiModelProperty(value = "实名认证 0=不需实名 1=需要实名") |
| | | private Integer authentication; |
| | | private AuthenticationEnum authentication; |
| | | |
| | | @ApiModelProperty(value = "拍品说明") |
| | | private String description; |
| | | |
| | | @ApiModelProperty(value = "上架状态 0=上架中 1=已下架") |
| | | private Integer listingStatus; |
| | | private ListingStatusEnum listingStatus; |
| | | |
| | | @ApiModelProperty(value = "开始状态 0=预展中 1=拍卖中 2=已结束") |
| | | private Integer startStatus; |
| | | private AuctionStartStatusEnum startStatus; |
| | | |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField(value = "create_by", fill = FieldFill.INSERT) |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ruoyi.common.core.enums.AuctionStartStatusEnum; |
| | | import com.ruoyi.common.core.enums.AuctionTypeEnum; |
| | | import com.ruoyi.common.core.enums.AuthenticationEnum; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.io.Serializable; |
| | |
| | | private LocalDateTime startTime; |
| | | |
| | | @ApiModelProperty(value = "拍卖时间 0=线下拍卖 1=线上线下结合") |
| | | private Integer type; |
| | | private AuctionTypeEnum type; |
| | | |
| | | @ApiModelProperty(value = "保证金") |
| | | private BigDecimal bound; |
| | | |
| | | @ApiModelProperty(value = "实名认证 0=不需认证 1=需要实名") |
| | | private Integer authentication; |
| | | private AuthenticationEnum authentication; |
| | | |
| | | @ApiModelProperty(value = "拍卖场说明") |
| | | private String description; |
| | |
| | | private String sharePic; |
| | | |
| | | @ApiModelProperty(value = "拍卖状态 0=预展中 1=拍卖中 2=已结束") |
| | | private Integer status; |
| | | private AuctionStartStatusEnum status; |
| | | |
| | | @ApiModelProperty(value = "拍卖场二维码") |
| | | private String auctionSalesroomQrcode; |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ruoyi.common.core.enums.AuctionStartStatusEnum; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.io.Serializable; |
| | |
| | | private Boolean backupStatus; |
| | | |
| | | @ApiModelProperty(value = "状态 0=预展中 1=拍卖中 2=已结束") |
| | | private Integer status; |
| | | private AuctionStartStatusEnum status; |
| | | |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField(value = "create_by", fill = FieldFill.INSERT) |
| | |
| | | package com.ruoyi.auction.domain.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import java.io.Serializable; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value = "拍卖会视频id") |
| | | @TableId(value = "id", type = IdType.ID_WORKER) |
| | | @TableId(value = "id", type = IdType.ASSIGN_ID) |
| | | private Long id; |
| | | |
| | | @ApiModelProperty(value = "视频id") |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ruoyi.common.core.enums.GroupStatusEnum; |
| | | import com.ruoyi.common.core.enums.ListingStatusEnum; |
| | | import com.ruoyi.common.core.enums.StartStatusEnum; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.io.Serializable; |
| | |
| | | |
| | | @ApiModelProperty(value = "开始状态 0=未开始 1=已开始 2=已结束 ") |
| | | @TableField("start_status") |
| | | private Integer startStatus; |
| | | private StartStatusEnum startStatus; |
| | | |
| | | @ApiModelProperty(value = "上架状态 0=已上架 1=已下架") |
| | | @TableField("listing_status") |
| | | private Integer listingStatus; |
| | | private ListingStatusEnum listingStatus; |
| | | |
| | | @ApiModelProperty(value = "成团状态 0=待成团 1=已成团 2=成团失败") |
| | | @TableField("group_status") |
| | | private Integer groupStatus; |
| | | private GroupStatusEnum groupStatus; |
| | | |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField(value = "create_by", fill = FieldFill.INSERT) |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ruoyi.common.core.enums.ListingStatusEnum; |
| | | import com.ruoyi.common.core.enums.StartStatusEnum; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.io.Serializable; |
| | |
| | | private LocalDateTime endTime; |
| | | |
| | | @ApiModelProperty(value = "开始状态 0=未开始 1= 已开始 2=已结束") |
| | | private Integer startStatus; |
| | | private StartStatusEnum startStatus; |
| | | |
| | | @ApiModelProperty(value = "上架状态 0=已上架 1=已下架") |
| | | private Integer listingStatus; |
| | | private ListingStatusEnum listingStatus; |
| | | |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField(value = "create_by", fill = FieldFill.INSERT) |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ruoyi.common.core.enums.ListingStatusEnum; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.io.Serializable; |
| | |
| | | private Integer sortNum; |
| | | |
| | | @ApiModelProperty(value = "上架状态 0=上架中 1= 已下架") |
| | | private Integer listingStatus; |
| | | private ListingStatusEnum listingStatus; |
| | | |
| | | @ApiModelProperty(value = "创建者") |
| | | @TableField(value = "create_by", fill = FieldFill.INSERT) |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ruoyi.common.core.enums.GenderEnum; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.io.Serializable; |
| | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value = "会员id") |
| | | @TableId(value = "id", type = IdType.INPUT) |
| | | @TableId(value = "id", type = IdType.ASSIGN_ID) |
| | | private Long id; |
| | | |
| | | @ApiModelProperty(value = "会员昵称") |
| | |
| | | private String phone; |
| | | |
| | | @ApiModelProperty(value = "性别 0=女,1=男,2=未知") |
| | | private Integer gender; |
| | | private GenderEnum gender; |
| | | |
| | | @ApiModelProperty(value = "等级") |
| | | private Integer level; |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ruoyi.common.core.enums.CollectionTypeEnum; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.io.Serializable; |
| | |
| | | private Long id; |
| | | |
| | | @ApiModelProperty(value = "收藏类型1=商城商品 2=资讯文章 3=普通拍品") |
| | | private Integer collectionType; |
| | | private CollectionTypeEnum collectionType; |
| | | |
| | | @ApiModelProperty(value = "收藏目标id") |
| | | private Long targetId; |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ruoyi.common.core.enums.AuditStatusEnum; |
| | | import com.ruoyi.common.core.enums.InvoiceTypeEnum; |
| | | import com.ruoyi.common.core.enums.TitleTypeEnum; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.io.Serializable; |
| | |
| | | private LocalDateTime applyTime; |
| | | |
| | | @ApiModelProperty(value = "状态 1=待审核 2=审核通过 3=已拒绝") |
| | | private Integer status; |
| | | private AuditStatusEnum status; |
| | | |
| | | @ApiModelProperty(value = "发票类型 1=普票 2=专票") |
| | | private Integer invoiceType; |
| | | private InvoiceTypeEnum invoiceType; |
| | | |
| | | @ApiModelProperty(value = "抬头类型 1=企业单位 2=个人/非企业单位") |
| | | private Integer titleType; |
| | | private TitleTypeEnum titleType; |
| | | |
| | | @ApiModelProperty(value = "公司名称") |
| | | private String companyName; |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ruoyi.common.core.enums.OrderFromEnum; |
| | | import com.ruoyi.common.core.enums.OrderStatusEnum; |
| | | import com.ruoyi.common.core.enums.PaymentMethodEnum; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.io.Serializable; |
| | |
| | | private LocalDateTime orderTime; |
| | | |
| | | @ApiModelProperty(value = "订单来源 1=商品订单 2=秒杀订单 3=团购订单 4=保证金 5=拍卖订单") |
| | | private Integer orderFrom; |
| | | private OrderFromEnum orderFrom; |
| | | |
| | | @ApiModelProperty(value = "会员id") |
| | | private Long memberId; |
| | |
| | | private String phoneNumber; |
| | | |
| | | @ApiModelProperty(value = "支付方式 1=微信 2=支付宝") |
| | | private Integer paymentMethod; |
| | | private PaymentMethodEnum paymentMethod; |
| | | |
| | | @ApiModelProperty(value = "支付合计") |
| | | private BigDecimal totalAmount; |
| | | |
| | | @ApiModelProperty(value = "订单状态 1=待发货 2=待收货 3=已完成 4=已取消") |
| | | private Integer orderStatus; |
| | | private OrderStatusEnum orderStatus; |
| | | |
| | | @ApiModelProperty(value = "支付时间") |
| | | private LocalDateTime payTime; |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ruoyi.common.core.enums.AuditStatusEnum; |
| | | import com.ruoyi.common.core.enums.RequestTypeEnum; |
| | | import com.ruoyi.common.core.enums.ReturnRequestStatusEnum; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.io.Serializable; |
| | |
| | | private LocalDateTime requestTime; |
| | | |
| | | @ApiModelProperty(value = "售后类型 1=退款 2=退款退货") |
| | | private Integer requestType; |
| | | private RequestTypeEnum requestType; |
| | | |
| | | @ApiModelProperty(value = "申请原因") |
| | | private String requestReason; |
| | | |
| | | @ApiModelProperty(value = "售后状态 1=待审核 2=待退货 3=待平台收货 4=已完成 5=已拒绝") |
| | | private Integer status; |
| | | private ReturnRequestStatusEnum status; |
| | | |
| | | @ApiModelProperty(value = "审核状态 1=待审核 2=已通过 3=已拒绝") |
| | | private Integer auditStatus; |
| | | private AuditStatusEnum auditStatus; |
| | | |
| | | @ApiModelProperty(value = "拒绝理由") |
| | | private String refuseReason; |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ruoyi.common.core.enums.CouponTypeEnum; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.io.Serializable; |
| | |
| | | private String couponName; |
| | | |
| | | @ApiModelProperty(value = "优惠券类型 1=满减券 2=代金券 3=折扣券") |
| | | private Integer couponType; |
| | | private CouponTypeEnum couponType; |
| | | |
| | | @ApiModelProperty(value = "状态 0=已上架 1=已下架") |
| | | private Integer couponStatus; |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ruoyi.common.core.enums.CouponTypeEnum; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.io.Serializable; |
| | |
| | | private Long memberId; |
| | | |
| | | @ApiModelProperty(value = "优惠券类型 1=满减券 2=代金券 3=折扣券") |
| | | private Integer couponType; |
| | | private CouponTypeEnum couponType; |
| | | |
| | | @ApiModelProperty(value = "优惠券状态-1删除0已过期1已领取2已使用") |
| | | private Integer couponStatus; |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ruoyi.common.core.enums.BannerTypeEnum; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import java.io.Serializable; |
| | |
| | | private String bannerName; |
| | | |
| | | @ApiModelProperty(value = "轮播图类型 1=商城首页 2=资讯首页") |
| | | private Integer bannerType; |
| | | private BannerTypeEnum bannerType; |
| | | |
| | | @ApiModelProperty(value = "图片") |
| | | private String picUrl; |