1113
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user