/** * @description 输入原子指标,获取衍生出该原子指标的所有原生原子指标的统计路径和业务限定 */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** atomicIndexId */ atomicIndexId: number; /** projectId */ projectId?: number; } export const init = []; export async function request(params = {}) { return Request({ url: '/api/index/derived/parent/{atomicIndexId}/detail', params, method: 'get', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'GET', url: getUrl( '/api/index/derived/parent/{atomicIndexId}/detail', params, 'GET', ), params, init, }; }; }