/** * @description 事实逻辑表-编辑 */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** 项目id */ projectId: number; /** modelId */ modelId: number; /** 业务板块id */ bizUnitId?: number; /** lock */ lock: number; } export const init = undefined; export async function request(params = {}, bodyParams = {}) { return Request({ url: '/api/model/factTable/{modelId}', params: bodyParams, method: 'put', }); } export function createFetchAction(types, stateKey) { return (params = {}, bodyParams, meta?: any) => { return { types, meta, stateKey, method: 'PUT', url: getUrl('/api/model/factTable/{modelId}', params, 'PUT'), params: bodyParams, init, }; }; }