/** * @description [公共]获取节点类型的列表 * 该接口返回所有的节点类型不会报错! */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** projectId */ projectId?: number; } export const init = undefined; export async function request(params = {}) { return Request({ url: '/api/smc/project/{projectId}/nodeTypeList', params, method: 'get', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'GET', url: getUrl('/api/smc/project/{projectId}/nodeTypeList', params, 'GET'), params, init, }; }; }