0b3f5ac245b76d0e788ef2c780012622c8c29bdd.svn-base 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. package org.jeecg.common.constant;
  2. public interface CommonConstant {
  3. /**
  4. * 正常状态
  5. */
  6. public static final Integer STATUS_NORMAL = 0;
  7. /**
  8. * 禁用状态
  9. */
  10. public static final Integer STATUS_DISABLE = -1;
  11. /**
  12. * 删除标志
  13. */
  14. public static final Integer DEL_FLAG_1 = 1;
  15. /**
  16. * 未删除
  17. */
  18. public static final Integer DEL_FLAG_0 = 0;
  19. /**
  20. * 系统日志类型: 登录
  21. */
  22. public static final int LOG_TYPE_1 = 1;
  23. /**
  24. * 系统日志类型: 操作
  25. */
  26. public static final int LOG_TYPE_2 = 2;
  27. /**
  28. * 操作日志类型: 查询
  29. */
  30. public static final int OPERATE_TYPE_1 = 1;
  31. /**
  32. * 操作日志类型: 添加
  33. */
  34. public static final int OPERATE_TYPE_2 = 2;
  35. /**
  36. * 操作日志类型: 更新
  37. */
  38. public static final int OPERATE_TYPE_3 = 3;
  39. /**
  40. * 操作日志类型: 删除
  41. */
  42. public static final int OPERATE_TYPE_4 = 4;
  43. /**
  44. * 操作日志类型: 倒入
  45. */
  46. public static final int OPERATE_TYPE_5 = 5;
  47. /**
  48. * 操作日志类型: 导出
  49. */
  50. public static final int OPERATE_TYPE_6 = 6;
  51. /** {@code 500 Server Error} (HTTP/1.0 - RFC 1945) */
  52. public static final Integer SC_INTERNAL_SERVER_ERROR_500 = 500;
  53. /** {@code 200 OK} (HTTP/1.0 - RFC 1945) */
  54. public static final Integer SC_OK_200 = 200;
  55. /**访问权限认证未通过 510*/
  56. public static final Integer SC_JEECG_NO_AUTHZ=510;
  57. /** 登录用户Shiro权限缓存KEY前缀 */
  58. public static String PREFIX_USER_SHIRO_CACHE = "shiro:cache:org.jeecg.config.shiro.ShiroRealm.authorizationCache:";
  59. /** 登录用户Token令牌缓存KEY前缀 */
  60. public static final String PREFIX_USER_TOKEN = "prefix_user_token_";
  61. /** Token缓存时间:3600秒即一小时 */
  62. public static final int TOKEN_EXPIRE_TIME = 3600;
  63. /**
  64. * 0:一级菜单
  65. */
  66. public static final Integer MENU_TYPE_0 = 0;
  67. /**
  68. * 1:子菜单
  69. */
  70. public static final Integer MENU_TYPE_1 = 1;
  71. /**
  72. * 2:按钮权限
  73. */
  74. public static final Integer MENU_TYPE_2 = 2;
  75. /**通告对象类型(USER:指定用户,ALL:全体用户)*/
  76. public static final String MSG_TYPE_UESR = "USER";
  77. public static final String MSG_TYPE_ALL = "ALL";
  78. /**发布状态(0未发布,1已发布,2已撤销)*/
  79. public static final String NO_SEND = "0";
  80. public static final String HAS_SEND = "1";
  81. public static final String HAS_CANCLE = "2";
  82. /**阅读状态(0未读,1已读)*/
  83. public static final String HAS_READ_FLAG = "1";
  84. public static final String NO_READ_FLAG = "0";
  85. /**优先级(L低,M中,H高)*/
  86. public static final String PRIORITY_L = "L";
  87. public static final String PRIORITY_M = "M";
  88. public static final String PRIORITY_H = "H";
  89. /**
  90. * 短信模板方式 0 .登录模板、1.注册模板、2.忘记密码模板
  91. */
  92. public static final String SMS_TPL_TYPE_0 = "0";
  93. public static final String SMS_TPL_TYPE_1 = "1";
  94. public static final String SMS_TPL_TYPE_2 = "2";
  95. /**
  96. * 状态(0无效1有效)
  97. */
  98. public static final String STATUS_0 = "0";
  99. public static final String STATUS_1 = "1";
  100. /**
  101. * 同步工作流引擎1同步0不同步
  102. */
  103. public static final Integer ACT_SYNC_1 = 1;
  104. public static final Integer ACT_SYNC_0 = 0;
  105. /**
  106. * 消息类型1:通知公告2:系统消息
  107. */
  108. public static final String MSG_CATEGORY_1 = "1";
  109. public static final String MSG_CATEGORY_2 = "2";
  110. /**
  111. * 是否配置菜单的数据权限 1是0否
  112. */
  113. public static final Integer RULE_FLAG_0 = 0;
  114. public static final Integer RULE_FLAG_1 = 1;
  115. /**
  116. * 是否用户已被冻结 1正常(解冻) 2冻结
  117. */
  118. public static final Integer USER_UNFREEZE = 1;
  119. public static final Integer USER_FREEZE = 2;
  120. /**字典翻译文本后缀*/
  121. public static final String DICT_TEXT_SUFFIX = "_dictText";
  122. /**
  123. * 表单设计器主表类型
  124. */
  125. public static final Integer DESIGN_FORM_TYPE_MAIN = 1;
  126. /**
  127. * 表单设计器子表表类型
  128. */
  129. public static final Integer DESIGN_FORM_TYPE_SUB = 2;
  130. /**
  131. * 表单设计器URL授权通过
  132. */
  133. public static final Integer DESIGN_FORM_URL_STATUS_PASSED = 1;
  134. /**
  135. * 表单设计器URL授权未通过
  136. */
  137. public static final Integer DESIGN_FORM_URL_STATUS_NOT_PASSED = 2;
  138. /**
  139. * 表单设计器新增 Flag
  140. */
  141. public static final String DESIGN_FORM_URL_TYPE_ADD = "add";
  142. /**
  143. * 表单设计器修改 Flag
  144. */
  145. public static final String DESIGN_FORM_URL_TYPE_EDIT = "edit";
  146. /**
  147. * 表单设计器详情 Flag
  148. */
  149. public static final String DESIGN_FORM_URL_TYPE_DETAIL = "detail";
  150. /**
  151. * 表单设计器复用数据 Flag
  152. */
  153. public static final String DESIGN_FORM_URL_TYPE_REUSE = "reuse";
  154. /**
  155. * 表单设计器编辑 Flag (已弃用)
  156. */
  157. public static final String DESIGN_FORM_URL_TYPE_VIEW = "view";
  158. /**
  159. * online参数值设置(是:Y, 否:N)
  160. */
  161. public static final String ONLINE_PARAM_VAL_IS_TURE = "Y";
  162. public static final String ONLINE_PARAM_VAL_IS_FALSE = "N";
  163. /**
  164. * 文件上传类型(本地:local,Minio:minio,阿里云:alioss)
  165. */
  166. public static final String UPLOAD_TYPE_LOCAL = "local";
  167. public static final String UPLOAD_TYPE_MINIO = "minio";
  168. public static final String UPLOAD_TYPE_OSS = "alioss";
  169. /**
  170. * 文档上传自定义桶名称
  171. */
  172. public static final String UPLOAD_CUSTOM_BUCKET = "eoafile";
  173. /**
  174. * 文档上传自定义路径
  175. */
  176. public static final String UPLOAD_CUSTOM_PATH = "eoafile";
  177. /**
  178. * 文件外链接有效天数
  179. */
  180. public static final Integer UPLOAD_EFFECTIVE_DAYS = 1;
  181. /**
  182. * 员工身份 (1:普通员工 2:上级)
  183. */
  184. public static final Integer USER_IDENTITY_1 = 1;
  185. public static final Integer USER_IDENTITY_2 = 2;
  186. /** sys_user 表 username 唯一键索引 */
  187. public static final String SQL_INDEX_UNIQ_SYS_USER_USERNAME = "uniq_sys_user_username";
  188. /** sys_user 表 work_no 唯一键索引 */
  189. public static final String SQL_INDEX_UNIQ_SYS_USER_WORK_NO = "uniq_sys_user_work_no";
  190. /** sys_user 表 phone 唯一键索引 */
  191. public static final String SQL_INDEX_UNIQ_SYS_USER_PHONE = "uniq_sys_user_phone";
  192. /** sys_user 表 email 唯一键索引 */
  193. public static final String SQL_INDEX_UNIQ_SYS_USER_EMAIL = "uniq_sys_user_email";
  194. /** sys_quartz_job 表 job_class_name 唯一键索引 */
  195. public static final String SQL_INDEX_UNIQ_JOB_CLASS_NAME = "uniq_job_class_name";
  196. /** sys_position 表 code 唯一键索引 */
  197. public static final String SQL_INDEX_UNIQ_CODE = "uniq_code";
  198. /** sys_role 表 code 唯一键索引 */
  199. public static final String SQL_INDEX_UNIQ_SYS_ROLE_CODE = "uniq_sys_role_role_code";
  200. /** sys_depart 表 code 唯一键索引 */
  201. public static final String SQL_INDEX_UNIQ_DEPART_ORG_CODE = "uniq_depart_org_code";
  202. /**
  203. * 在线聊天 是否为默认分组
  204. */
  205. public static final String IM_DEFAULT_GROUP = "1";
  206. /**
  207. * 在线聊天 图片文件保存路径
  208. */
  209. public static final String IM_UPLOAD_CUSTOM_PATH = "imfile";
  210. /**
  211. * 在线聊天 用户状态
  212. */
  213. public static final String IM_STATUS_ONLINE = "online";
  214. /**
  215. * 在线聊天 SOCKET消息类型
  216. */
  217. public static final String IM_SOCKET_TYPE = "chatMessage";
  218. /**
  219. * 在线聊天 是否开启默认添加好友 1是 0否
  220. */
  221. public static final String IM_DEFAULT_ADD_FRIEND = "1";
  222. /**
  223. * 在线聊天 用户好友缓存前缀
  224. */
  225. public static final String IM_PREFIX_USER_FRIEND_CACHE = "sys:cache:im:im_prefix_user_friend_";
  226. /**
  227. * 考勤补卡业务状态 (1:同意 2:不同意)
  228. */
  229. public static final String SIGN_PATCH_BIZ_STATUS_1 = "1";
  230. public static final String SIGN_PATCH_BIZ_STATUS_2 = "2";
  231. /**
  232. * 公文文档上传自定义路径
  233. */
  234. public static final String UPLOAD_CUSTOM_PATH_OFFICIAL = "officialdoc";
  235. /**
  236. * 公文文档下载自定义路径
  237. */
  238. public static final String DOWNLOAD_CUSTOM_PATH_OFFICIAL = "officaldown";
  239. /**
  240. * WPS存储值类别(1 code文号 2 text(WPS模板还是公文发文模板))
  241. */
  242. public static final String WPS_TYPE_1="1";
  243. public static final String WPS_TYPE_2="2";
  244. public final static String X_ACCESS_TOKEN = "X-Access-Token";
  245. public final static String X_SIGN = "X-Sign";
  246. public final static String X_TIMESTAMP = "X-TIMESTAMP";
  247. /**
  248. * 多租户 请求头
  249. */
  250. public final static String TENANT_ID = "tenant-id";
  251. /**
  252. * 微服务读取配置文件属性 服务地址
  253. */
  254. public final static String CLOUD_SERVER_KEY = "spring.cloud.nacos.discovery.server-addr";
  255. /**
  256. * 第三方登录 验证密码/创建用户 都需要设置一个操作码 防止被恶意调用
  257. */
  258. public final static String THIRD_LOGIN_CODE = "third_login_code";
  259. /**
  260. * 第三方APP同步方向:本地 --> 第三方APP
  261. */
  262. String THIRD_SYNC_TO_APP = "SYNC_TO_APP";
  263. /**
  264. * 第三方APP同步方向:第三方APP --> 本地
  265. */
  266. String THIRD_SYNC_TO_LOCAL = "SYNC_TO_LOCAL";
  267. /** 系统通告消息状态:0=未发布 */
  268. String ANNOUNCEMENT_SEND_STATUS_0 = "0";
  269. /** 系统通告消息状态:1=已发布 */
  270. String ANNOUNCEMENT_SEND_STATUS_1 = "1";
  271. /** 系统通告消息状态:2=已撤销 */
  272. String ANNOUNCEMENT_SEND_STATUS_2 = "2";
  273. }