// Code generated by go-swagger; DO NOT EDIT. package admin // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "net/http" "github.com/go-openapi/runtime" ) // CreateAccountCreatedCode is the HTTP code returned for type CreateAccountCreated const CreateAccountCreatedCode int = 201 /* CreateAccountCreated created swagger:response createAccountCreated */ type CreateAccountCreated struct { /* In: Body */ Payload *CreateAccountCreatedBody `json:"body,omitempty"` } // NewCreateAccountCreated creates CreateAccountCreated with default headers values func NewCreateAccountCreated() *CreateAccountCreated { return &CreateAccountCreated{} } // WithPayload adds the payload to the create account created response func (o *CreateAccountCreated) WithPayload(payload *CreateAccountCreatedBody) *CreateAccountCreated { o.Payload = payload return o } // SetPayload sets the payload to the create account created response func (o *CreateAccountCreated) SetPayload(payload *CreateAccountCreatedBody) { o.Payload = payload } // WriteResponse to the client func (o *CreateAccountCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { rw.WriteHeader(201) if o.Payload != nil { payload := o.Payload if err := producer.Produce(rw, payload); err != nil { panic(err) // let the recovery middleware deal with this } } } // CreateAccountUnauthorizedCode is the HTTP code returned for type CreateAccountUnauthorized const CreateAccountUnauthorizedCode int = 401 /* CreateAccountUnauthorized unauthorized swagger:response createAccountUnauthorized */ type CreateAccountUnauthorized struct { } // NewCreateAccountUnauthorized creates CreateAccountUnauthorized with default headers values func NewCreateAccountUnauthorized() *CreateAccountUnauthorized { return &CreateAccountUnauthorized{} } // WriteResponse to the client func (o *CreateAccountUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses rw.WriteHeader(401) } // CreateAccountInternalServerErrorCode is the HTTP code returned for type CreateAccountInternalServerError const CreateAccountInternalServerErrorCode int = 500 /* CreateAccountInternalServerError internal server error swagger:response createAccountInternalServerError */ type CreateAccountInternalServerError struct { } // NewCreateAccountInternalServerError creates CreateAccountInternalServerError with default headers values func NewCreateAccountInternalServerError() *CreateAccountInternalServerError { return &CreateAccountInternalServerError{} } // WriteResponse to the client func (o *CreateAccountInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { rw.Header().Del(runtime.HeaderContentType) //Remove Content-Type on empty responses rw.WriteHeader(500) }