refactor: 订单来源类型枚举优化

This commit is contained in:
haoxr 2022-12-24 13:24:27 +08:00
parent 3f442055b6
commit e15fea455e

View File

@ -0,0 +1,31 @@
package com.youlai.mall.oms.common.enums;
import com.youlai.common.base.IBaseEnum;
import lombok.Getter;
/**
* 订单来源类型枚举
*
* @author huawei
* @email huawei_code@163.com
* @date 2021/1/16
*/
public enum OrderSourceTypeEnum implements IBaseEnum<Integer> {
APP(1, "APP"), // APP订单
PC(2, "PC"), // PC订单
;
OrderSourceTypeEnum(Integer value, String label) {
this.value = value;
this.label = label;
}
@Getter
private Integer value;
@Getter
private String label;
}