Skip to content

Commit

Permalink
update swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
cherry-yl-sh committed Mar 5, 2024
1 parent 2c42477 commit 93f39a8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion common/model/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func GetResponse() *Response {
return &Response{
httpCode: http.StatusOK,
Result: &Result{
Code: 0,
Code: 200,
Message: "",
Data: nil,
Cost: "",
Expand Down
3 changes: 3 additions & 0 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ const docTemplate = `{
"/api/healthz": {
"get": {
"description": "Get Healthz",
"consumes": [
"application/json"
],
"tags": [
"Healthz"
],
Expand Down
4 changes: 2 additions & 2 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}
}
},
"/api/health": {
"/api/healthz": {
"get": {
"description": "Get Healthz",
"consumes": [
Expand Down Expand Up @@ -213,4 +213,4 @@
"in": "header"
}
}
}
}
2 changes: 1 addition & 1 deletion docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ paths:
description: OK
tags:
- Auth
/api/health:
/api/healthz:
get:
consumes:
- application/json
Expand Down
2 changes: 1 addition & 1 deletion service/executor/try_pay_user_op_execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func TryPayUserOpExecute(request model.TryPayUserOpRequest) (model.Result, error
}

return model.Result{
Code: 0,
Code: 200,
Data: result,
Message: "message",
Cost: "cost",
Expand Down

0 comments on commit 93f39a8

Please sign in to comment.