This commit is contained in:
2024-09-30 15:19:33 +08:00
parent d5b0515b25
commit 8d68d6463e
3 changed files with 49 additions and 0 deletions
+17
View File
@@ -56,3 +56,20 @@ func GetAdminUserListDto(m []*model.AdminUser) []*AdminUserDto {
return responses
}
func GetAdminUserDto(m *model.AdminUser) *AdminUserDto {
return &AdminUserDto{
UserId: fmt.Sprintf("%d", m.UserId),
Access: m.Access,
Status: m.Status,
IsDeleted: m.IsDeleted,
IsDisabled: m.IsDisabled,
NickName: m.NickName,
Phone: m.Phone,
Avatar: utils.AddOssDomain(m.Avatar),
Sex: m.Sex,
Email: m.Email,
CreatedAt: m.CreatedAt,
UpdatedAt: m.UpdatedAt,
}
}