/** * @description 解析代码输入输出 基本无异常出现 */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** 项目Id */ projectId: number; } export const init = undefined; export async function request(params = {}, bodyParams = {}) { return Request({ url: '/api/smc/project/{projectId}/nodes/parseCode', params: bodyParams, method: 'post', }); } export function createFetchAction(types, stateKey) { return (params = {}, bodyParams, meta?: any) => { return { types, meta, stateKey, method: 'POST', url: getUrl( '/api/smc/project/{projectId}/nodes/parseCode', params, 'POST', ), params: bodyParams, init, }; }; }