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.
|
|
|
using AutoMapper;
|
|
|
|
using BaseService.BaseData;
|
|
|
|
using BaseService.RelationBaseData;
|
|
|
|
using BaseService.Systems.AuditLoggingManagement.Dto;
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Text;
|
|
|
|
using BaseService.BaseData.BranchManagement.Dto;
|
|
|
|
using BaseService.BaseData.UserBranchRoleManagement.Dto;
|
|
|
|
using BaseService.RelationData.Dto;
|
|
|
|
|
|
|
|
using Volo.Abp.Identity;
|
|
|
|
|
|
|
|
namespace BaseService
|
|
|
|
{
|
|
|
|
public class BaseServiceApplicationAutoMapperProfile : Profile
|
|
|
|
{
|
|
|
|
public BaseServiceApplicationAutoMapperProfile()
|
|
|
|
{
|
|
|
|
|
|
|
|
CreateMap<Branch, BranchDto>()
|
|
|
|
.ForMember(dto => dto.Label, opt => opt.MapFrom(src => src.Name));
|
|
|
|
|
|
|
|
//用户--分支
|
|
|
|
CreateMap<UserBranch, UserBranchDto>();
|
|
|
|
|
|
|
|
//分支--角色
|
|
|
|
CreateMap<BranchRole, BranchRoleDto>();
|
|
|
|
|
|
|
|
CreateMap<IdentityUser, IdentityUserDto>().MapExtraProperties();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|