Skip to content

Commit

Permalink
change API param
Browse files Browse the repository at this point in the history
  • Loading branch information
cherry-yl-sh committed Mar 5, 2024
1 parent ce8e82e commit 48f83a2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 21 deletions.
2 changes: 1 addition & 1 deletion common/model/api_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package model
import "errors"

type TryPayUserOpRequest struct {
ForceStrategyId string `json:"strategy_id"`
ForceStrategyId string `json:"force_strategy_id"`
ForceNetWork string `json:"force_network"`
ForceTokens string `json:"force_tokens"`
ForceEntryPointAddress string `json:"force_entry_point_address"`
Expand Down
9 changes: 2 additions & 7 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,20 +151,17 @@ const docTemplate = `{
"model.TryPayUserOpRequest": {
"type": "object",
"properties": {
"apikey": {
"type": "string"
},
"extra": {},
"force_entry_point_address": {
"type": "string"
},
"force_network": {
"type": "string"
},
"force_tokens": {
"force_strategy_id": {
"type": "string"
},
"strategy_id": {
"force_tokens": {
"type": "string"
},
"user_operation": {
Expand All @@ -176,13 +173,11 @@ const docTemplate = `{
"type": "object",
"required": [
"call_gas_limit",
"init_code",
"max_fee_per_gas",
"max_priority_fee_per_gas",
"nonce",
"per_verification_gas",
"sender",
"signature",
"verification_gas_list"
],
"properties": {
Expand Down
9 changes: 2 additions & 7 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,20 +140,17 @@
"model.TryPayUserOpRequest": {
"type": "object",
"properties": {
"apikey": {
"type": "string"
},
"extra": {},
"force_entry_point_address": {
"type": "string"
},
"force_network": {
"type": "string"
},
"force_tokens": {
"force_strategy_id": {
"type": "string"
},
"strategy_id": {
"force_tokens": {
"type": "string"
},
"user_operation": {
Expand All @@ -165,13 +162,11 @@
"type": "object",
"required": [
"call_gas_limit",
"init_code",
"max_fee_per_gas",
"max_priority_fee_per_gas",
"nonce",
"per_verification_gas",
"sender",
"signature",
"verification_gas_list"
],
"properties": {
Expand Down
8 changes: 2 additions & 6 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@ definitions:
type: object
model.TryPayUserOpRequest:
properties:
apikey:
type: string
extra: {}
force_entry_point_address:
type: string
force_network:
type: string
force_tokens:
force_strategy_id:
type: string
strategy_id:
force_tokens:
type: string
user_operation:
$ref: '#/definitions/model.UserOperationItem'
Expand All @@ -42,13 +40,11 @@ definitions:
type: string
required:
- call_gas_limit
- init_code
- max_fee_per_gas
- max_priority_fee_per_gas
- nonce
- per_verification_gas
- sender
- signature
- verification_gas_list
type: object
info:
Expand Down

0 comments on commit 48f83a2

Please sign in to comment.