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.
77 lines
3.0 KiB
77 lines
3.0 KiB
3 months ago
|
using AutoMapper;
|
||
|
using Kean.Application.Command.ViewModels;
|
||
|
using Kean.Domain.Basic.Commands;
|
||
|
using Kean.Domain.Identity.Commands;
|
||
|
using Kean.Domain.Material.Commands;
|
||
|
using Kean.Domain.Message.Commands;
|
||
|
using Kean.Domain.Order.Commands;
|
||
|
using Kean.Domain.Stock.Commands;
|
||
|
using Kean.Domain.Task.Commands;
|
||
|
|
||
|
namespace Kean.Application.Command
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 模型映射配置
|
||
|
/// </summary>
|
||
|
public class AutoMapper : Profile
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 初始化 Kean.Application.Command.AutoMapper 类的新实例
|
||
|
/// </summary>
|
||
|
public AutoMapper()
|
||
|
{
|
||
|
AllowNullCollections = true;
|
||
|
|
||
|
CreateMap<User, LoginCommand>();
|
||
|
CreateMap<User, ModifyAvatarCommand>();
|
||
|
CreateMap<Password, InitializePasswordCommand>();
|
||
|
CreateMap<Password, ModifyPasswordCommand>();
|
||
|
CreateMap<Message, SendMessageCommand>();
|
||
|
CreateMap<Role, CreateRoleCommand>();
|
||
|
CreateMap<Role, ModifyRoleCommand>();
|
||
|
CreateMap<User, CreateUserCommand>();
|
||
|
CreateMap<User, ModifyUserCommand>();
|
||
|
CreateMap<Material, CreateMaterialCommand>();
|
||
|
CreateMap<Material, ModifyMaterialCommand>();
|
||
|
CreateMap<Category, CreateCategoryCommand>();
|
||
|
CreateMap<Category, ModifyCategoryCommand>();
|
||
|
CreateMap<Safety, CreateSafetyCommand>();
|
||
|
CreateMap<Safety, ModifySafetyCommand>();
|
||
|
CreateMap<Ordtyp, CreateTypeCommand>();
|
||
|
CreateMap<Ordtyp, ModifyTypeCommand>();
|
||
|
CreateMap<Order, CreateOrderCommand>();
|
||
|
CreateMap<Order, ModifyOrderCommand>();
|
||
|
CreateMap<Order.Line, Domain.Order.Models.OrderLine>();
|
||
|
CreateMap<Flow, CreateFlowCommand>();
|
||
|
CreateMap<Flow, ModifyFlowCommand>();
|
||
|
CreateMap<Flow.Node, Domain.Order.Models.FlowNode>();
|
||
|
CreateMap<Flow.Path, Domain.Order.Models.FlowPath>();
|
||
|
CreateMap<Stock, InboundCommand>();
|
||
|
CreateMap<Stock, OutboundCommand>();
|
||
|
CreateMap<Stock, UpdateCommand>();
|
||
|
CreateMap<Stock, CombineCommand>();
|
||
|
CreateMap<Stock, InventoryCommand>();
|
||
|
CreateMap<Stock.Line, Domain.Stock.Models.StockLine>();
|
||
|
CreateMap<Task, InfeedCommand>();
|
||
|
CreateMap<Task, OutfeedCommand>();
|
||
|
CreateMap<Task, TransferCommand>();
|
||
|
CreateMap<Task, BypassCommand>();
|
||
|
|
||
|
//////////////////////////////////////////
|
||
|
CreateMap<Stock, ScanInboundCommand>();
|
||
|
CreateMap<Stock, PalletInCommand>();
|
||
|
|
||
|
CreateMap<Task, ApplyOutCommand>();
|
||
|
CreateMap<Task, PalletOutCommand>();
|
||
|
CreateMap<InterfaceRecord, InterfaceRecordCommand>();
|
||
|
CreateMap<Task, SetPriorityCommand>();
|
||
|
|
||
|
CreateMap<Batch, Kean.Domain.Stock.Models.Batch>();
|
||
|
|
||
|
CreateMap<Item, CreateItemCommand>();
|
||
|
CreateMap<Item, ModifyItemCommand>();
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|