MCPcopy Index your code
hub / github.com/apache/answer / GetByUsername

Method GetByUsername

internal/service/user_common/user.go:128–130  ·  view source on GitHub ↗
(ctx context.Context, username string)

Source from the content-addressed store, hash-verified

126}
127
128func (us *UserCommon) GetByUsername(ctx context.Context, username string) (userInfo *entity.User, exist bool, err error) {
129 return us.userRepo.GetByUsername(ctx, username)
130}
131
132func (us *UserCommon) UpdateUserProfile(ctx context.Context, userInfo *entity.User) (err error) {
133 return us.userRepo.UpdateUserProfile(ctx, userInfo)

Callers

nothing calls this directly

Calls 1

GetByUsernameMethod · 0.65

Tested by

no test coverage detected