/** * @description 初始化租户,为帐号创建DAG */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** 租户id */ tenantId: number; /** 项目id */ projectId: number; } export const init = undefined; export async function request(params = {}) { return Request({ url: '/api/smc/project/nodes/dag', params, method: 'post', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'POST', url: getUrl('/api/smc/project/nodes/dag', params, 'POST'), params, init, }; }; }