| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- // @ts-ignore
- /* eslint-disable */
- import request from '@repo/api-client'
- /** 获取当前用户信息 状态 0: 已创建 1: 运行中 2: 成功 3: 失败 4: 挂起 POST /api/account/curUserInfo */
- export async function postAccountCurUserInfo(body: {}, options?: { [key: string]: any }) {
- return request<{
- isSuccess: boolean
- code: number
- result: {
- account: string
- cellPhone: string
- employeeNumber: string
- enterpriseName: string
- id: string
- isLoginToB: boolean
- isOut: number
- isSuperAdmin: boolean
- langName: string
- language: string
- name: string
- }
- isAuthorized: boolean
- }>('/api/account/curUserInfo', {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/json'
- },
- data: body,
- ...(options || {})
- })
- }
- /** 查询异步任务状态 状态 0: 已创建 1: 运行中 2: 成功 3: 失败 4: 挂起 POST /api/bpm/getAsynTaskInfo */
- export async function postBpmGetAsynTaskInfo(
- body: {
- id: string
- },
- options?: { [key: string]: any }
- ) {
- return request<{
- isSuccess: boolean
- code: number
- result: {
- appPageCode: string
- argsInput: { args: { name?: string; value?: string }[] }
- code: string
- creationTime: string
- creatorUserId: string
- downFileId: string
- entityId: string
- fileId: string
- htmlStatusInfo: string
- id: string
- isDeleted: boolean
- nodeId: string
- params: string
- progress: string
- status: number
- taskId: string
- type: number
- updateTime: string
- }
- isAuthorized: boolean
- }>('/api/bpm/getAsynTaskInfo', {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/json'
- },
- data: body,
- ...(options || {})
- })
- }
- /** 获取左边菜单列表 状态 0: 已创建 1: 运行中 2: 成功 3: 失败 4: 挂起 POST /api/menu/leftMenuList */
- export async function postMenuLeftMenuList(
- body: {
- menuCode: string
- },
- options?: { [key: string]: any }
- ) {
- return request<{
- isSuccess: boolean
- code: number
- result: {
- bindLink: boolean
- code: string
- deleted: boolean
- dynamicMenuLink: string
- enableApply: boolean
- enableMobile: boolean
- fullName: string
- fullPath: string
- iconColor: string
- id: string
- isBindLink: boolean
- isDeleted: boolean
- isFavourite: boolean
- isManuallyCreate: boolean
- langName: string
- languageCulture: string
- link: string
- linkId: string
- linkType: number
- linkWorkflowId: string
- manuallyCreate: boolean
- menuDepth: number
- menuIndex: number
- menuType: number
- name: string
- openType: number
- parentId: string
- subMenuList: {
- bindLink: boolean
- code: string
- deleted: boolean
- dynamicMenuLink: string
- enableApply: boolean
- enableMobile: boolean
- fullName: string
- fullPath: string
- iconColor: string
- id: string
- isBindLink: boolean
- isDeleted: boolean
- isFavourite: boolean
- isManuallyCreate: boolean
- langName: string
- languageCulture: string
- link: string
- linkId: string
- linkType: number
- linkWorkflowId: string
- manuallyCreate: boolean
- menuDepth: number
- menuIndex: number
- menuType: number
- name: string
- openType: number
- parentId: string
- subMenuList: string[]
- target: string
- targetName: string
- ts: { value: string }
- }[]
- target: string
- targetName: string
- ts: { value: string }
- }
- isAuthorized: boolean
- }>('/api/menu/leftMenuList', {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/json'
- },
- data: body,
- ...(options || {})
- })
- }
- /** 根据菜单编号,获取用户已授权的菜单按钮列表 状态 0: 已创建 1: 运行中 2: 成功 3: 失败 4: 挂起 POST /api/menubutton/authorised_list */
- export async function postMenubuttonAuthorisedList(
- body: {
- menuCode: string
- },
- options?: { [key: string]: any }
- ) {
- return request<{
- isSuccess: boolean
- code: number
- result: { code: string; id: string; name: string }[]
- isAuthorized: boolean
- }>('/api/menubutton/authorised_list', {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/json'
- },
- data: body,
- ...(options || {})
- })
- }
|