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.
84 lines
2.7 KiB
84 lines
2.7 KiB
using Volo.Abp.AspNetCore.Mvc;
|
|
using Volo.Abp.AspNetCore.Mvc.Conventions;
|
|
using Win_in.Sfs.Basedata.Application;
|
|
using Win_in.Sfs.Basedata.Domain.Shared;
|
|
using Win_in.Sfs.FileStorage;
|
|
using Win_in.Sfs.Label.Application;
|
|
using Win_in.Sfs.Label.Domain.Shared;
|
|
using Win_in.Sfs.Message.Application;
|
|
using Win_in.Sfs.Message.Domain.Shared;
|
|
using Win_in.Sfs.Wms.Inventory.Application;
|
|
using Win_in.Sfs.Wms.Inventory.Domain.Shared;
|
|
using Win_in.Sfs.Wms.Job.Application;
|
|
using Win_in.Sfs.Wms.Job.Domain.Shared;
|
|
using Win_in.Sfs.Wms.Store.Application;
|
|
using Win_in.Sfs.Wms.Store.Domain.Shared;
|
|
|
|
namespace Win_in.Sfs.Wms.Store;
|
|
|
|
public static class ConventionalControllerExtensions
|
|
{
|
|
|
|
//public static void CreateLabelApp(this AbpAspNetCoreMvcOptions options)
|
|
//{
|
|
// options
|
|
// .ConventionalControllers
|
|
// .Create(typeof(LabelApplicationModule).Assembly, opts
|
|
// => { opts.RootPath = LabelConsts.RootPath; });
|
|
//}
|
|
|
|
//public static void CreateMessageApp(this AbpAspNetCoreMvcOptions options)
|
|
//{
|
|
// options
|
|
// .ConventionalControllers
|
|
// .Create(typeof(MessageApplicationModule).Assembly, opts
|
|
// =>
|
|
// { opts.RootPath = MessageConsts.RootPath; });
|
|
//}
|
|
|
|
// public static void CreateBasedataApp(this AbpAspNetCoreMvcOptions options)
|
|
// {
|
|
// options
|
|
// .ConventionalControllers
|
|
// .Create(typeof(BasedataApplicationModule).Assembly, opts
|
|
// =>
|
|
// { opts.RootPath = BasedataConsts.RootPath; });
|
|
// }
|
|
|
|
public static void CreateInventoryApp(this AbpAspNetCoreMvcOptions options)
|
|
{
|
|
options
|
|
.ConventionalControllers
|
|
.Create(typeof(InventoryApplicationModule).Assembly, opts
|
|
=>
|
|
{ opts.RootPath = InventoryConsts.RootPath; });
|
|
}
|
|
|
|
public static void CreateJobApp(this AbpAspNetCoreMvcOptions options)
|
|
{
|
|
options
|
|
.ConventionalControllers
|
|
.Create(typeof(JobApplicationModule).Assembly, opts
|
|
=>
|
|
{ opts.RootPath = JobConsts.RootPath; });
|
|
}
|
|
|
|
public static void CreateStoreApp(this AbpAspNetCoreMvcOptions options)
|
|
{
|
|
options
|
|
.ConventionalControllers
|
|
.Create(typeof(StoreApplicationModule).Assembly, opts
|
|
=>
|
|
{ opts.RootPath = StoreConsts.RootPath; });
|
|
}
|
|
|
|
//public static void CreateFileStorageApp(this AbpAspNetCoreMvcOptions options)
|
|
//{
|
|
// options
|
|
// .ConventionalControllers
|
|
// .Create(typeof(FileStorageApplicationModule).Assembly, opts
|
|
// =>
|
|
// { opts.RootPath = FileStorageConsts.RootPath; });
|
|
//}
|
|
|
|
}
|