/** * @description 强制保存逻辑表的调度配置, 不检测调度配置直接保存 */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** 逻辑表模型id */ modelId: number; /** 项目Id */ projectId: number; /** 逻辑表类型:TableTypeEnum */ tableType: number; } export const init = undefined; export async function request(params = {}, bodyParams = {}) { return Request({ url: '/api/model/table/{modelId}/scheduleConfig/force', params: bodyParams, method: 'post', }); } export function createFetchAction(types, stateKey) { return (params = {}, bodyParams, meta?: any) => { return { types, meta, stateKey, method: 'POST', url: getUrl( '/api/model/table/{modelId}/scheduleConfig/force', params, 'POST', ), params: bodyParams, init, }; }; }