添加项目文件。
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
using AdminService.Notices.Param;
|
||||
using AdminService.System.Param;
|
||||
using AdminService.System.Response;
|
||||
using AdminService.Notices.Param;
|
||||
using AutoMapper;
|
||||
using CommonDomain;
|
||||
using UserDomain.Entity;
|
||||
using Domain.Admin.Admin;
|
||||
using UserDomain.Entity;
|
||||
|
||||
namespace AdminService
|
||||
{
|
||||
public class AutoMapperConfig : Profile
|
||||
{
|
||||
public AutoMapperConfig()
|
||||
{
|
||||
#region Admin
|
||||
//param To Entity
|
||||
CreateMap<AddUserParam, SystemUser>();
|
||||
CreateMap<AddRoleParam, SystemUserRole>();
|
||||
CreateMap<AddNavParam, SystemNavigation>();
|
||||
CreateMap<AddDicParam, SystemDic>();
|
||||
|
||||
CreateMap<SystemUser, AdminUserToken>();
|
||||
|
||||
CreateMap<SystemNavigation, SystemNavigationResponse>();
|
||||
CreateMap<SystemDic, SystemDicResponse>();
|
||||
#endregion
|
||||
|
||||
#region Notice
|
||||
CreateMap<AddNoticeParam, Notice>();
|
||||
CreateMap<UpdateNoticeParam, Notice>();
|
||||
#endregion
|
||||
|
||||
#region Task
|
||||
CreateMap<GameTask, UserTask>();
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user