Fix 200 response exception builder
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
@@ -113,5 +113,12 @@ func Exchange(c *gin.Context) {
|
||||
RedirectUri string `json:"redirect_uri"`
|
||||
}{url.String()}
|
||||
|
||||
utils.HttpResponse(c, 200, "", "success", exchangeResp)
|
||||
errorCode := new(exception.Builder).
|
||||
SetStatus(exception.StatusSuccess).
|
||||
SetService(exception.ServiceAuth).
|
||||
SetEndpoint(exception.EndpointAuthServiceExchange).
|
||||
SetType(exception.TypeCommon).
|
||||
SetOriginal(exception.CommonSuccess).
|
||||
Build()
|
||||
utils.HttpResponse(c, 200, errorCode, exchangeResp)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user