/** * @description 新建汇总逻辑表 * @throws Exception code* SUMMARY_TABLE_BIZ_UNIT_EMPTY:业务板块为空 * SUMMARY_TABLE_GRANULARITY_DUPLICATED:(id为空的时候)粒度已存在 * SUMMARY_TABLE_INDEX_NAME_DUPLICATED:(id不为空的时候)汇总逻辑表的指标名重复 * @p1-test * 无 * @p2-test * SUMMARY_TABLE_CATALOG_DUPLICATED:配置一个业务板块下已存在的分类名* SUMMARY_TABLE_GRANULARITY_DUPLICATED:(id为空的时候)新建一个Dimension相同(粒度)已存在的汇总逻辑表 * SUMMARY_TABLE_INDEX_NAME_DUPLICATED:(id不为空的时候)新增的物理指标的名字重复(和Dimension或者派生指标或者物理指标名重复) */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** 项目Id */ projectId: number; } export const init = undefined; export async function request(params = {}, bodyParams = {}) { return Request({ url: '/api/model/sumTable', params: bodyParams, method: 'post', }); } export function createFetchAction(types, stateKey) { return (params = {}, bodyParams, meta?: any) => { return { types, meta, stateKey, method: 'POST', url: getUrl('/api/model/sumTable', params, 'POST'), params: bodyParams, init, }; }; }