feat:系统建店相关代码
refactor:鲜丰系统API回调优化
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
package com.cool.store.enums;
|
||||
|
||||
public enum AuditEnum {
|
||||
|
||||
CONTRACT_INTENTION("intention", "意向加盟合同API","IntentAgreementServiceImpl"),
|
||||
SYS_BUILD("sysBuild", "系统建店API","SysStoreAppServiceImpl"),
|
||||
|
||||
;
|
||||
|
||||
private String code;
|
||||
|
||||
private String message;
|
||||
|
||||
private String clazz;
|
||||
|
||||
AuditEnum(String code, String message, String clazz) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
this.clazz = clazz;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public String getClazz() {
|
||||
return clazz;
|
||||
}
|
||||
|
||||
public static AuditEnum getWorkflowSubStageEnum(String flag) {
|
||||
for (AuditEnum auditEnum : AuditEnum.values()) {
|
||||
if (auditEnum.getCode().equals(flag)) {
|
||||
return auditEnum;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,14 +1,20 @@
|
||||
package com.cool.store.enums;
|
||||
|
||||
/**
|
||||
* @author zhangchenbiao
|
||||
* @FileName: SmsCodeTypeEnum
|
||||
* @Description: 短信验证码类型
|
||||
* @date 2021-07-20 9:47
|
||||
*/
|
||||
|
||||
public enum SmsCodeTypeEnum {
|
||||
|
||||
LOGIN("SMS_220325070","验证码登录", 10 * 60),
|
||||
FORGOT_PWD("SMS_220325070","忘记密码", 10 * 60),
|
||||
MODIFY_PWD("SMS_220325070","修改密码", 10 * 60),
|
||||
IMPROVE_INFO("SMS_220325070","完善用户信息", 10 * 60),
|
||||
USER_REGISTER("SMS_220325070","用户注册", 10 * 60),
|
||||
ENTERPRISE_REGISTER("SMS_220325070","企业注册", 10 * 60),
|
||||
LOGIN2("SMS_232163403","验证码登录", 10 * 60),
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
;
|
||||
|
||||
private String templateCode;
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.cool.store.enums.prepare.newStore;
|
||||
|
||||
import com.cool.store.enums.ThirdRegionTypeEnum;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 社区类型
|
||||
*/
|
||||
public enum BusinessDistrictEnum {
|
||||
|
||||
COMMUNITY(10,"社区型"),
|
||||
COMMERCIAL_STREET(20,"商业街边型"),
|
||||
SCHOOL(30,"学校型"),
|
||||
CBD_OFFICE(40,"CBD/办公型"),
|
||||
HOSPITAL(60,"医院型"),
|
||||
VEGETABLE_MARKET(70,"-菜场型"),
|
||||
|
||||
|
||||
;
|
||||
|
||||
private Integer code;
|
||||
private String desc;
|
||||
|
||||
BusinessDistrictEnum(Integer code, String desc) {
|
||||
this.code = code;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(Integer code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public static final Map<Integer, BusinessDistrictEnum> map
|
||||
= Arrays.stream(values()).collect(Collectors.toMap(BusinessDistrictEnum::getCode, Function.identity()));
|
||||
|
||||
public static BusinessDistrictEnum getByCode(Integer code) {
|
||||
return map.get(code);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.cool.store.enums.prepare.newStore;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 线下竞争对手
|
||||
*/
|
||||
public enum OfflineCompetitorEnum {
|
||||
BRAND_FRUIT(10,"品牌水果店"),
|
||||
COUPLES_FRUIT(20,"夫妻水果店"),
|
||||
VEGETABLE_MARKET(30,"菜场店"),
|
||||
BIG_BUSINESS(40,"大商超"),
|
||||
FRESH_FOOD(50,"生鲜店"),
|
||||
NONE(60,"无"),
|
||||
|
||||
|
||||
;
|
||||
|
||||
private Integer code;
|
||||
private String desc;
|
||||
|
||||
OfflineCompetitorEnum(Integer code, String desc) {
|
||||
this.code = code;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(Integer code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public static final Map<Integer, OfflineCompetitorEnum> map
|
||||
= Arrays.stream(values()).collect(Collectors.toMap(OfflineCompetitorEnum::getCode, Function.identity()));
|
||||
|
||||
public static OfflineCompetitorEnum getByCode(Integer code) {
|
||||
return map.get(code);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.cool.store.enums.prepare.newStore;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public enum PassengerFlowEnum {
|
||||
BELOW_1000(0,"1000以下"),
|
||||
TO_1000_10000(1,"1000-1万"),
|
||||
MORE_THAN_10000(2,"1万以上"),
|
||||
|
||||
|
||||
|
||||
;
|
||||
|
||||
private Integer code;
|
||||
private String desc;
|
||||
|
||||
PassengerFlowEnum(Integer code, String desc) {
|
||||
this.code = code;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(Integer code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public static final Map<Integer, PassengerFlowEnum> map
|
||||
= Arrays.stream(values()).collect(Collectors.toMap(PassengerFlowEnum::getCode, Function.identity()));
|
||||
|
||||
public static PassengerFlowEnum getByCode(Integer code) {
|
||||
return map.get(code);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.cool.store.enums.prepare.newStore;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public enum StoreOperatorEnum {
|
||||
FRANCHISEE(10,"加盟商"),
|
||||
STORE_MANAGER(20,"店长"),
|
||||
|
||||
|
||||
|
||||
;
|
||||
|
||||
private Integer code;
|
||||
private String desc;
|
||||
|
||||
StoreOperatorEnum(Integer code, String desc) {
|
||||
this.code = code;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(Integer code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public static final Map<Integer, StoreOperatorEnum> map
|
||||
= Arrays.stream(values()).collect(Collectors.toMap(StoreOperatorEnum::getCode, Function.identity()));
|
||||
|
||||
public static StoreOperatorEnum getByCode(Integer code) {
|
||||
return map.get(code);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user