league

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 DeleteLeagueByUUID

type DeleteLeagueByUUID struct {
	Context *middleware.Context
	Handler DeleteLeagueByUUIDHandler
}

DeleteLeagueByUUID swagger:route DELETE /leagues/{UUID} League deleteLeagueByUuid

删除特定联赛信息

删除特定联赛信息

func NewDeleteLeagueByUUID

func NewDeleteLeagueByUUID(ctx *middleware.Context, handler DeleteLeagueByUUIDHandler) *DeleteLeagueByUUID

NewDeleteLeagueByUUID creates a new http.Handler for the delete league by UUID operation

func (*DeleteLeagueByUUID) ServeHTTP

func (o *DeleteLeagueByUUID) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteLeagueByUUIDDefault

type DeleteLeagueByUUIDDefault struct {

	// In: body
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

DeleteLeagueByUUIDDefault unexpected error

swagger:response deleteLeagueByUuidDefault

func NewDeleteLeagueByUUIDDefault

func NewDeleteLeagueByUUIDDefault(code int) *DeleteLeagueByUUIDDefault

NewDeleteLeagueByUUIDDefault creates DeleteLeagueByUUIDDefault with default headers values

func (*DeleteLeagueByUUIDDefault) SetPayload

func (o *DeleteLeagueByUUIDDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the delete league by UUID default response

func (*DeleteLeagueByUUIDDefault) SetStatusCode

func (o *DeleteLeagueByUUIDDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete league by UUID default response

func (*DeleteLeagueByUUIDDefault) WithPayload

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

func (*DeleteLeagueByUUIDDefault) WithStatusCode

func (o *DeleteLeagueByUUIDDefault) WithStatusCode(code int) *DeleteLeagueByUUIDDefault

WithStatusCode adds the status to the delete league by UUID default response

func (*DeleteLeagueByUUIDDefault) WriteResponse

func (o *DeleteLeagueByUUIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteLeagueByUUIDHandler

type DeleteLeagueByUUIDHandler interface {
	Handle(DeleteLeagueByUUIDParams) middleware.Responder
}

DeleteLeagueByUUIDHandler interface for that can handle valid delete league by UUID params

type DeleteLeagueByUUIDHandlerFunc

type DeleteLeagueByUUIDHandlerFunc func(DeleteLeagueByUUIDParams) middleware.Responder

DeleteLeagueByUUIDHandlerFunc turns a function with the right signature into a delete league by UUID handler

func (DeleteLeagueByUUIDHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteLeagueByUUIDOK

type DeleteLeagueByUUIDOK struct {
}

DeleteLeagueByUUIDOK 删除了一条联赛信息

swagger:response deleteLeagueByUuidOK

func NewDeleteLeagueByUUIDOK

func NewDeleteLeagueByUUIDOK() *DeleteLeagueByUUIDOK

NewDeleteLeagueByUUIDOK creates DeleteLeagueByUUIDOK with default headers values

func (*DeleteLeagueByUUIDOK) WriteResponse

func (o *DeleteLeagueByUUIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteLeagueByUUIDParams

type DeleteLeagueByUUIDParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*League identity
	  Required: true
	  In: path
	*/
	UUID string
}

DeleteLeagueByUUIDParams contains all the bound params for the delete league by UUID operation typically these are obtained from a http.Request

swagger:parameters deleteLeagueByUUID

func NewDeleteLeagueByUUIDParams

func NewDeleteLeagueByUUIDParams() DeleteLeagueByUUIDParams

NewDeleteLeagueByUUIDParams creates a new DeleteLeagueByUUIDParams object with the default values initialized.

func (*DeleteLeagueByUUIDParams) 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 GetLeagueByUUID

type GetLeagueByUUID struct {
	Context *middleware.Context
	Handler GetLeagueByUUIDHandler
}

GetLeagueByUUID swagger:route GET /leagues/{UUID} League getLeagueByUuid

获取特定联赛信息

获取特定联赛信息,包括名称、logo等;如果UUID不存在,返回错误

func NewGetLeagueByUUID

func NewGetLeagueByUUID(ctx *middleware.Context, handler GetLeagueByUUIDHandler) *GetLeagueByUUID

NewGetLeagueByUUID creates a new http.Handler for the get league by UUID operation

func (*GetLeagueByUUID) ServeHTTP

func (o *GetLeagueByUUID) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetLeagueByUUIDDefault

type GetLeagueByUUIDDefault struct {

	// In: body
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetLeagueByUUIDDefault unexpected error

swagger:response getLeagueByUuidDefault

func NewGetLeagueByUUIDDefault

func NewGetLeagueByUUIDDefault(code int) *GetLeagueByUUIDDefault

NewGetLeagueByUUIDDefault creates GetLeagueByUUIDDefault with default headers values

func (*GetLeagueByUUIDDefault) SetPayload

func (o *GetLeagueByUUIDDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get league by UUID default response

func (*GetLeagueByUUIDDefault) SetStatusCode

func (o *GetLeagueByUUIDDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get league by UUID default response

func (*GetLeagueByUUIDDefault) WithPayload

func (o *GetLeagueByUUIDDefault) WithPayload(payload *models.Error) *GetLeagueByUUIDDefault

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

func (*GetLeagueByUUIDDefault) WithStatusCode

func (o *GetLeagueByUUIDDefault) WithStatusCode(code int) *GetLeagueByUUIDDefault

WithStatusCode adds the status to the get league by UUID default response

func (*GetLeagueByUUIDDefault) WriteResponse

func (o *GetLeagueByUUIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetLeagueByUUIDHandler

type GetLeagueByUUIDHandler interface {
	Handle(GetLeagueByUUIDParams) middleware.Responder
}

GetLeagueByUUIDHandler interface for that can handle valid get league by UUID params

type GetLeagueByUUIDHandlerFunc

type GetLeagueByUUIDHandlerFunc func(GetLeagueByUUIDParams) middleware.Responder

GetLeagueByUUIDHandlerFunc turns a function with the right signature into a get league by UUID handler

func (GetLeagueByUUIDHandlerFunc) Handle

Handle executing the request and returning a response

type GetLeagueByUUIDOK

type GetLeagueByUUIDOK struct {

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

GetLeagueByUUIDOK Individual League contents

swagger:response getLeagueByUuidOK

func NewGetLeagueByUUIDOK

func NewGetLeagueByUUIDOK() *GetLeagueByUUIDOK

NewGetLeagueByUUIDOK creates GetLeagueByUUIDOK with default headers values

func (*GetLeagueByUUIDOK) SetPayload

func (o *GetLeagueByUUIDOK) SetPayload(payload *models.League)

SetPayload sets the payload to the get league by Uuid o k response

func (*GetLeagueByUUIDOK) WithPayload

func (o *GetLeagueByUUIDOK) WithPayload(payload *models.League) *GetLeagueByUUIDOK

WithPayload adds the payload to the get league by Uuid o k response

func (*GetLeagueByUUIDOK) WriteResponse

func (o *GetLeagueByUUIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetLeagueByUUIDParams

type GetLeagueByUUIDParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*League identity
	  Required: true
	  In: path
	*/
	UUID string
}

GetLeagueByUUIDParams contains all the bound params for the get league by UUID operation typically these are obtained from a http.Request

swagger:parameters getLeagueByUUID

func NewGetLeagueByUUIDParams

func NewGetLeagueByUUIDParams() GetLeagueByUUIDParams

NewGetLeagueByUUIDParams creates a new GetLeagueByUUIDParams object with the default values initialized.

func (*GetLeagueByUUIDParams) BindRequest

func (o *GetLeagueByUUIDParams) 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 GetLeagues

type GetLeagues struct {
	Context *middleware.Context
	Handler GetLeaguesHandler
}

GetLeagues swagger:route GET /leagues League getLeagues

联赛列表

Leagues返回系统支持的一系列联赛信息, 包括联赛名称,联赛logo等等

func NewGetLeagues

func NewGetLeagues(ctx *middleware.Context, handler GetLeaguesHandler) *GetLeagues

NewGetLeagues creates a new http.Handler for the get leagues operation

func (*GetLeagues) ServeHTTP

func (o *GetLeagues) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetLeaguesDefault

type GetLeaguesDefault struct {

	// In: body
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetLeaguesDefault Unexpected error

swagger:response getLeaguesDefault

func NewGetLeaguesDefault

func NewGetLeaguesDefault(code int) *GetLeaguesDefault

NewGetLeaguesDefault creates GetLeaguesDefault with default headers values

func (*GetLeaguesDefault) SetPayload

func (o *GetLeaguesDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get leagues default response

func (*GetLeaguesDefault) SetStatusCode

func (o *GetLeaguesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get leagues default response

func (*GetLeaguesDefault) WithPayload

func (o *GetLeaguesDefault) WithPayload(payload *models.Error) *GetLeaguesDefault

WithPayload adds the payload to the get leagues default response

func (*GetLeaguesDefault) WithStatusCode

func (o *GetLeaguesDefault) WithStatusCode(code int) *GetLeaguesDefault

WithStatusCode adds the status to the get leagues default response

func (*GetLeaguesDefault) WriteResponse

func (o *GetLeaguesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetLeaguesHandler

type GetLeaguesHandler interface {
	Handle(GetLeaguesParams) middleware.Responder
}

GetLeaguesHandler interface for that can handle valid get leagues params

type GetLeaguesHandlerFunc

type GetLeaguesHandlerFunc func(GetLeaguesParams) middleware.Responder

GetLeaguesHandlerFunc turns a function with the right signature into a get leagues handler

func (GetLeaguesHandlerFunc) Handle

Handle executing the request and returning a response

type GetLeaguesOK

type GetLeaguesOK struct {

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

GetLeaguesOK 联赛列表

swagger:response getLeaguesOK

func NewGetLeaguesOK

func NewGetLeaguesOK() *GetLeaguesOK

NewGetLeaguesOK creates GetLeaguesOK with default headers values

func (*GetLeaguesOK) SetPayload

func (o *GetLeaguesOK) SetPayload(payload []*models.League)

SetPayload sets the payload to the get leagues o k response

func (*GetLeaguesOK) WithPayload

func (o *GetLeaguesOK) WithPayload(payload []*models.League) *GetLeaguesOK

WithPayload adds the payload to the get leagues o k response

func (*GetLeaguesOK) WriteResponse

func (o *GetLeaguesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetLeaguesParams

type GetLeaguesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request
}

GetLeaguesParams contains all the bound params for the get leagues operation typically these are obtained from a http.Request

swagger:parameters getLeagues

func NewGetLeaguesParams

func NewGetLeaguesParams() GetLeaguesParams

NewGetLeaguesParams creates a new GetLeaguesParams object with the default values initialized.

func (*GetLeaguesParams) BindRequest

func (o *GetLeaguesParams) 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 PostLeagues

type PostLeagues struct {
	Context *middleware.Context
	Handler PostLeaguesHandler
}

PostLeagues swagger:route POST /leagues League postLeagues

新建联赛

根据参数,新建联赛

func NewPostLeagues

func NewPostLeagues(ctx *middleware.Context, handler PostLeaguesHandler) *PostLeagues

NewPostLeagues creates a new http.Handler for the post leagues operation

func (*PostLeagues) ServeHTTP

func (o *PostLeagues) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type PostLeaguesCreated

type PostLeaguesCreated struct {

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

PostLeaguesCreated 新增了一条联赛信息

swagger:response postLeaguesCreated

func NewPostLeaguesCreated

func NewPostLeaguesCreated() *PostLeaguesCreated

NewPostLeaguesCreated creates PostLeaguesCreated with default headers values

func (*PostLeaguesCreated) SetPayload

func (o *PostLeaguesCreated) SetPayload(payload *models.League)

SetPayload sets the payload to the post leagues created response

func (*PostLeaguesCreated) WithPayload

func (o *PostLeaguesCreated) WithPayload(payload *models.League) *PostLeaguesCreated

WithPayload adds the payload to the post leagues created response

func (*PostLeaguesCreated) WriteResponse

func (o *PostLeaguesCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostLeaguesDefault

type PostLeaguesDefault struct {

	// In: body
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

PostLeaguesDefault unexpected error

swagger:response postLeaguesDefault

func NewPostLeaguesDefault

func NewPostLeaguesDefault(code int) *PostLeaguesDefault

NewPostLeaguesDefault creates PostLeaguesDefault with default headers values

func (*PostLeaguesDefault) SetPayload

func (o *PostLeaguesDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the post leagues default response

func (*PostLeaguesDefault) SetStatusCode

func (o *PostLeaguesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the post leagues default response

func (*PostLeaguesDefault) WithPayload

func (o *PostLeaguesDefault) WithPayload(payload *models.Error) *PostLeaguesDefault

WithPayload adds the payload to the post leagues default response

func (*PostLeaguesDefault) WithStatusCode

func (o *PostLeaguesDefault) WithStatusCode(code int) *PostLeaguesDefault

WithStatusCode adds the status to the post leagues default response

func (*PostLeaguesDefault) WriteResponse

func (o *PostLeaguesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostLeaguesHandler

type PostLeaguesHandler interface {
	Handle(PostLeaguesParams) middleware.Responder
}

PostLeaguesHandler interface for that can handle valid post leagues params

type PostLeaguesHandlerFunc

type PostLeaguesHandlerFunc func(PostLeaguesParams) middleware.Responder

PostLeaguesHandlerFunc turns a function with the right signature into a post leagues handler

func (PostLeaguesHandlerFunc) Handle

Handle executing the request and returning a response

type PostLeaguesParams

type PostLeaguesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*整个联赛信息
	  Required: true
	  In: body
	*/
	League *models.League
}

PostLeaguesParams contains all the bound params for the post leagues operation typically these are obtained from a http.Request

swagger:parameters postLeagues

func NewPostLeaguesParams

func NewPostLeaguesParams() PostLeaguesParams

NewPostLeaguesParams creates a new PostLeaguesParams object with the default values initialized.

func (*PostLeaguesParams) BindRequest

func (o *PostLeaguesParams) 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 PutLeagueByUUID

type PutLeagueByUUID struct {
	Context *middleware.Context
	Handler PutLeagueByUUIDHandler
}

PutLeagueByUUID swagger:route PUT /leagues/{UUID} League putLeagueByUuid

更新特定联赛信息

更新联赛信息, 全额修改

func NewPutLeagueByUUID

func NewPutLeagueByUUID(ctx *middleware.Context, handler PutLeagueByUUIDHandler) *PutLeagueByUUID

NewPutLeagueByUUID creates a new http.Handler for the put league by UUID operation

func (*PutLeagueByUUID) ServeHTTP

func (o *PutLeagueByUUID) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type PutLeagueByUUIDDefault

type PutLeagueByUUIDDefault struct {

	// In: body
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

PutLeagueByUUIDDefault unexpected error

swagger:response putLeagueByUuidDefault

func NewPutLeagueByUUIDDefault

func NewPutLeagueByUUIDDefault(code int) *PutLeagueByUUIDDefault

NewPutLeagueByUUIDDefault creates PutLeagueByUUIDDefault with default headers values

func (*PutLeagueByUUIDDefault) SetPayload

func (o *PutLeagueByUUIDDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the put league by UUID default response

func (*PutLeagueByUUIDDefault) SetStatusCode

func (o *PutLeagueByUUIDDefault) SetStatusCode(code int)

SetStatusCode sets the status to the put league by UUID default response

func (*PutLeagueByUUIDDefault) WithPayload

func (o *PutLeagueByUUIDDefault) WithPayload(payload *models.Error) *PutLeagueByUUIDDefault

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

func (*PutLeagueByUUIDDefault) WithStatusCode

func (o *PutLeagueByUUIDDefault) WithStatusCode(code int) *PutLeagueByUUIDDefault

WithStatusCode adds the status to the put league by UUID default response

func (*PutLeagueByUUIDDefault) WriteResponse

func (o *PutLeagueByUUIDDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PutLeagueByUUIDHandler

type PutLeagueByUUIDHandler interface {
	Handle(PutLeagueByUUIDParams) middleware.Responder
}

PutLeagueByUUIDHandler interface for that can handle valid put league by UUID params

type PutLeagueByUUIDHandlerFunc

type PutLeagueByUUIDHandlerFunc func(PutLeagueByUUIDParams) middleware.Responder

PutLeagueByUUIDHandlerFunc turns a function with the right signature into a put league by UUID handler

func (PutLeagueByUUIDHandlerFunc) Handle

Handle executing the request and returning a response

type PutLeagueByUUIDOK

type PutLeagueByUUIDOK struct {

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

PutLeagueByUUIDOK 修改了一条联赛信息

swagger:response putLeagueByUuidOK

func NewPutLeagueByUUIDOK

func NewPutLeagueByUUIDOK() *PutLeagueByUUIDOK

NewPutLeagueByUUIDOK creates PutLeagueByUUIDOK with default headers values

func (*PutLeagueByUUIDOK) SetPayload

func (o *PutLeagueByUUIDOK) SetPayload(payload *models.League)

SetPayload sets the payload to the put league by Uuid o k response

func (*PutLeagueByUUIDOK) WithPayload

func (o *PutLeagueByUUIDOK) WithPayload(payload *models.League) *PutLeagueByUUIDOK

WithPayload adds the payload to the put league by Uuid o k response

func (*PutLeagueByUUIDOK) WriteResponse

func (o *PutLeagueByUUIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PutLeagueByUUIDParams

type PutLeagueByUUIDParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*League identity
	  Required: true
	  In: path
	*/
	UUID string
	/*整个联赛信息
	  Required: true
	  In: body
	*/
	League *models.League
}

PutLeagueByUUIDParams contains all the bound params for the put league by UUID operation typically these are obtained from a http.Request

swagger:parameters putLeagueByUUID

func NewPutLeagueByUUIDParams

func NewPutLeagueByUUIDParams() PutLeagueByUUIDParams

NewPutLeagueByUUIDParams creates a new PutLeagueByUUIDParams object with the default values initialized.

func (*PutLeagueByUUIDParams) BindRequest

func (o *PutLeagueByUUIDParams) 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

Jump to

Keyboard shortcuts

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