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

Method RemoveUserStatus

internal/repo/auth/auth.go:147–153  ·  view source on GitHub ↗

RemoveUserStatus remove user status

(ctx context.Context, userID string)

Source from the content-addressed store, hash-verified

145
146// RemoveUserStatus remove user status
147func (ar *authRepo) RemoveUserStatus(ctx context.Context, userID string) (err error) {
148 err = ar.data.Cache.Del(ctx, constant.UserStatusChangedCacheKey+userID)
149 if err != nil {
150 return errors.InternalServer(reason.DatabaseError).WithError(err).WithStack()
151 }
152 return nil
153}
154
155// GetAdminUserCacheInfo get admin user cache info
156func (ar *authRepo) GetAdminUserCacheInfo(ctx context.Context, accessToken string) (userInfo *entity.UserCacheInfo, err error) {

Callers 1

RemoveUserTokensMethod · 0.95

Calls 1

DelMethod · 0.65

Tested by

no test coverage detected