/** * @description 测试运行标签 */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** labelId */ factoryLabelId: string; /** lock */ lock: number; } export const init = new defs.ExecutedLabelJobDTO(); export async function request(params = {}, bodyParams = {}) { return Request({ url: '/api/oneid/factoryLabel/{factoryLabelId}/execute', params: bodyParams, method: 'post', }); } export function createFetchAction(types, stateKey) { return (params = {}, bodyParams, meta?: any) => { return { types, meta, stateKey, method: 'POST', url: getUrl( '/api/oneid/factoryLabel/{factoryLabelId}/execute', params, 'POST', ), params: bodyParams, init, }; }; }