package cn.autoform.web.client.conster;
|
|
import javax.servlet.http.Cookie;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import cn.autoform.bean.system.TableRule;
|
import cn.autoform.bean.system.UserInfo;
|
import cn.autoform.util.thread.Keys;
|
|
public interface BaseConst {
|
|
String PROJECT_CHARSET = "UTF-8";
|
|
/**
|
* 租户id
|
*/
|
Keys<String> TENANT_ID = Keys.getKeys("tenantId", String.class);
|
|
Keys<String> AUTO_MATED = Keys.getKeys("automated", String.class);
|
|
|
|
/**
|
* 租户名
|
*/
|
Keys<String> TENANT_NAME = Keys.getKeys("tenantName", String.class);
|
|
Keys<String> COMPANY_NAME = Keys.getKeys("companyName", String.class);
|
|
Keys<String> SERVER_NAME = Keys.getKeys("serverName", String.class);
|
|
Keys<String> OPEN_ID = Keys.getKeys("openId",String.class);
|
|
Keys<String> USER_ID = Keys.getKeys("userId",String.class);
|
|
Keys<String> APP_KEY = Keys.getKeys("appKey",String.class);
|
|
|
Keys<String> ACCESS_ID = Keys.getKeys("accessId",String.class);
|
|
Keys<String> SECURITY_KEY = Keys.getKeys("securityKey",String.class);
|
|
/**
|
* 租户id
|
*/
|
Keys<String> DIRECTORY_NAME = Keys.getKeys("directoryName", String.class);
|
|
/**
|
* 业务系统id
|
*/
|
Keys<Integer> SERVICE_ID = Keys.getKeys("serviceId", Integer.class);
|
|
Keys<String> RULE_APP_KEY = Keys.getKeys("ruleAppKey", String.class);
|
|
Keys<String> RULE_SECURITY_KEY = Keys.getKeys("ruleSecurityKey", String.class);
|
|
|
/**
|
* 用户信息
|
*/
|
Keys<UserInfo> USER_INFO = Keys.getKeys("userInfo", UserInfo.class);
|
|
//Keys<TableRule> TABLE_RULE = Keys.getKeys("tableRule", TableRule.class);
|
/**
|
* 公司id
|
*/
|
Keys<Integer> COMPANY_ID = Keys.getKeys("companyId", Integer.class);
|
|
/**
|
* token
|
*/
|
Keys<String> TOKEN = Keys.getKeys("token", String.class);
|
|
|
default boolean isEmpty(Cookie cookie){
|
return cookie == null || StringUtils.isBlank(cookie.getValue());
|
}
|
//非多租户默认租户公司id
|
public final static Integer MULTI_TENANT=-1;
|
public final static String WORK_FLOW_PANT_TYPES="workFlowParticipantTypes";
|
|
public final static String ALL_PANT="allParticipant";
|
|
public final static String ALL_PANT_USER="allParticipantUser";
|
|
String C0000 = "00000";
|
|
String C0001 = "00001";
|
|
String C0002 = "00002";
|
|
String C0003 = "00003";
|
|
String C0004 = "00004";
|
|
String C0005 = "00005";
|
|
String C0006 = "00006";
|
|
String C0007 = "00007";
|
|
String C0008 = "00008";
|
|
String C0009 = "00009";
|
|
String C0010 = "00010";
|
|
String C0011 = "00011";
|
|
String C0012 = "00012";
|
|
String C0013 = "00013";
|
|
String C0014 = "00014";
|
|
String C0015 = "00015";
|
|
String C0016 = "00016";
|
|
String C0017 = "00017";
|
|
String C0018 = "00018";
|
|
/**
|
* 登录验证失效
|
*/
|
String N0001 = "N0001";
|
|
/**
|
* 接口调用失败
|
*/
|
String N0002 = "N0002";
|
|
/**
|
* 登录验证失效
|
*/
|
String U0001 = "U0001";
|
|
|
|
/**
|
* token篡改
|
*/
|
String U0002 = "U0002";
|
|
|
|
}
|