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

Function NewUserRepository

internal/repository/user.go:37–43  ·  view source on GitHub ↗
(dao dao.UserDAO, cache cache.UserCache, l *zap.Logger)

Source from the content-addressed store, hash-verified

35}
36
37func NewUserRepository(dao dao.UserDAO, cache cache.UserCache, l *zap.Logger) UserRepository {
38 return &userRepository{
39 dao: dao,
40 cache: cache,
41 l: l,
42 }
43}
44
45// ChangePassword 修改密码
46func (ur *userRepository) ChangePassword(ctx context.Context, username string, newPassword string) error {

Callers 1

InitWebServerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected