Fix some type change bugs (error)

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2026-01-21 14:16:47 +08:00
parent 8f69b61799
commit 585ec46282
5 changed files with 53 additions and 52 deletions

View File

@@ -17,10 +17,10 @@ func JWTAuth() gin.HandlerFunc {
uid, err := authtoken.HeaderVerify(auth)
if err != nil {
errorCode := new(exception.Builder).
SetStatus(exception.ErrorStatusServer).
SetService(exception.MiddlewareJwtService).
SetEndpoint(exception.MiddlewareEndpoint).
SetType(exception.ErrorTypeSpecific).
SetStatus(exception.StatusServer).
SetService(exception.MiddlewareServiceJwt).
SetEndpoint(exception.EndpointMiddlewareService).
SetType(exception.TypeSpecific).
SetOriginal(exception.CommonErrorUnauthorized).
Build()