constants 改为 constant 保持目录结构一致

pull/1/head
sin 2019-03-22 21:49:55 +08:00
parent c76f148c54
commit 1fb1373342
6 changed files with 77 additions and 78 deletions

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.order.api.constants;
package cn.iocoder.mall.order.api.constant;
/**
* MQ

View File

@ -0,0 +1,37 @@
package cn.iocoder.mall.order.api.constant;
/**
* - 退
*
* @author Sin
* @time 2019-03-22 21:34
*/
public enum OrderHasReturnExchangeEnum {
NO(1, "没有"),
RETURN_GOODS(2, "退货"),
EXCHANGE_GOODS(2, "换货"),
RETURN_EXCHANGE_GOODS(2, "退换货");
/**
*
*/
private Integer value;
/**
*
*/
private String name;
OrderHasReturnExchangeEnum(Integer value, String name) {
this.value = value;
this.name = name;
}
public Integer getValue() {
return value;
}
public String getName() {
return name;
}
}

View File

@ -1,4 +1,4 @@
package cn.iocoder.mall.order.api.constants;
package cn.iocoder.mall.order.api.constant;
/**
* status

View File

@ -0,0 +1,38 @@
package cn.iocoder.mall.order.api.constant;
/**
* - status
*
* @author Sin
* @time 2019-03-16 14:06
*/
public enum OrderStatusEnum {
WAITING_PAYMENT(1, "等待付款"),
WAIT_SHIPMENT(2, "等待发货"),
ALREADY_SHIPMENT(3, "已发货"),
COMPLETED(4, "已完成"),
CLOSED(5, "已关闭");
/**
*
*/
private Integer value;
/**
*
*/
private String name;
OrderStatusEnum(int value, String name) {
this.value = value;
this.name = name;
}
public int getValue() {
return value;
}
public String getName() {
return name;
}
}

View File

@ -1,31 +0,0 @@
package cn.iocoder.mall.order.api.constants;
/**
* deleteStatus
*
* @author Sin
* @time 2019-03-17 20:58
*/
public enum OrderDeleteStatusEnum {
DELETE_NO(0, "正常"),
DELETE_YES(1, "已删除")
;
private final int value;
private final String name;
OrderDeleteStatusEnum(int value, String name) {
this.value = value;
this.name = name;
}
public int getValue() {
return value;
}
public String getName() {
return name;
}
}

View File

@ -1,45 +0,0 @@
package cn.iocoder.mall.order.api.constants;
/**
* - status
*
* @author Sin
* @time 2019-03-16 14:06
*/
public enum OrderStatusEnum {
// 基本状态
WAIT_SHIPMENT(0, "等待发货"),
ALREADY_SHIPMENT(1, "已发货"),
RECEIVED_GOODS(2, "已收货"),
CONFIRM_RECEIPT_GOODS(3, "确认收货"), // 确认收货,也就是交易成功!
// 换货
APPLY_EXCHANGE_GOODS(20, "申请换货"),
EXCHANGE_GOODS(21, "换货中"),
EXCHANGE_GOODS_SUCCESSFUL(22, "换货成功"),
// 退货
APPLY_RETURN_GOODS(40, "申请退货"),
RETURN_GOODS(41, "退货中"),
RETURN_GOODS_SUCCESSFUL(42, "退货成功"),
;
private final int value;
private final String name;
OrderStatusEnum(int value, String name) {
this.value = value;
this.name = name;
}
public int getValue() {
return value;
}
public String getName() {
return name;
}
}