Fix 200 response exception builder

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2026-01-21 15:26:59 +08:00
parent 2f26b2ddb5
commit 9aff7d8f26
11 changed files with 81 additions and 10 deletions

View File

@@ -64,5 +64,12 @@ func Refresh(c *gin.Context) {
RefreshToken string `json:"refresh_token"`
}{accessToken, refreshToken}
utils.HttpResponse(c, 200, "", "success", tokenResp)
errorCode := new(exception.Builder).
SetStatus(exception.StatusServer).
SetService(exception.ServiceAuth).
SetEndpoint(exception.EndpointAuthServiceRefresh).
SetType(exception.TypeCommon).
SetOriginal(exception.CommonSuccess).
Build()
utils.HttpResponse(c, 200, errorCode, tokenResp)
}