/** * @description 移动UDF(目录) */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** sourceUdfId */ sourceUdfId: string; /** destUdfId */ destUdfId: string; /** projectId */ projectId: number; } export const init = undefined; export async function request(params = {}) { return Request({ url: '/api/function/move/{sourceUdfId}/to/{destUdfId}', params, method: 'put', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'PUT', url: getUrl( '/api/function/move/{sourceUdfId}/to/{destUdfId}', params, 'PUT', ), params, init, }; }; }