ListUser 获取用户列表
(ctx context.Context, pagination domain.Pagination)
| 177 | |
| 178 | // ListUser 获取用户列表 |
| 179 | func (ur *userRepository) ListUser(ctx context.Context, pagination domain.Pagination) ([]domain.UserWithProfile, error) { |
| 180 | users, err := ur.dao.ListUser(ctx, pagination) |
| 181 | if err != nil { |
| 182 | ur.l.Error("获取用户列表失败", zap.Error(err)) |
| 183 | return nil, err |
| 184 | } |
| 185 | |
| 186 | return users, nil |
| 187 | } |
| 188 | |
| 189 | // UpdateProfileAdmin 更新用户资料(管理员) |
| 190 | func (ur *userRepository) UpdateProfileAdmin(ctx context.Context, profile domain.Profile) error { |