Mag.Blog.Swagger层
添加Volo.Abp.AspNetCore
和Swashbuckle.AspNetCore
包,引用实体层.Domain
添加模块类MagBlogSwaggerModule.cs
,依赖MagBlogDomainModule
模块,并且重写ConfigureServices
和OnApplicationInitialization
方法
namespace Mag.Blog.Swagger
{[DependsOn(typeof(MagBlogDomainModule))]public class MagBlogSwaggerModule : AbpModule{public override void ConfigureServices(ServiceConfigurationContext context){base.ConfigureServices(context);}public override void OnApplicationInitialization(ApplicationInitializationContext context){base.OnApplicationInitialization(context);}}
}
新建扩展类MagBlogSwaggerExtensions.cs