api
This commit is contained in:
@@ -169,6 +169,10 @@ public enum ErrorCodeEnum {
|
||||
|
||||
FOOD_BUSINESS_LICENSE_PARSE_FAIL(109007, "食营证照解析失败", null),
|
||||
|
||||
|
||||
STORE_NUM_NOT_FOUND(109008, "未找到门店编码", null),
|
||||
|
||||
|
||||
INSERT_OPENING_OPERATION_PLAN_AUDIT_FALSE(103001,"插入运营方案审核信息失败",null),
|
||||
INSERT_OPENING_OPERATION_PLAN_FALSE(103002,"插入运营方案失败",null),
|
||||
SHOP_ID_IS_NULL(103003,"验参shopId失败,为空",null),
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.cool.store.enums;
|
||||
|
||||
/**
|
||||
* 营业执照类型 0.个体工商户 1.有限责任公司 2.独资企业 3.自然人经营
|
||||
*/
|
||||
public enum LicenseTypeEnum {
|
||||
ZERO(0, "个体工商户"),
|
||||
ONE(1,"有限责任公司"),
|
||||
TWO(2,"独资企业"),
|
||||
THREE(3,"自然人经营");
|
||||
|
||||
private Integer code;
|
||||
|
||||
private String message;
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
LicenseTypeEnum(Integer code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public static LicenseTypeEnum match(Integer code) {
|
||||
for (LicenseTypeEnum type : LicenseTypeEnum.values()) {
|
||||
if (type.getCode().equals(code)) {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user