haoxuan
2023-11-03 6b027c18660b828ec7b57ad0e3f4ffca9f4d14d1
src/api/index.ts
@@ -3,6 +3,7 @@
import type { PLCResponse } from './plc'
import type { Devices } from './device'
import type { CraftModel } from './craftModel'
import type { Problem } from './problem'
export interface BaseResponse<T = any> {
  code: number
@@ -141,3 +142,13 @@
    data: params
  })
}
/**
 * 获取问题诊断问题列表
 */
export function apiGetProblemList() {
  return request<BaseResponse<Problem[]>>({
    url: '/v1/system/problemList',
    method: 'get'
  })
}