/** * @description 删除汇总逻辑表 * @throws Exception code* 无 * @p1-test * 无 * @p2-test * 删除的汇总逻辑表需要检测依赖 */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** 汇总逻辑表ID */ summaryTableId?: number; /** projectId */ projectId: number; /** 删除备注 */ deleteComment: string; /** 汇总逻辑表名 */ name: string; /** lock */ lock: number; } export const init = undefined; export async function request(params = {}) { return Request({ url: '/api/model/sumTable/{summaryTableId}', params, method: 'delete', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'DELETE', url: getUrl('/api/model/sumTable/{summaryTableId}', params, 'DELETE'), params, init, }; }; }