/** * @description 设置数据倾斜相关配置 */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params {} export const init = undefined; export async function request(params = {}, bodyParams = {}) { return Request({ url: '/api/tenant/computeEngine/config/dataSkewConfig', params: bodyParams, method: 'post', }); } export function createFetchAction(types, stateKey) { return (params = {}, bodyParams, meta?: any) => { return { types, meta, stateKey, method: 'POST', url: getUrl( '/api/tenant/computeEngine/config/dataSkewConfig', params, 'POST', ), params: bodyParams, init, }; }; }