constants.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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. /**
  86. * 支付渠道枚举
  87. */
  88. export const PayChannelEnum = {
  89. WX_PUB: {
  90. "code": "wx_pub",
  91. "name": "微信 JSAPI 支付",
  92. },
  93. WX_LITE: {
  94. "code": "wx_lite",
  95. "name": "微信小程序支付"
  96. },
  97. WX_APP: {
  98. "code": "wx_app",
  99. "name": "微信 APP 支付"
  100. },
  101. ALIPAY_PC: {
  102. "code": "alipay_pc",
  103. "name": "支付宝 PC 网站支付"
  104. },
  105. ALIPAY_WAP: {
  106. "code": "alipay_wap",
  107. "name": "支付宝 WAP 网站支付"
  108. },
  109. ALIPAY_APP: {
  110. "code": "alipay_app",
  111. "name": "支付宝 APP 支付"
  112. },
  113. ALIPAY_QR: {
  114. "code": "alipay_qr",
  115. "name": "支付宝扫码支付"
  116. },
  117. }
  118. /**
  119. * 支付类型枚举
  120. */
  121. export const PayType = {
  122. WECHAT: "WECHAT",
  123. ALIPAY: "ALIPAY"
  124. }
  125. /**
  126. * 支付订单状态枚举
  127. */
  128. export const payOrderStatusEnum = {
  129. WAITING: {
  130. status: 0,
  131. name: '未支付'
  132. },
  133. SUCCESS: {
  134. status: 10,
  135. name: '已支付'
  136. },
  137. CLOSED: {
  138. status: 20,
  139. name: '未支付'
  140. }
  141. }
  142. /**
  143. * 支付订单回调状态枚举
  144. */
  145. export const payOrderNotifyStatusEnum = {
  146. NO: {
  147. status: 0,
  148. name: '未通知'
  149. },
  150. SUCCESS: {
  151. status: 10,
  152. name: '通知成功'
  153. },
  154. FAILURE: {
  155. status: 20,
  156. name: '通知失败'
  157. }
  158. }
  159. /**
  160. * 支付订单退款状态枚举
  161. */
  162. export const payOrderRefundStatusEnum = {
  163. NO: {
  164. status: 0,
  165. name: '未退款'
  166. },
  167. SOME: {
  168. status: 10,
  169. name: '部分退款'
  170. },
  171. ALL: {
  172. status: 20,
  173. name: '全部退款'
  174. }
  175. }