精简部分代码

master
OPGame 7 years ago
parent 98edb80b6f
commit fe9078fb22

@ -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;
}
}

@ -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;
}
}

@ -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;
}
}

@ -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;
}
}

@ -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 {
}

@ -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;
}
}
Loading…
Cancel
Save