add comments

This commit is contained in:
MaysWind
2020-12-22 23:39:36 +08:00
parent e66f0c7f48
commit bb10498893
12 changed files with 41 additions and 0 deletions
+1
View File
@@ -4,6 +4,7 @@ import (
"net/http"
)
// Error codes related to tokens
var (
ErrTokenGenerating = NewNormalError(NORMAL_SUBCATEGORY_TOKEN, 0, http.StatusInternalServerError, "failed to generate token")
ErrUnauthorizedAccess = NewNormalError(NORMAL_SUBCATEGORY_TOKEN, 1, http.StatusUnauthorized, "unauthorized access")