season

package
v0.0.0-...-b618969 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

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

WithPayload adds the payload to the delete league season by UUID default response

func (*DeleteLeagueSeasonByUUIDDefault) WithStatusCode

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

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

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

WithPayload adds the payload to the get league season by UUID default response

func (*GetLeagueSeasonByUUIDDefault) WithStatusCode

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

Handle executing the request and returning a response

type GetLeagueSeasonByUUIDOK

type GetLeagueSeasonByUUIDOK struct {

	// In: body
	Payload *models.Season `json:"body,omitempty"`
}

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

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

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

Handle executing the request and returning a response

type GetLeagueSeasonsOK

type GetLeagueSeasonsOK struct {

	// In: body
	Payload []*models.Season `json:"body,omitempty"`
}

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

type PostLeagueSeasonCreated struct {

	// In: body
	Payload *models.Season `json:"body,omitempty"`
}

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

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

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

WithPayload adds the payload to the put league season by UUID default response

func (*PutLeagueSeasonByUUIDDefault) WithStatusCode

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

Handle executing the request and returning a response

type PutLeagueSeasonByUUIDOK

type PutLeagueSeasonByUUIDOK struct {

	// In: body
	Payload *models.Season `json:"body,omitempty"`
}

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

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL