/** * @description 测试运行进度 -1 为 任务执行失败 */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** jobId */ jobId: string; } export const init = new defs.ExecuteLabelProgressDTO(); export async function request(params = {}) { return Request({ url: '/api/oneid/factoryLabel/executeProgress', params, method: 'get', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'GET', url: getUrl('/api/oneid/factoryLabel/executeProgress', params, 'GET'), params, init, }; }; }