新增后台用户管理1

This commit is contained in:
2024-09-30 15:19:41 +08:00
parent 1fadd77158
commit f862bd28e1
3 changed files with 58 additions and 9 deletions
+17
View File
@@ -80,3 +80,20 @@ func (r *AdminUserDto) LoadUserDoctor(t string) *AdminUserDto {
}
return r
}
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,
}
}