Browse Source

精简部分代码

OPGame 6 years ago
parent
commit
fe9078fb22

+ 0 - 55
yami-shop-bean/src/main/java/com/yami/shop/bean/enums/CouponProdType.java

@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
- *
- * https://www.gz-yami.com/
- *
- * 未经允许,不可做商业用途!
- *
- * 版权所有,侵权必究!
- */
-
-package com.yami.shop.bean.enums;
-
-
-/**
- * 优惠券适用商品类型
- * @author LGH
- */
-public enum  CouponProdType {
-
-    /**
-     * 0全部商品参与
-     */
-    ALL(0),
-
-    /**
-     * 1指定商品参与
-     */
-    PROD_IN(1),
-
-    /**
-     * 2指定商品不参与
-     */
-    PROD_NO_IN(2)
-    ;
-
-    private Integer num;
-
-    public Integer value() {
-        return num;
-    }
-
-    CouponProdType(Integer num){
-        this.num = num;
-    }
-
-    public static CouponProdType instance(Integer value) {
-        CouponProdType[] enums = values();
-        for (CouponProdType statusEnum : enums) {
-            if (statusEnum.value().equals(value)) {
-                return statusEnum;
-            }
-        }
-        return null;
-    }
-}

+ 0 - 55
yami-shop-bean/src/main/java/com/yami/shop/bean/enums/CouponType.java

@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
- *
- * https://www.gz-yami.com/
- *
- * 未经允许,不可做商业用途!
- *
- * 版权所有,侵权必究!
- */
-
-package com.yami.shop.bean.enums;
-
-
-/**
- * 优惠券类型 1:代金券 2:折扣券 3:兑换券
- * @author LGH
- */
-public enum CouponType {
-
-    /**
-     * 代金券
-     */
-    C2M(1),
-
-    /**
-     * 折扣券
-     */
-    C2D(2),
-
-    /**
-     * 兑换券
-     */
-    C2P(3)
-    ;
-
-    private Integer num;
-
-    public Integer value() {
-        return num;
-    }
-
-    CouponType(Integer num){
-        this.num = num;
-    }
-
-    public static CouponType instance(Integer value) {
-        CouponType[] enums = values();
-        for (CouponType statusEnum : enums) {
-            if (statusEnum.value().equals(value)) {
-                return statusEnum;
-            }
-        }
-        return null;
-    }
-}

+ 0 - 60
yami-shop-bean/src/main/java/com/yami/shop/bean/enums/DiscountRule.java

@@ -1,60 +0,0 @@
-/*
- * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
- *
- * https://www.gz-yami.com/
- *
- * 未经允许,不可做商业用途!
- *
- * 版权所有,侵权必究!
- */
-
-package com.yami.shop.bean.enums;
-
-/**
- * 满减规则
- *
- */
-public enum DiscountRule {
-
-	/**
-	 * 满钱减钱
-	 * M money
-	 */
-	M2M(0),
-	/**
-	 * 满件减钱
-	 * P piece
-	 */
-	P2M(1),
-	/**
-	 * 满钱打折
-	 * Discount
-	 */
-	M2D(2),
-	/**
-	 * 满件打折
-	 * Discount
-	 */
-	P2D(3)
-	;
-	
-	private Integer num;
-	
-	public Integer value() {
-		return num;
-	}
-	
-	DiscountRule(Integer num){
-		this.num = num;
-	}
-	
-	public static DiscountRule instance(Integer value) {
-		DiscountRule[] enums = values();
-		for (DiscountRule statusEnum : enums) {
-			if (statusEnum.value().equals(value)) {
-				return statusEnum;
-			}
-		}
-		return null;
-	}
-}

+ 0 - 50
yami-shop-bean/src/main/java/com/yami/shop/bean/enums/DiscountType.java

@@ -1,50 +0,0 @@
-/*
- * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
- *
- * https://www.gz-yami.com/
- *
- * 未经允许,不可做商业用途!
- *
- * 版权所有,侵权必究!
- */
-
-package com.yami.shop.bean.enums;
-
-/**
- * 满减规则
- *
- */
-public enum DiscountType {
-
-	/**
-	 * 按满足最高层级减一次
-	 * M money
-	 */
-	MAX(0),
-	
-	/**
-	 * 每满一次减一次
-	 */
-	TRIGGER(1)
-	;
-	
-	private Integer num;
-	
-	public Integer value() {
-		return num;
-	}
-	
-	DiscountType(Integer num){
-		this.num = num;
-	}
-	
-	public static DiscountType instance(Integer value) {
-		DiscountType[] enums = values();
-		for (DiscountType statusEnum : enums) {
-			if (statusEnum.value().equals(value)) {
-				return statusEnum;
-			}
-		}
-		return null;
-	}
-}

+ 0 - 21
yami-shop-bean/src/main/java/com/yami/shop/bean/enums/DistributionUserLinkContent.java

@@ -1,21 +0,0 @@
-/*
- * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
- *
- * https://www.gz-yami.com/
- *
- * 未经允许,不可做商业用途!
- *
- * 版权所有,侵权必究!
- */
-
-package com.yami.shop.bean.enums;
-
-/**
- * 邀请码内容
- */
-public enum DistributionUserLinkContent {
-
-
-
-}
-

+ 0 - 92
yami-shop-bean/src/main/java/com/yami/shop/bean/param/GroupProdParam.java

@@ -1,92 +0,0 @@
-/*
- * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
- *
- * https://www.gz-yami.com/
- *
- * 未经允许,不可做商业用途!
- *
- * 版权所有,侵权必究!
- */
-
-package com.yami.shop.bean.param;
-
-public class GroupProdParam {
-    /**
-     * 商品名称
-     */
-    private String prodName;
-
-    /**
-     * 商品最小金额区间
-     */
-    private Double minMoney;
-
-
-    /**
-     * 商品最大金额区间
-     */
-    private Double maxMoney;
-
-    /**
-     * 商品分类Id
-     */
-    private Long categoryId;
-
-    /**
-     * 活动group_activity_id
-     */
-    private Long groupActivityId;
-
-    /**
-     * 商品店铺Id
-     */
-    private Long shopId;
-
-    public String getProdName() {
-        return prodName;
-    }
-
-    public void setProdName(String prodName) {
-        this.prodName = prodName;
-    }
-
-    public Double getMinMoney() {
-        return minMoney;
-    }
-
-    public void setMinMoney(Double minMoney) {
-        this.minMoney = minMoney;
-    }
-
-    public Double getMaxMoney() {
-        return maxMoney;
-    }
-
-    public void setMaxMoney(Double maxMoney) {
-        this.maxMoney = maxMoney;
-    }
-
-    public Long getCategoryId() {
-        return categoryId;
-    }
-
-    public void setCategoryId(Long categoryId) {
-        this.categoryId = categoryId;
-    }
-
-    public Long getShopId() {
-        return shopId;
-    }
-
-    public void setShopId(Long shopId) {
-        this.shopId = shopId;
-    }
-
-    public Long getGroupActivityId() {
-        return groupActivityId;
-    }
-
-    public void setGroupActivityId(Long groupActivityId) {
-        this.groupActivityId = groupActivityId;
-    }
-}