Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

refactor(badge): remove unused code

LinkinStars90faa87e52bf
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