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' }) }