fix status code 200 (#47818)

This commit is contained in:
ying-jeanne
2022-04-15 14:01:58 +02:00
committed by GitHub
parent f263cad8ab
commit 7ddae870e7
44 changed files with 166 additions and 152 deletions

View File

@@ -180,7 +180,7 @@ func JSONStreaming(status int, body interface{}) StreamingResponse {
func Success(message string) *NormalResponse {
resp := make(map[string]interface{})
resp["message"] = message
return JSON(200, resp)
return JSON(http.StatusOK, resp)
}
// Error creates an error response.