You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
34 lines
1.1 KiB
using BaseService.Localization;
|
|
using Volo.Abp.Application;
|
|
using Volo.Abp.Localization;
|
|
using Volo.Abp.Modularity;
|
|
using Volo.Abp.PermissionManagement;
|
|
using Volo.Abp.Validation.Localization;
|
|
using Volo.Abp.VirtualFileSystem;
|
|
|
|
namespace BaseService
|
|
{
|
|
[DependsOn(
|
|
typeof(AbpDddApplicationModule),
|
|
typeof(AbpLocalizationModule),
|
|
typeof(AbpPermissionManagementApplicationContractsModule)
|
|
)]
|
|
public class BaseServiceApplicationContractsModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
Configure<AbpVirtualFileSystemOptions>(options =>
|
|
{
|
|
options.FileSets.AddEmbedded<BaseServiceApplicationContractsModule>("BaseService");
|
|
});
|
|
|
|
Configure<AbpLocalizationOptions>(options =>
|
|
{
|
|
options.Resources
|
|
.Add<BaseServiceResource>("zh-Hans")
|
|
.AddBaseTypes(typeof(AbpValidationResource))
|
|
.AddVirtualJson("/Localization/BaseService");
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|