MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / ListUser

Method ListUser

internal/repository/user.go:179–187  ·  view source on GitHub ↗

ListUser 获取用户列表

(ctx context.Context, pagination domain.Pagination)

Source from the content-addressed store, hash-verified

177
178// ListUser 获取用户列表
179func (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 更新用户资料(管理员)
190func (ur *userRepository) UpdateProfileAdmin(ctx context.Context, profile domain.Profile) error {

Callers

nothing calls this directly

Calls 1

ListUserMethod · 0.65

Tested by

no test coverage detected