system.ts 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. // @ts-ignore
  2. /* eslint-disable */
  3. import request from '@repo/api-client'
  4. /** 获取当前用户信息 状态 0: 已创建 1: 运行中 2: 成功 3: 失败 4: 挂起 POST /api/account/curUserInfo */
  5. export async function postAccountCurUserInfo(body: {}, options?: { [key: string]: any }) {
  6. return request<{
  7. isSuccess: boolean
  8. code: number
  9. result: {
  10. account: string
  11. cellPhone: string
  12. employeeNumber: string
  13. enterpriseName: string
  14. id: string
  15. isLoginToB: boolean
  16. isOut: number
  17. isSuperAdmin: boolean
  18. langName: string
  19. language: string
  20. name: string
  21. }
  22. isAuthorized: boolean
  23. }>('/api/account/curUserInfo', {
  24. method: 'POST',
  25. headers: {
  26. 'Content-Type': 'application/json'
  27. },
  28. data: body,
  29. ...(options || {})
  30. })
  31. }
  32. /** 查询异步任务状态 状态 0: 已创建 1: 运行中 2: 成功 3: 失败 4: 挂起 POST /api/bpm/getAsynTaskInfo */
  33. export async function postBpmGetAsynTaskInfo(
  34. body: {
  35. id: string
  36. },
  37. options?: { [key: string]: any }
  38. ) {
  39. return request<{
  40. isSuccess: boolean
  41. code: number
  42. result: {
  43. appPageCode: string
  44. argsInput: { args: { name?: string; value?: string }[] }
  45. code: string
  46. creationTime: string
  47. creatorUserId: string
  48. downFileId: string
  49. entityId: string
  50. fileId: string
  51. htmlStatusInfo: string
  52. id: string
  53. isDeleted: boolean
  54. nodeId: string
  55. params: string
  56. progress: string
  57. status: number
  58. taskId: string
  59. type: number
  60. updateTime: string
  61. }
  62. isAuthorized: boolean
  63. }>('/api/bpm/getAsynTaskInfo', {
  64. method: 'POST',
  65. headers: {
  66. 'Content-Type': 'application/json'
  67. },
  68. data: body,
  69. ...(options || {})
  70. })
  71. }
  72. /** 获取左边菜单列表 状态 0: 已创建 1: 运行中 2: 成功 3: 失败 4: 挂起 POST /api/menu/leftMenuList */
  73. export async function postMenuLeftMenuList(
  74. body: {
  75. menuCode: string
  76. },
  77. options?: { [key: string]: any }
  78. ) {
  79. return request<{
  80. isSuccess: boolean
  81. code: number
  82. result: {
  83. bindLink: boolean
  84. code: string
  85. deleted: boolean
  86. dynamicMenuLink: string
  87. enableApply: boolean
  88. enableMobile: boolean
  89. fullName: string
  90. fullPath: string
  91. iconColor: string
  92. id: string
  93. isBindLink: boolean
  94. isDeleted: boolean
  95. isFavourite: boolean
  96. isManuallyCreate: boolean
  97. langName: string
  98. languageCulture: string
  99. link: string
  100. linkId: string
  101. linkType: number
  102. linkWorkflowId: string
  103. manuallyCreate: boolean
  104. menuDepth: number
  105. menuIndex: number
  106. menuType: number
  107. name: string
  108. openType: number
  109. parentId: string
  110. subMenuList: {
  111. bindLink: boolean
  112. code: string
  113. deleted: boolean
  114. dynamicMenuLink: string
  115. enableApply: boolean
  116. enableMobile: boolean
  117. fullName: string
  118. fullPath: string
  119. iconColor: string
  120. id: string
  121. isBindLink: boolean
  122. isDeleted: boolean
  123. isFavourite: boolean
  124. isManuallyCreate: boolean
  125. langName: string
  126. languageCulture: string
  127. link: string
  128. linkId: string
  129. linkType: number
  130. linkWorkflowId: string
  131. manuallyCreate: boolean
  132. menuDepth: number
  133. menuIndex: number
  134. menuType: number
  135. name: string
  136. openType: number
  137. parentId: string
  138. subMenuList: string[]
  139. target: string
  140. targetName: string
  141. ts: { value: string }
  142. }[]
  143. target: string
  144. targetName: string
  145. ts: { value: string }
  146. }
  147. isAuthorized: boolean
  148. }>('/api/menu/leftMenuList', {
  149. method: 'POST',
  150. headers: {
  151. 'Content-Type': 'application/json'
  152. },
  153. data: body,
  154. ...(options || {})
  155. })
  156. }
  157. /** 根据菜单编号,获取用户已授权的菜单按钮列表 状态 0: 已创建 1: 运行中 2: 成功 3: 失败 4: 挂起 POST /api/menubutton/authorised_list */
  158. export async function postMenubuttonAuthorisedList(
  159. body: {
  160. menuCode: string
  161. },
  162. options?: { [key: string]: any }
  163. ) {
  164. return request<{
  165. isSuccess: boolean
  166. code: number
  167. result: { code: string; id: string; name: string }[]
  168. isAuthorized: boolean
  169. }>('/api/menubutton/authorised_list', {
  170. method: 'POST',
  171. headers: {
  172. 'Content-Type': 'application/json'
  173. },
  174. data: body,
  175. ...(options || {})
  176. })
  177. }