[#47] fixed some doc and code inconsistencies and removed some redundant parentheses

This commit is contained in:
Valley
2022-07-10 14:13:44 +08:00
committed by GitHub
parent d64fbf9011
commit 460c684caa
9 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ func (dao *Dao) FindAdminByEmail(email string) (*models.Admin, error) {
return model, nil
}
// FindAdminByEmail finds the admin associated with the provided JWT token.
// FindAdminByToken finds the admin associated with the provided JWT token.
//
// Returns an error if the JWT token is invalid or expired.
func (dao *Dao) FindAdminByToken(token string, baseTokenKey string) (*models.Admin, error) {