/** * @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; /** lock */ lock: number; /** 提交备注 */ submitComment: string; /** 事实逻辑表名 */ name: string; } export const init = undefined; export async function request(params = {}) { return Request({ url: '/api/model/factTable/{modelId}/submit', params, method: 'post', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'POST', url: getUrl('/api/model/factTable/{modelId}/submit', params, 'POST'), params, init, }; }; }