chore: fix function names in comment
Signed-off-by: verytrap <wangqiuyue@outlook.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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)}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user