package mapper import ( "go-humas-be/app/database/entity" res "go-humas-be/app/module/users/response" ) func UsersResponseMapper(usersReq *entity.Users) (usersRes *res.UsersResponse) { if usersReq != nil { usersRes = &res.UsersResponse{ ID: usersReq.ID, Username: usersReq.Username, Email: usersReq.Email, Fullname: usersReq.Fullname, Address: usersReq.Address, PhoneNumber: usersReq.PhoneNumber, WorkType: usersReq.WorkType, GenderType: usersReq.GenderType, IdentityType: usersReq.IdentityType, IdentityNumber: usersReq.IdentityNumber, DateOfBirth: usersReq.DateOfBirth, LastEducation: usersReq.LastEducation, KeycloakId: usersReq.KeycloakId, UserRoleId: usersReq.UserRoleId, StatusId: usersReq.StatusId, UserLevelsId: usersReq.UserLevelsId, CreatedById: usersReq.CreatedById, ProfilePicturePath: usersReq.ProfilePicturePath, IsActive: usersReq.IsActive, CreatedAt: usersReq.CreatedAt, UpdatedAt: usersReq.UpdatedAt, } } return usersRes }