first commit
This commit is contained in:
		| @ -0,0 +1,41 @@ | ||||
| using Localization.Resources.AbpUi; | ||||
| using KonSoft.Admin.Localization; | ||||
| using Volo.Abp.Account; | ||||
| using Volo.Abp.FeatureManagement; | ||||
| using Volo.Abp.Identity; | ||||
| using Volo.Abp.Localization; | ||||
| using Volo.Abp.Modularity; | ||||
| using Volo.Abp.PermissionManagement.HttpApi; | ||||
| using Volo.Abp.SettingManagement; | ||||
| using Volo.Abp.TenantManagement; | ||||
|  | ||||
| namespace KonSoft.Admin; | ||||
|  | ||||
| [DependsOn( | ||||
|     typeof(AdminApplicationContractsModule), | ||||
|     typeof(AbpAccountHttpApiModule), | ||||
|     typeof(AbpIdentityHttpApiModule), | ||||
|     typeof(AbpPermissionManagementHttpApiModule), | ||||
|     typeof(AbpTenantManagementHttpApiModule), | ||||
|     typeof(AbpFeatureManagementHttpApiModule), | ||||
|     typeof(AbpSettingManagementHttpApiModule) | ||||
|     )] | ||||
| public class AdminHttpApiModule : AbpModule | ||||
| { | ||||
|     public override void ConfigureServices(ServiceConfigurationContext context) | ||||
|     { | ||||
|         ConfigureLocalization(); | ||||
|     } | ||||
|  | ||||
|     private void ConfigureLocalization() | ||||
|     { | ||||
|         Configure<AbpLocalizationOptions>(options => | ||||
|         { | ||||
|             options.Resources | ||||
|                 .Get<AdminResource>() | ||||
|                 .AddBaseTypes( | ||||
|                     typeof(AbpUiResource) | ||||
|                 ); | ||||
|         }); | ||||
|     } | ||||
| } | ||||
| @ -0,0 +1,14 @@ | ||||
| using KonSoft.Admin.Localization; | ||||
| using Volo.Abp.AspNetCore.Mvc; | ||||
|  | ||||
| namespace KonSoft.Admin.Controllers; | ||||
|  | ||||
| /* Inherit your controllers from this class. | ||||
|  */ | ||||
| public abstract class AdminController : AbpControllerBase | ||||
| { | ||||
|     protected AdminController() | ||||
|     { | ||||
|         LocalizationResource = typeof(AdminResource); | ||||
|     } | ||||
| } | ||||
| @ -0,0 +1,24 @@ | ||||
| <Project Sdk="Microsoft.NET.Sdk"> | ||||
|  | ||||
|   <Import Project="..\..\common.props" /> | ||||
|  | ||||
|   <PropertyGroup> | ||||
|     <TargetFramework>net8.0</TargetFramework> | ||||
|     <Nullable>enable</Nullable> | ||||
|     <RootNamespace>KonSoft.Admin</RootNamespace> | ||||
|   </PropertyGroup> | ||||
|  | ||||
|   <ItemGroup> | ||||
|     <ProjectReference Include="..\KonSoft.Admin.Application.Contracts\KonSoft.Admin.Application.Contracts.csproj" /> | ||||
|   </ItemGroup> | ||||
|  | ||||
|   <ItemGroup> | ||||
|     <PackageReference Include="Volo.Abp.Account.HttpApi" Version="8.3.4" /> | ||||
|     <PackageReference Include="Volo.Abp.Identity.HttpApi" Version="8.3.4" /> | ||||
|     <PackageReference Include="Volo.Abp.PermissionManagement.HttpApi" Version="8.3.4" /> | ||||
|     <PackageReference Include="Volo.Abp.TenantManagement.HttpApi" Version="8.3.4" /> | ||||
|     <PackageReference Include="Volo.Abp.FeatureManagement.HttpApi" Version="8.3.4" /> | ||||
|     <PackageReference Include="Volo.Abp.SettingManagement.HttpApi" Version="8.3.4" /> | ||||
|   </ItemGroup> | ||||
|  | ||||
| </Project> | ||||
| @ -0,0 +1,10 @@ | ||||
| using System; | ||||
|  | ||||
| namespace KonSoft.Admin.Models.Test; | ||||
|  | ||||
| public class TestModel | ||||
| { | ||||
|     public string? Name { get; set; } | ||||
|  | ||||
|     public DateTime BirthDate { get; set; } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user