zeroframework/Services/Identity/ZeroFramework.IdentityServer.API/AutoMapper/UsersProfile.cs
2023-12-05 17:22:48 +08:00

17 lines
486 B
C#

using AutoMapper;
using ZeroFramework.IdentityServer.API.IdentityStores;
using ZeroFramework.IdentityServer.API.Models.Users;
namespace ZeroFramework.IdentityServer.API.AutoMapper
{
public class UsersProfile : Profile
{
public UsersProfile()
{
CreateMap<ApplicationUser, UserGetResponseModel>();
CreateMap<UserCreateRequestModel, ApplicationUser>();
CreateMap<UserUpdateRequestModel, ApplicationUser>();
}
}
}