You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by li...@apache.org on 2024/08/28 07:34:50 UTC
(incubator-answer) branch feat/1.4.0/badge updated: refactor(badge): remove unused code
This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a commit to branch feat/1.4.0/badge
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
The following commit(s) were added to refs/heads/feat/1.4.0/badge by this push:
new f6b93f2b refactor(badge): remove unused code
f6b93f2b is described below
commit f6b93f2b35fd4a0fda1075fdf28e8ce3c5bf9c3c
Author: LinkinStars <li...@foxmail.com>
AuthorDate: Wed Aug 28 15:34:40 2024 +0800
refactor(badge): remove unused code
---
internal/service/badge/badge_award_service.go | 7 -------
1 file changed, 7 deletions(-)
diff --git a/internal/service/badge/badge_award_service.go b/internal/service/badge/badge_award_service.go
index 02cdcf1c..0bc7be0f 100644
--- a/internal/service/badge/badge_award_service.go
+++ b/internal/service/badge/badge_award_service.go
@@ -273,13 +273,6 @@ func (bs *BadgeAwardService) GetUserRecentBadgeAwardList(ctx *gin.Context, req *
return
}
-// validate user
-
-type userReq struct {
- UserID string
- Username string
-}
-
func (bs *BadgeAwardService) validateUserByUsername(ctx context.Context, userName string) (userID string, err error) {
var (
userInfo *schema.UserBasicInfo