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/04/09 11:07:58 UTC
(incubator-answer) branch dev updated: chore: fix function names in comment
This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
The following commit(s) were added to refs/heads/dev by this push:
new 299734c9 chore: fix function names in comment
299734c9 is described below
commit 299734c90833079261b3225268e6292e578650cd
Author: verytrap <wa...@outlook.com>
AuthorDate: Tue Apr 9 17:57:56 2024 +0800
chore: fix function names in comment
Signed-off-by: verytrap <wa...@outlook.com>
---
internal/repo/tag/tag_repo.go | 2 +-
internal/service/activity/activity.go | 2 +-
internal/service/rank/rank_service.go | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/internal/repo/tag/tag_repo.go b/internal/repo/tag/tag_repo.go
index eea54995..c9c2c1fa 100644
--- a/internal/repo/tag/tag_repo.go
+++ b/internal/repo/tag/tag_repo.go
@@ -77,7 +77,7 @@ func (tr *tagRepo) RecoverTag(ctx context.Context, tagID string) (err error) {
return
}
-// MustGetTagByID get tag by id
+// MustGetTagByNameOrID get tag by name or id
func (tr *tagRepo) MustGetTagByNameOrID(ctx context.Context, tagID, slugName string) (
tag *entity.Tag, exist bool, err error) {
if len(tagID) == 0 && len(slugName) == 0 {
diff --git a/internal/service/activity/activity.go b/internal/service/activity/activity.go
index cb634d2a..0f3f8393 100644
--- a/internal/service/activity/activity.go
+++ b/internal/service/activity/activity.go
@@ -259,7 +259,7 @@ func (as *ActivityService) GetObjectTimelineDetail(ctx context.Context, req *sch
return resp, nil
}
-// GetObjectTimelineDetail get object detail
+// getOneObjectDetail get object detail
func (as *ActivityService) getOneObjectDetail(ctx context.Context, revisionID string) (
resp *schema.ObjectTimelineDetail, err error) {
resp = &schema.ObjectTimelineDetail{Tags: make([]*schema.ObjectTimelineTag, 0)}
diff --git a/internal/service/rank/rank_service.go b/internal/service/rank/rank_service.go
index ab164d4d..2b4462a6 100644
--- a/internal/service/rank/rank_service.go
+++ b/internal/service/rank/rank_service.go
@@ -242,7 +242,7 @@ func (rs *RankService) getUserPowerMapping(ctx context.Context, userID string) (
return powerMapping
}
-// CheckRankPermission verify that the user meets the prestige criteria
+// checkUserRank verify that the user meets the prestige criteria
func (rs *RankService) checkUserRank(ctx context.Context, userID string, userRank int, action string) (
can bool, rank int) {
// get the amount of rank required for the current operation