/** * @description 域下行为对象的对象属性 */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** 域ID */ domainId?: string; } export const init = []; export async function request(params = {}) { return Request({ url: '/api/oneid/behaviorDashboard/dashboard/chart/{domainId}', params, method: 'get', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'GET', url: getUrl( '/api/oneid/behaviorDashboard/dashboard/chart/{domainId}', params, 'GET', ), params, init, }; }; }