(ctx context.Context, visitToken string)
| 102 | } |
| 103 | |
| 104 | func (as *AuthService) CheckUserVisitToken(ctx context.Context, visitToken string) bool { |
| 105 | accessToken, err := as.authRepo.GetUserVisitCacheInfo(ctx, visitToken) |
| 106 | if err != nil { |
| 107 | return false |
| 108 | } |
| 109 | if len(accessToken) == 0 { |
| 110 | return false |
| 111 | } |
| 112 | return true |
| 113 | } |
| 114 | |
| 115 | func (as *AuthService) SetUserStatus(ctx context.Context, userInfo *entity.UserCacheInfo) (err error) { |
| 116 | return as.authRepo.SetUserStatus(ctx, userInfo.UserID, userInfo) |
no test coverage detected