/** * @description 获取当前计算引擎支持的数据类型 */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params {} export const init = []; export async function request(params = {}) { return Request({ url: '/api/preference/computeEngine/supportedDataType', params, method: 'get', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'GET', url: getUrl( '/api/preference/computeEngine/supportedDataType', params, 'GET', ), params, init, }; }; }