Documentation ¶
Index ¶
- type DeleteLeagueSeasonByUUID
- type DeleteLeagueSeasonByUUIDDefault
- func (o *DeleteLeagueSeasonByUUIDDefault) SetPayload(payload *models.Error)
- func (o *DeleteLeagueSeasonByUUIDDefault) SetStatusCode(code int)
- func (o *DeleteLeagueSeasonByUUIDDefault) WithPayload(payload *models.Error) *DeleteLeagueSeasonByUUIDDefault
- func (o *DeleteLeagueSeasonByUUIDDefault) WithStatusCode(code int) *DeleteLeagueSeasonByUUIDDefault
- func (o *DeleteLeagueSeasonByUUIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteLeagueSeasonByUUIDHandler
- type DeleteLeagueSeasonByUUIDHandlerFunc
- type DeleteLeagueSeasonByUUIDOK
- type DeleteLeagueSeasonByUUIDParams
- type GetLeagueSeasonByUUID
- type GetLeagueSeasonByUUIDDefault
- func (o *GetLeagueSeasonByUUIDDefault) SetPayload(payload *models.Error)
- func (o *GetLeagueSeasonByUUIDDefault) SetStatusCode(code int)
- func (o *GetLeagueSeasonByUUIDDefault) WithPayload(payload *models.Error) *GetLeagueSeasonByUUIDDefault
- func (o *GetLeagueSeasonByUUIDDefault) WithStatusCode(code int) *GetLeagueSeasonByUUIDDefault
- func (o *GetLeagueSeasonByUUIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetLeagueSeasonByUUIDHandler
- type GetLeagueSeasonByUUIDHandlerFunc
- type GetLeagueSeasonByUUIDOK
- type GetLeagueSeasonByUUIDParams
- type GetLeagueSeasons
- type GetLeagueSeasonsDefault
- func (o *GetLeagueSeasonsDefault) SetPayload(payload *models.Error)
- func (o *GetLeagueSeasonsDefault) SetStatusCode(code int)
- func (o *GetLeagueSeasonsDefault) WithPayload(payload *models.Error) *GetLeagueSeasonsDefault
- func (o *GetLeagueSeasonsDefault) WithStatusCode(code int) *GetLeagueSeasonsDefault
- func (o *GetLeagueSeasonsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetLeagueSeasonsHandler
- type GetLeagueSeasonsHandlerFunc
- type GetLeagueSeasonsOK
- type GetLeagueSeasonsParams
- type PostLeagueSeason
- type PostLeagueSeasonCreated
- type PostLeagueSeasonDefault
- func (o *PostLeagueSeasonDefault) SetPayload(payload *models.Error)
- func (o *PostLeagueSeasonDefault) SetStatusCode(code int)
- func (o *PostLeagueSeasonDefault) WithPayload(payload *models.Error) *PostLeagueSeasonDefault
- func (o *PostLeagueSeasonDefault) WithStatusCode(code int) *PostLeagueSeasonDefault
- func (o *PostLeagueSeasonDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostLeagueSeasonHandler
- type PostLeagueSeasonHandlerFunc
- type PostLeagueSeasonParams
- type PutLeagueSeasonByUUID
- type PutLeagueSeasonByUUIDDefault
- func (o *PutLeagueSeasonByUUIDDefault) SetPayload(payload *models.Error)
- func (o *PutLeagueSeasonByUUIDDefault) SetStatusCode(code int)
- func (o *PutLeagueSeasonByUUIDDefault) WithPayload(payload *models.Error) *PutLeagueSeasonByUUIDDefault
- func (o *PutLeagueSeasonByUUIDDefault) WithStatusCode(code int) *PutLeagueSeasonByUUIDDefault
- func (o *PutLeagueSeasonByUUIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PutLeagueSeasonByUUIDHandler
- type PutLeagueSeasonByUUIDHandlerFunc
- type PutLeagueSeasonByUUIDOK
- type PutLeagueSeasonByUUIDParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteLeagueSeasonByUUID ¶
type DeleteLeagueSeasonByUUID struct { Context *middleware.Context Handler DeleteLeagueSeasonByUUIDHandler }
DeleteLeagueSeasonByUUID swagger:route DELETE /seasons/{SUUID} Season deleteLeagueSeasonByUuid
删除联赛赛季
删除联赛赛季
func NewDeleteLeagueSeasonByUUID ¶
func NewDeleteLeagueSeasonByUUID(ctx *middleware.Context, handler DeleteLeagueSeasonByUUIDHandler) *DeleteLeagueSeasonByUUID
NewDeleteLeagueSeasonByUUID creates a new http.Handler for the delete league season by UUID operation
func (*DeleteLeagueSeasonByUUID) ServeHTTP ¶
func (o *DeleteLeagueSeasonByUUID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteLeagueSeasonByUUIDDefault ¶
type DeleteLeagueSeasonByUUIDDefault struct { // In: body Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
DeleteLeagueSeasonByUUIDDefault unexpected error
swagger:response deleteLeagueSeasonByUuidDefault
func NewDeleteLeagueSeasonByUUIDDefault ¶
func NewDeleteLeagueSeasonByUUIDDefault(code int) *DeleteLeagueSeasonByUUIDDefault
NewDeleteLeagueSeasonByUUIDDefault creates DeleteLeagueSeasonByUUIDDefault with default headers values
func (*DeleteLeagueSeasonByUUIDDefault) SetPayload ¶
func (o *DeleteLeagueSeasonByUUIDDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the delete league season by UUID default response
func (*DeleteLeagueSeasonByUUIDDefault) SetStatusCode ¶
func (o *DeleteLeagueSeasonByUUIDDefault) SetStatusCode(code int)
SetStatusCode sets the status to the delete league season by UUID default response
func (*DeleteLeagueSeasonByUUIDDefault) WithPayload ¶
func (o *DeleteLeagueSeasonByUUIDDefault) WithPayload(payload *models.Error) *DeleteLeagueSeasonByUUIDDefault
WithPayload adds the payload to the delete league season by UUID default response
func (*DeleteLeagueSeasonByUUIDDefault) WithStatusCode ¶
func (o *DeleteLeagueSeasonByUUIDDefault) WithStatusCode(code int) *DeleteLeagueSeasonByUUIDDefault
WithStatusCode adds the status to the delete league season by UUID default response
func (*DeleteLeagueSeasonByUUIDDefault) WriteResponse ¶
func (o *DeleteLeagueSeasonByUUIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteLeagueSeasonByUUIDHandler ¶
type DeleteLeagueSeasonByUUIDHandler interface {
Handle(DeleteLeagueSeasonByUUIDParams) middleware.Responder
}
DeleteLeagueSeasonByUUIDHandler interface for that can handle valid delete league season by UUID params
type DeleteLeagueSeasonByUUIDHandlerFunc ¶
type DeleteLeagueSeasonByUUIDHandlerFunc func(DeleteLeagueSeasonByUUIDParams) middleware.Responder
DeleteLeagueSeasonByUUIDHandlerFunc turns a function with the right signature into a delete league season by UUID handler
func (DeleteLeagueSeasonByUUIDHandlerFunc) Handle ¶
func (fn DeleteLeagueSeasonByUUIDHandlerFunc) Handle(params DeleteLeagueSeasonByUUIDParams) middleware.Responder
Handle executing the request and returning a response
type DeleteLeagueSeasonByUUIDOK ¶
type DeleteLeagueSeasonByUUIDOK struct { }
DeleteLeagueSeasonByUUIDOK 删除了一条联赛赛季信息
swagger:response deleteLeagueSeasonByUuidOK
func NewDeleteLeagueSeasonByUUIDOK ¶
func NewDeleteLeagueSeasonByUUIDOK() *DeleteLeagueSeasonByUUIDOK
NewDeleteLeagueSeasonByUUIDOK creates DeleteLeagueSeasonByUUIDOK with default headers values
func (*DeleteLeagueSeasonByUUIDOK) WriteResponse ¶
func (o *DeleteLeagueSeasonByUUIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteLeagueSeasonByUUIDParams ¶
type DeleteLeagueSeasonByUUIDParams struct { // HTTP Request Object HTTPRequest *http.Request /*League season identity Required: true In: path */ SUUID string }
DeleteLeagueSeasonByUUIDParams contains all the bound params for the delete league season by UUID operation typically these are obtained from a http.Request
swagger:parameters deleteLeagueSeasonByUUID
func NewDeleteLeagueSeasonByUUIDParams ¶
func NewDeleteLeagueSeasonByUUIDParams() DeleteLeagueSeasonByUUIDParams
NewDeleteLeagueSeasonByUUIDParams creates a new DeleteLeagueSeasonByUUIDParams object with the default values initialized.
func (*DeleteLeagueSeasonByUUIDParams) BindRequest ¶
func (o *DeleteLeagueSeasonByUUIDParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls
type GetLeagueSeasonByUUID ¶
type GetLeagueSeasonByUUID struct { Context *middleware.Context Handler GetLeagueSeasonByUUIDHandler }
GetLeagueSeasonByUUID swagger:route GET /seasons/{SUUID} Season getLeagueSeasonByUuid
联赛赛季信息
返回联赛赛季信息, 仅是支持这样的操作,但是不必要, app不会用到
func NewGetLeagueSeasonByUUID ¶
func NewGetLeagueSeasonByUUID(ctx *middleware.Context, handler GetLeagueSeasonByUUIDHandler) *GetLeagueSeasonByUUID
NewGetLeagueSeasonByUUID creates a new http.Handler for the get league season by UUID operation
func (*GetLeagueSeasonByUUID) ServeHTTP ¶
func (o *GetLeagueSeasonByUUID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetLeagueSeasonByUUIDDefault ¶
type GetLeagueSeasonByUUIDDefault struct { // In: body Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetLeagueSeasonByUUIDDefault Unexpected error
swagger:response getLeagueSeasonByUuidDefault
func NewGetLeagueSeasonByUUIDDefault ¶
func NewGetLeagueSeasonByUUIDDefault(code int) *GetLeagueSeasonByUUIDDefault
NewGetLeagueSeasonByUUIDDefault creates GetLeagueSeasonByUUIDDefault with default headers values
func (*GetLeagueSeasonByUUIDDefault) SetPayload ¶
func (o *GetLeagueSeasonByUUIDDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get league season by UUID default response
func (*GetLeagueSeasonByUUIDDefault) SetStatusCode ¶
func (o *GetLeagueSeasonByUUIDDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get league season by UUID default response
func (*GetLeagueSeasonByUUIDDefault) WithPayload ¶
func (o *GetLeagueSeasonByUUIDDefault) WithPayload(payload *models.Error) *GetLeagueSeasonByUUIDDefault
WithPayload adds the payload to the get league season by UUID default response
func (*GetLeagueSeasonByUUIDDefault) WithStatusCode ¶
func (o *GetLeagueSeasonByUUIDDefault) WithStatusCode(code int) *GetLeagueSeasonByUUIDDefault
WithStatusCode adds the status to the get league season by UUID default response
func (*GetLeagueSeasonByUUIDDefault) WriteResponse ¶
func (o *GetLeagueSeasonByUUIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetLeagueSeasonByUUIDHandler ¶
type GetLeagueSeasonByUUIDHandler interface {
Handle(GetLeagueSeasonByUUIDParams) middleware.Responder
}
GetLeagueSeasonByUUIDHandler interface for that can handle valid get league season by UUID params
type GetLeagueSeasonByUUIDHandlerFunc ¶
type GetLeagueSeasonByUUIDHandlerFunc func(GetLeagueSeasonByUUIDParams) middleware.Responder
GetLeagueSeasonByUUIDHandlerFunc turns a function with the right signature into a get league season by UUID handler
func (GetLeagueSeasonByUUIDHandlerFunc) Handle ¶
func (fn GetLeagueSeasonByUUIDHandlerFunc) Handle(params GetLeagueSeasonByUUIDParams) middleware.Responder
Handle executing the request and returning a response
type GetLeagueSeasonByUUIDOK ¶
GetLeagueSeasonByUUIDOK 联赛赛季
swagger:response getLeagueSeasonByUuidOK
func NewGetLeagueSeasonByUUIDOK ¶
func NewGetLeagueSeasonByUUIDOK() *GetLeagueSeasonByUUIDOK
NewGetLeagueSeasonByUUIDOK creates GetLeagueSeasonByUUIDOK with default headers values
func (*GetLeagueSeasonByUUIDOK) SetPayload ¶
func (o *GetLeagueSeasonByUUIDOK) SetPayload(payload *models.Season)
SetPayload sets the payload to the get league season by Uuid o k response
func (*GetLeagueSeasonByUUIDOK) WithPayload ¶
func (o *GetLeagueSeasonByUUIDOK) WithPayload(payload *models.Season) *GetLeagueSeasonByUUIDOK
WithPayload adds the payload to the get league season by Uuid o k response
func (*GetLeagueSeasonByUUIDOK) WriteResponse ¶
func (o *GetLeagueSeasonByUUIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetLeagueSeasonByUUIDParams ¶
type GetLeagueSeasonByUUIDParams struct { // HTTP Request Object HTTPRequest *http.Request /*League season identity Required: true In: path */ SUUID string }
GetLeagueSeasonByUUIDParams contains all the bound params for the get league season by UUID operation typically these are obtained from a http.Request
swagger:parameters getLeagueSeasonByUUID
func NewGetLeagueSeasonByUUIDParams ¶
func NewGetLeagueSeasonByUUIDParams() GetLeagueSeasonByUUIDParams
NewGetLeagueSeasonByUUIDParams creates a new GetLeagueSeasonByUUIDParams object with the default values initialized.
func (*GetLeagueSeasonByUUIDParams) BindRequest ¶
func (o *GetLeagueSeasonByUUIDParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls
type GetLeagueSeasons ¶
type GetLeagueSeasons struct { Context *middleware.Context Handler GetLeagueSeasonsHandler }
GetLeagueSeasons swagger:route GET /leagues/{{UUID}}/seasons Season getLeagueSeasons
联赛赛季列表
返回系统支持的一系列联赛赛季信息, 仅是支持这样的操作,但是不必要, app不会用到
func NewGetLeagueSeasons ¶
func NewGetLeagueSeasons(ctx *middleware.Context, handler GetLeagueSeasonsHandler) *GetLeagueSeasons
NewGetLeagueSeasons creates a new http.Handler for the get league seasons operation
func (*GetLeagueSeasons) ServeHTTP ¶
func (o *GetLeagueSeasons) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetLeagueSeasonsDefault ¶
type GetLeagueSeasonsDefault struct { // In: body Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetLeagueSeasonsDefault Unexpected error
swagger:response getLeagueSeasonsDefault
func NewGetLeagueSeasonsDefault ¶
func NewGetLeagueSeasonsDefault(code int) *GetLeagueSeasonsDefault
NewGetLeagueSeasonsDefault creates GetLeagueSeasonsDefault with default headers values
func (*GetLeagueSeasonsDefault) SetPayload ¶
func (o *GetLeagueSeasonsDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get league seasons default response
func (*GetLeagueSeasonsDefault) SetStatusCode ¶
func (o *GetLeagueSeasonsDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get league seasons default response
func (*GetLeagueSeasonsDefault) WithPayload ¶
func (o *GetLeagueSeasonsDefault) WithPayload(payload *models.Error) *GetLeagueSeasonsDefault
WithPayload adds the payload to the get league seasons default response
func (*GetLeagueSeasonsDefault) WithStatusCode ¶
func (o *GetLeagueSeasonsDefault) WithStatusCode(code int) *GetLeagueSeasonsDefault
WithStatusCode adds the status to the get league seasons default response
func (*GetLeagueSeasonsDefault) WriteResponse ¶
func (o *GetLeagueSeasonsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetLeagueSeasonsHandler ¶
type GetLeagueSeasonsHandler interface {
Handle(GetLeagueSeasonsParams) middleware.Responder
}
GetLeagueSeasonsHandler interface for that can handle valid get league seasons params
type GetLeagueSeasonsHandlerFunc ¶
type GetLeagueSeasonsHandlerFunc func(GetLeagueSeasonsParams) middleware.Responder
GetLeagueSeasonsHandlerFunc turns a function with the right signature into a get league seasons handler
func (GetLeagueSeasonsHandlerFunc) Handle ¶
func (fn GetLeagueSeasonsHandlerFunc) Handle(params GetLeagueSeasonsParams) middleware.Responder
Handle executing the request and returning a response
type GetLeagueSeasonsOK ¶
GetLeagueSeasonsOK 联赛赛季列表
swagger:response getLeagueSeasonsOK
func NewGetLeagueSeasonsOK ¶
func NewGetLeagueSeasonsOK() *GetLeagueSeasonsOK
NewGetLeagueSeasonsOK creates GetLeagueSeasonsOK with default headers values
func (*GetLeagueSeasonsOK) SetPayload ¶
func (o *GetLeagueSeasonsOK) SetPayload(payload []*models.Season)
SetPayload sets the payload to the get league seasons o k response
func (*GetLeagueSeasonsOK) WithPayload ¶
func (o *GetLeagueSeasonsOK) WithPayload(payload []*models.Season) *GetLeagueSeasonsOK
WithPayload adds the payload to the get league seasons o k response
func (*GetLeagueSeasonsOK) WriteResponse ¶
func (o *GetLeagueSeasonsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetLeagueSeasonsParams ¶
type GetLeagueSeasonsParams struct { // HTTP Request Object HTTPRequest *http.Request /*League identity Required: true In: path */ UUID string }
GetLeagueSeasonsParams contains all the bound params for the get league seasons operation typically these are obtained from a http.Request
swagger:parameters getLeagueSeasons
func NewGetLeagueSeasonsParams ¶
func NewGetLeagueSeasonsParams() GetLeagueSeasonsParams
NewGetLeagueSeasonsParams creates a new GetLeagueSeasonsParams object with the default values initialized.
func (*GetLeagueSeasonsParams) BindRequest ¶
func (o *GetLeagueSeasonsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls
type PostLeagueSeason ¶
type PostLeagueSeason struct { Context *middleware.Context Handler PostLeagueSeasonHandler }
PostLeagueSeason swagger:route POST /leagues/{{UUID}}/seasons Season postLeagueSeason
新建联赛赛季
根据参数,新建联赛赛季
func NewPostLeagueSeason ¶
func NewPostLeagueSeason(ctx *middleware.Context, handler PostLeagueSeasonHandler) *PostLeagueSeason
NewPostLeagueSeason creates a new http.Handler for the post league season operation
func (*PostLeagueSeason) ServeHTTP ¶
func (o *PostLeagueSeason) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostLeagueSeasonCreated ¶
PostLeagueSeasonCreated 新增了一条联赛赛季信息
swagger:response postLeagueSeasonCreated
func NewPostLeagueSeasonCreated ¶
func NewPostLeagueSeasonCreated() *PostLeagueSeasonCreated
NewPostLeagueSeasonCreated creates PostLeagueSeasonCreated with default headers values
func (*PostLeagueSeasonCreated) SetPayload ¶
func (o *PostLeagueSeasonCreated) SetPayload(payload *models.Season)
SetPayload sets the payload to the post league season created response
func (*PostLeagueSeasonCreated) WithPayload ¶
func (o *PostLeagueSeasonCreated) WithPayload(payload *models.Season) *PostLeagueSeasonCreated
WithPayload adds the payload to the post league season created response
func (*PostLeagueSeasonCreated) WriteResponse ¶
func (o *PostLeagueSeasonCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostLeagueSeasonDefault ¶
type PostLeagueSeasonDefault struct { // In: body Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
PostLeagueSeasonDefault unexpected error
swagger:response postLeagueSeasonDefault
func NewPostLeagueSeasonDefault ¶
func NewPostLeagueSeasonDefault(code int) *PostLeagueSeasonDefault
NewPostLeagueSeasonDefault creates PostLeagueSeasonDefault with default headers values
func (*PostLeagueSeasonDefault) SetPayload ¶
func (o *PostLeagueSeasonDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the post league season default response
func (*PostLeagueSeasonDefault) SetStatusCode ¶
func (o *PostLeagueSeasonDefault) SetStatusCode(code int)
SetStatusCode sets the status to the post league season default response
func (*PostLeagueSeasonDefault) WithPayload ¶
func (o *PostLeagueSeasonDefault) WithPayload(payload *models.Error) *PostLeagueSeasonDefault
WithPayload adds the payload to the post league season default response
func (*PostLeagueSeasonDefault) WithStatusCode ¶
func (o *PostLeagueSeasonDefault) WithStatusCode(code int) *PostLeagueSeasonDefault
WithStatusCode adds the status to the post league season default response
func (*PostLeagueSeasonDefault) WriteResponse ¶
func (o *PostLeagueSeasonDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostLeagueSeasonHandler ¶
type PostLeagueSeasonHandler interface {
Handle(PostLeagueSeasonParams) middleware.Responder
}
PostLeagueSeasonHandler interface for that can handle valid post league season params
type PostLeagueSeasonHandlerFunc ¶
type PostLeagueSeasonHandlerFunc func(PostLeagueSeasonParams) middleware.Responder
PostLeagueSeasonHandlerFunc turns a function with the right signature into a post league season handler
func (PostLeagueSeasonHandlerFunc) Handle ¶
func (fn PostLeagueSeasonHandlerFunc) Handle(params PostLeagueSeasonParams) middleware.Responder
Handle executing the request and returning a response
type PostLeagueSeasonParams ¶
type PostLeagueSeasonParams struct { // HTTP Request Object HTTPRequest *http.Request /*League identity Required: true In: path */ UUID string /*整个联赛赛季信息 Required: true In: body */ Season *models.Season }
PostLeagueSeasonParams contains all the bound params for the post league season operation typically these are obtained from a http.Request
swagger:parameters postLeagueSeason
func NewPostLeagueSeasonParams ¶
func NewPostLeagueSeasonParams() PostLeagueSeasonParams
NewPostLeagueSeasonParams creates a new PostLeagueSeasonParams object with the default values initialized.
func (*PostLeagueSeasonParams) BindRequest ¶
func (o *PostLeagueSeasonParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls
type PutLeagueSeasonByUUID ¶
type PutLeagueSeasonByUUID struct { Context *middleware.Context Handler PutLeagueSeasonByUUIDHandler }
PutLeagueSeasonByUUID swagger:route PUT /seasons/{SUUID} Season putLeagueSeasonByUuid
更新联赛赛季
根据参数,更新联赛赛季
func NewPutLeagueSeasonByUUID ¶
func NewPutLeagueSeasonByUUID(ctx *middleware.Context, handler PutLeagueSeasonByUUIDHandler) *PutLeagueSeasonByUUID
NewPutLeagueSeasonByUUID creates a new http.Handler for the put league season by UUID operation
func (*PutLeagueSeasonByUUID) ServeHTTP ¶
func (o *PutLeagueSeasonByUUID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PutLeagueSeasonByUUIDDefault ¶
type PutLeagueSeasonByUUIDDefault struct { // In: body Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
PutLeagueSeasonByUUIDDefault unexpected error
swagger:response putLeagueSeasonByUuidDefault
func NewPutLeagueSeasonByUUIDDefault ¶
func NewPutLeagueSeasonByUUIDDefault(code int) *PutLeagueSeasonByUUIDDefault
NewPutLeagueSeasonByUUIDDefault creates PutLeagueSeasonByUUIDDefault with default headers values
func (*PutLeagueSeasonByUUIDDefault) SetPayload ¶
func (o *PutLeagueSeasonByUUIDDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the put league season by UUID default response
func (*PutLeagueSeasonByUUIDDefault) SetStatusCode ¶
func (o *PutLeagueSeasonByUUIDDefault) SetStatusCode(code int)
SetStatusCode sets the status to the put league season by UUID default response
func (*PutLeagueSeasonByUUIDDefault) WithPayload ¶
func (o *PutLeagueSeasonByUUIDDefault) WithPayload(payload *models.Error) *PutLeagueSeasonByUUIDDefault
WithPayload adds the payload to the put league season by UUID default response
func (*PutLeagueSeasonByUUIDDefault) WithStatusCode ¶
func (o *PutLeagueSeasonByUUIDDefault) WithStatusCode(code int) *PutLeagueSeasonByUUIDDefault
WithStatusCode adds the status to the put league season by UUID default response
func (*PutLeagueSeasonByUUIDDefault) WriteResponse ¶
func (o *PutLeagueSeasonByUUIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutLeagueSeasonByUUIDHandler ¶
type PutLeagueSeasonByUUIDHandler interface {
Handle(PutLeagueSeasonByUUIDParams) middleware.Responder
}
PutLeagueSeasonByUUIDHandler interface for that can handle valid put league season by UUID params
type PutLeagueSeasonByUUIDHandlerFunc ¶
type PutLeagueSeasonByUUIDHandlerFunc func(PutLeagueSeasonByUUIDParams) middleware.Responder
PutLeagueSeasonByUUIDHandlerFunc turns a function with the right signature into a put league season by UUID handler
func (PutLeagueSeasonByUUIDHandlerFunc) Handle ¶
func (fn PutLeagueSeasonByUUIDHandlerFunc) Handle(params PutLeagueSeasonByUUIDParams) middleware.Responder
Handle executing the request and returning a response
type PutLeagueSeasonByUUIDOK ¶
PutLeagueSeasonByUUIDOK 更新了一条联赛赛季信息
swagger:response putLeagueSeasonByUuidOK
func NewPutLeagueSeasonByUUIDOK ¶
func NewPutLeagueSeasonByUUIDOK() *PutLeagueSeasonByUUIDOK
NewPutLeagueSeasonByUUIDOK creates PutLeagueSeasonByUUIDOK with default headers values
func (*PutLeagueSeasonByUUIDOK) SetPayload ¶
func (o *PutLeagueSeasonByUUIDOK) SetPayload(payload *models.Season)
SetPayload sets the payload to the put league season by Uuid o k response
func (*PutLeagueSeasonByUUIDOK) WithPayload ¶
func (o *PutLeagueSeasonByUUIDOK) WithPayload(payload *models.Season) *PutLeagueSeasonByUUIDOK
WithPayload adds the payload to the put league season by Uuid o k response
func (*PutLeagueSeasonByUUIDOK) WriteResponse ¶
func (o *PutLeagueSeasonByUUIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutLeagueSeasonByUUIDParams ¶
type PutLeagueSeasonByUUIDParams struct { // HTTP Request Object HTTPRequest *http.Request /*League season identity Required: true In: path */ SUUID string /*整个联赛赛季信息 Required: true In: body */ Season *models.Season }
PutLeagueSeasonByUUIDParams contains all the bound params for the put league season by UUID operation typically these are obtained from a http.Request
swagger:parameters putLeagueSeasonByUUID
func NewPutLeagueSeasonByUUIDParams ¶
func NewPutLeagueSeasonByUUIDParams() PutLeagueSeasonByUUIDParams
NewPutLeagueSeasonByUUIDParams creates a new PutLeagueSeasonByUUIDParams object with the default values initialized.
func (*PutLeagueSeasonByUUIDParams) BindRequest ¶
func (o *PutLeagueSeasonByUUIDParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls
Source Files ¶
- delete_league_season_by_uuid.go
- delete_league_season_by_uuid_parameters.go
- delete_league_season_by_uuid_responses.go
- get_league_season_by_uuid.go
- get_league_season_by_uuid_parameters.go
- get_league_season_by_uuid_responses.go
- get_league_seasons.go
- get_league_seasons_parameters.go
- get_league_seasons_responses.go
- post_league_season.go
- post_league_season_parameters.go
- post_league_season_responses.go
- put_league_season_by_uuid.go
- put_league_season_by_uuid_parameters.go
- put_league_season_by_uuid_responses.go