ApplicationConfiguration
Posted dollymi
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ApplicationConfiguration相关的知识,希望对你有一定的参考价值。
接口服务:/api/abp/application-configuration
export namespace ApplicationConfiguration { export interface Response { localization: Localization; auth: Auth; setting: Value; currentUser: CurrentUser; features: Value; }
Volo.Abp.AspNetCore.Mvc
public virtual async Task<ApplicationConfigurationDto> GetAsync() { //TODO: Optimize & cache..? return new ApplicationConfigurationDto { Auth = await GetAuthConfigAsync(), Features = await GetFeaturesConfigAsync(), Localization = await GetLocalizationConfigAsync(), CurrentUser = GetCurrentUser(), Setting = await GetSettingConfigAsync() }; }
一、localization是国际化,对象{values,languages} ,其中values对象含有Default,AbpValidation,AbpIdentity,AbpPermissionManagement,AbpAccount
AbpUi,以及自己的库等一系列资源
languages是支持语言对象的数组
二、设置setting,Dictionary,keyvalue
三、当前用户currentUser
以上是关于ApplicationConfiguration的主要内容,如果未能解决你的问题,请参考以下文章
WDA学习:Application Configuration