Documentation
¶
Index ¶
- type PostGamers
- type PostGamersCreated
- type PostGamersDefault
- func (o *PostGamersDefault) SetPayload(payload *models.Error)
- func (o *PostGamersDefault) SetStatusCode(code int)
- func (o *PostGamersDefault) WithPayload(payload *models.Error) *PostGamersDefault
- func (o *PostGamersDefault) WithStatusCode(code int) *PostGamersDefault
- func (o *PostGamersDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostGamersHandler
- type PostGamersHandlerFunc
- type PostGamersParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostGamers ¶
type PostGamers struct { Context *middleware.Context Handler PostGamersHandler }
PostGamers swagger:route POST /gamers Gamer postGamers
新增比赛方
新增比赛方
func NewPostGamers ¶
func NewPostGamers(ctx *middleware.Context, handler PostGamersHandler) *PostGamers
NewPostGamers creates a new http.Handler for the post gamers operation
func (*PostGamers) ServeHTTP ¶
func (o *PostGamers) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostGamersCreated ¶
PostGamersCreated 新增比赛方成功
swagger:response postGamersCreated
func NewPostGamersCreated ¶
func NewPostGamersCreated() *PostGamersCreated
NewPostGamersCreated creates PostGamersCreated with default headers values
func (*PostGamersCreated) SetPayload ¶
func (o *PostGamersCreated) SetPayload(payload []*models.Gamer)
SetPayload sets the payload to the post gamers created response
func (*PostGamersCreated) WithPayload ¶
func (o *PostGamersCreated) WithPayload(payload []*models.Gamer) *PostGamersCreated
WithPayload adds the payload to the post gamers created response
func (*PostGamersCreated) WriteResponse ¶
func (o *PostGamersCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostGamersDefault ¶
type PostGamersDefault struct { // In: body Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
PostGamersDefault Unexpected error
swagger:response postGamersDefault
func NewPostGamersDefault ¶
func NewPostGamersDefault(code int) *PostGamersDefault
NewPostGamersDefault creates PostGamersDefault with default headers values
func (*PostGamersDefault) SetPayload ¶
func (o *PostGamersDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the post gamers default response
func (*PostGamersDefault) SetStatusCode ¶
func (o *PostGamersDefault) SetStatusCode(code int)
SetStatusCode sets the status to the post gamers default response
func (*PostGamersDefault) WithPayload ¶
func (o *PostGamersDefault) WithPayload(payload *models.Error) *PostGamersDefault
WithPayload adds the payload to the post gamers default response
func (*PostGamersDefault) WithStatusCode ¶
func (o *PostGamersDefault) WithStatusCode(code int) *PostGamersDefault
WithStatusCode adds the status to the post gamers default response
func (*PostGamersDefault) WriteResponse ¶
func (o *PostGamersDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostGamersHandler ¶
type PostGamersHandler interface {
Handle(PostGamersParams) middleware.Responder
}
PostGamersHandler interface for that can handle valid post gamers params
type PostGamersHandlerFunc ¶
type PostGamersHandlerFunc func(PostGamersParams) middleware.Responder
PostGamersHandlerFunc turns a function with the right signature into a post gamers handler
func (PostGamersHandlerFunc) Handle ¶
func (fn PostGamersHandlerFunc) Handle(params PostGamersParams) middleware.Responder
Handle executing the request and returning a response
type PostGamersParams ¶
type PostGamersParams struct { // HTTP Request Object HTTPRequest *http.Request /*新增比赛方的信息 Required: true In: body */ Gamer []*models.Gamer }
PostGamersParams contains all the bound params for the post gamers operation typically these are obtained from a http.Request
swagger:parameters postGamers
func NewPostGamersParams ¶
func NewPostGamersParams() PostGamersParams
NewPostGamersParams creates a new PostGamersParams object with the default values initialized.
func (*PostGamersParams) BindRequest ¶
func (o *PostGamersParams) 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