constants.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. /**
  2. * Created by 芋道源码
  3. *
  4. * 枚举类
  5. */
  6. /**
  7. * 全局通用状态枚举
  8. */
  9. export const SysCommonStatusEnum = {
  10. ENABLE: 0, // 开启
  11. DISABLE: 1 // 禁用
  12. }
  13. /**
  14. * 菜单的类型枚举
  15. */
  16. export const SysMenuTypeEnum = {
  17. DIR: 1, // 目录
  18. MENU: 2, // 菜单
  19. BUTTON: 3 // 按钮
  20. }
  21. /**
  22. * 角色的类型枚举
  23. */
  24. export const SysRoleTypeEnum = {
  25. SYSTEM: 1, // 内置角色
  26. CUSTOM: 2 // 自定义角色
  27. }
  28. /**
  29. * 数据权限的范围枚举
  30. */
  31. export const SysDataScopeEnum = {
  32. ALL: 1, // 全部数据权限
  33. DEPT_CUSTOM: 2, // 指定部门数据权限
  34. DEPT_ONLY: 3, // 部门数据权限
  35. DEPT_AND_CHILD: 4, // 部门及以下数据权限
  36. DEPT_SELF: 5 // 仅本人数据权限
  37. }
  38. /**
  39. * 代码生成模板类型
  40. */
  41. export const ToolCodegenTemplateTypeEnum = {
  42. CRUD: 1, // 基础 CRUD
  43. TREE: 2, // 树形 CRUD
  44. SUB: 3, // 主子表 CRUD
  45. }
  46. /**
  47. * 任务状态的枚举
  48. */
  49. export const InfJobStatusEnum = {
  50. INIT: 0, // 初始化中
  51. NORMAL: 1, // 运行中
  52. STOP: 2, // 暂停运行
  53. }
  54. /**
  55. * API 异常数据的处理状态
  56. */
  57. export const InfApiErrorLogProcessStatusEnum = {
  58. INIT: 0, // 未处理
  59. DONE: 1, // 已处理
  60. IGNORE: 2, // 已忽略
  61. }
  62. /**
  63. * 用户的社交平台的类型枚举
  64. */
  65. export const SysUserSocialTypeEnum = {
  66. // GITEE: {
  67. // title: "码云",
  68. // type: 10,
  69. // source: "gitee",
  70. // img: "https://cdn.jsdelivr.net/gh/justauth/justauth-oauth-logo@1.11/gitee.png",
  71. // },
  72. DINGTALK: {
  73. title: "钉钉",
  74. type: 20,
  75. source: "dingtalk",
  76. img: "https://cdn.jsdelivr.net/gh/justauth/justauth-oauth-logo@1.11/dingtalk.png",
  77. },
  78. WECHAT_ENTERPRISE: {
  79. title: "企业微信",
  80. type: 30,
  81. source: "wechat_enterprise",
  82. img: "https://cdn.jsdelivr.net/gh/justauth/justauth-oauth-logo@1.11/wechat_enterprise.png",
  83. }
  84. }
  85. export const PayChannelEnum = {
  86. WX_PUB: {
  87. "code": "wx_pub",
  88. "name": "微信 JSAPI 支付",
  89. },
  90. WX_LITE: {
  91. "code": "wx_lite",
  92. "name": "微信小程序支付"
  93. },
  94. WX_APP: {
  95. "code": "wx_app",
  96. "name": "微信 APP 支付"
  97. },
  98. ALIPAY_PC: {
  99. "code": "alipay_pc",
  100. "name": "支付宝 PC 网站支付"
  101. },
  102. ALIPAY_WAP: {
  103. "code": "alipay_wap",
  104. "name": "支付宝 WAP 网站支付"
  105. },
  106. ALIPAY_APP: {
  107. "code": "alipay_app",
  108. "name": "支付宝 APP 支付"
  109. },
  110. ALIPAY_QR: {
  111. "code": "alipay_qr",
  112. "name": "支付宝扫码支付"
  113. },
  114. }
  115. export const PayType = {
  116. WECHAT: "WECHAT",
  117. ALIPAY: "ALIPAY"
  118. }