41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
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
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|