提交 1fb13733 authored 作者: sin's avatar sin

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

上级 c76f148c
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;
}
}
package cn.iocoder.mall.order.api.constants;
package cn.iocoder.mall.order.api.constant;
/**
* 订单 - status
......@@ -8,27 +8,20 @@ package cn.iocoder.mall.order.api.constants;
*/
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;
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;
......
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;
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论