/** * @description 获取租户的全局资产数据 */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params {} export const init = new defs.TenantGlobalAssetBO(); export async function request(params = {}) { return Request({ url: '/api/assetOverview/tenant/globalAsset', params, method: 'get', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'GET', url: getUrl('/api/assetOverview/tenant/globalAsset', params, 'GET'), params, init, }; }; }