20 lines
625 B
Go
20 lines
625 B
Go
package max
|
|
|
|
//go:generate -command GetRequest requestgen -method GET
|
|
//go:generate -command PostRequest requestgen -method POST
|
|
//go:generate -command DeleteRequest requestgen -method DELETE
|
|
|
|
import "github.com/c9s/requestgen"
|
|
|
|
func (s *OrderService) NewCancelOrderRequest() *CancelOrderRequest {
|
|
return &CancelOrderRequest{client: s.client}
|
|
}
|
|
|
|
//go:generate PostRequest -url "/api/v2/order/delete" -type CancelOrderRequest -responseType .Order
|
|
type CancelOrderRequest struct {
|
|
client requestgen.AuthenticatedAPIClient
|
|
|
|
id *uint64 `param:"id,omitempty"`
|
|
clientOrderID *string `param:"client_oid,omitempty"`
|
|
}
|