misc

package
v0.0.0-...-64063fb Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	OperationName string
	Response      interface{}
	Code          int
}

APIError wraps an error model and captures the status code

func NewAPIError

func NewAPIError(opName string, response interface{}, code int) APIError

NewAPIError creates a new API error

func (APIError) Error

func (a APIError) Error() string

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for misc API

func New

func New(transport client.Transport, formats strfmt.Registry) *Client

New creates a new misc API client.

func (*Client) DeleteInvitecodesID

func (a *Client) DeleteInvitecodesID(params *DeleteInvitecodesIDParams, authInfo client.AuthInfoWriter) (*DeleteInvitecodesIDOK, error)

删除邀请码

删除指定邀请码

func (*Client) GetCodes

func (a *Client) GetCodes(params *GetCodesParams, authInfo client.AuthInfoWriter) (*GetCodesOK, error)

获取分类信息码表

获取分类信息码表

func (*Client) GetDocs

func (a *Client) GetDocs(params *GetDocsParams, authInfo client.AuthInfoWriter) (*GetDocsOK, error)

获取静态文件列表

获取静态文件列表

func (*Client) GetInvitecodesID

func (a *Client) GetInvitecodesID(params *GetInvitecodesIDParams, authInfo client.AuthInfoWriter) (*GetInvitecodesIDOK, error)

查询邀请码

得到指定邀请码的具体信息

func (*Client) GetNotifications

func (a *Client) GetNotifications(params *GetNotificationsParams, authInfo client.AuthInfoWriter) (*GetNotificationsOK, error)

拉取通知

拉取通知

func (*Client) HeadEmailsName

func (a *Client) HeadEmailsName(params *HeadEmailsNameParams, authInfo client.AuthInfoWriter) (*HeadEmailsNameOK, error)

检查邮箱地址是否被用

检查邮箱地址是否被用

func (*Client) HeadPhonesName

func (a *Client) HeadPhonesName(params *HeadPhonesNameParams, authInfo client.AuthInfoWriter) (*HeadPhonesNameOK, error)

检查电话号码是否被用

检查电话号码是否被用

func (*Client) PostInvitecodes

func (a *Client) PostInvitecodes(params *PostInvitecodesParams, authInfo client.AuthInfoWriter) (*PostInvitecodesCreated, error)

生成邀请码

根据请求生成邀请码

func (*Client) PostInvites

func (a *Client) PostInvites(params *PostInvitesParams, authInfo client.AuthInfoWriter) (*PostInvitesOK, error)

邀请注册

通过邮件或电话邀请注册

func (*Client) PostSendmail

func (a *Client) PostSendmail(params *PostSendmailParams, authInfo client.AuthInfoWriter) (*PostSendmailOK, error)

发送邮件

发送邮件

func (*Client) PutInvitecodesID

func (a *Client) PutInvitecodesID(params *PutInvitecodesIDParams, authInfo client.AuthInfoWriter) (*PutInvitecodesIDOK, error)

更新邀请码

根据请求中指定要更新的属性对邀请码进行更新

func (*Client) PutNotificationsMarkasread

func (a *Client) PutNotificationsMarkasread(params *PutNotificationsMarkasreadParams, authInfo client.AuthInfoWriter) (*PutNotificationsMarkasreadOK, error)

更新通知为已读

更新通知为已读

func (*Client) SetTransport

func (a *Client) SetTransport(transport client.Transport)

SetTransport changes the transport on the client

type DeleteInvitecodesIDBadRequest

type DeleteInvitecodesIDBadRequest struct {
	Payload *models.Error
}

DeleteInvitecodesIDBadRequest

无效请求

func NewDeleteInvitecodesIDBadRequest

func NewDeleteInvitecodesIDBadRequest() *DeleteInvitecodesIDBadRequest

NewDeleteInvitecodesIDBadRequest creates a DeleteInvitecodesIDBadRequest with default headers values

func (*DeleteInvitecodesIDBadRequest) Error

type DeleteInvitecodesIDForbidden

type DeleteInvitecodesIDForbidden struct {
	Payload *models.Error
}

DeleteInvitecodesIDForbidden

无访问权限

func NewDeleteInvitecodesIDForbidden

func NewDeleteInvitecodesIDForbidden() *DeleteInvitecodesIDForbidden

NewDeleteInvitecodesIDForbidden creates a DeleteInvitecodesIDForbidden with default headers values

func (*DeleteInvitecodesIDForbidden) Error

type DeleteInvitecodesIDInternalServerError

type DeleteInvitecodesIDInternalServerError struct {
	Payload *models.Error
}

DeleteInvitecodesIDInternalServerError

服务端内部错误

func NewDeleteInvitecodesIDInternalServerError

func NewDeleteInvitecodesIDInternalServerError() *DeleteInvitecodesIDInternalServerError

NewDeleteInvitecodesIDInternalServerError creates a DeleteInvitecodesIDInternalServerError with default headers values

func (*DeleteInvitecodesIDInternalServerError) Error

type DeleteInvitecodesIDNotFound

type DeleteInvitecodesIDNotFound struct {
	Payload *models.Error
}

DeleteInvitecodesIDNotFound

没找到指定对象

func NewDeleteInvitecodesIDNotFound

func NewDeleteInvitecodesIDNotFound() *DeleteInvitecodesIDNotFound

NewDeleteInvitecodesIDNotFound creates a DeleteInvitecodesIDNotFound with default headers values

func (*DeleteInvitecodesIDNotFound) Error

type DeleteInvitecodesIDOK

type DeleteInvitecodesIDOK struct {
}

DeleteInvitecodesIDOK

成功删除邀请码

func NewDeleteInvitecodesIDOK

func NewDeleteInvitecodesIDOK() *DeleteInvitecodesIDOK

NewDeleteInvitecodesIDOK creates a DeleteInvitecodesIDOK with default headers values

func (*DeleteInvitecodesIDOK) Error

func (o *DeleteInvitecodesIDOK) Error() string

type DeleteInvitecodesIDParams

type DeleteInvitecodesIDParams struct {

	/*ID
	  邀请码ID

	*/
	ID int64
}

DeleteInvitecodesIDParams contains all the parameters to send to the API endpoint for the delete invitecodes ID operation typically these are written to a http.Request

func NewDeleteInvitecodesIDParams

func NewDeleteInvitecodesIDParams() *DeleteInvitecodesIDParams

NewDeleteInvitecodesIDParams creates a new DeleteInvitecodesIDParams object with the default values initialized.

func (*DeleteInvitecodesIDParams) WithID

WithID adds the id to the delete invitecodes ID params

func (*DeleteInvitecodesIDParams) WriteToRequest

func (o *DeleteInvitecodesIDParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteInvitecodesIDReader

type DeleteInvitecodesIDReader struct {
	// contains filtered or unexported fields
}

func (*DeleteInvitecodesIDReader) ReadResponse

func (o *DeleteInvitecodesIDReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

type DeleteInvitecodesIDUnauthorized

type DeleteInvitecodesIDUnauthorized struct {
	Payload *models.Error
}

DeleteInvitecodesIDUnauthorized

未认证

func NewDeleteInvitecodesIDUnauthorized

func NewDeleteInvitecodesIDUnauthorized() *DeleteInvitecodesIDUnauthorized

NewDeleteInvitecodesIDUnauthorized creates a DeleteInvitecodesIDUnauthorized with default headers values

func (*DeleteInvitecodesIDUnauthorized) Error

type GetCodesOK

type GetCodesOK struct {
	Payload []*models.Code
}

GetCodesOK

成功获取

func NewGetCodesOK

func NewGetCodesOK() *GetCodesOK

NewGetCodesOK creates a GetCodesOK with default headers values

func (*GetCodesOK) Error

func (o *GetCodesOK) Error() string

type GetCodesParams

type GetCodesParams struct {
}

GetCodesParams contains all the parameters to send to the API endpoint for the get codes operation typically these are written to a http.Request

func NewGetCodesParams

func NewGetCodesParams() *GetCodesParams

NewGetCodesParams creates a new GetCodesParams object with the default values initialized.

func (*GetCodesParams) WriteToRequest

func (o *GetCodesParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetCodesReader

type GetCodesReader struct {
	// contains filtered or unexported fields
}

func (*GetCodesReader) ReadResponse

func (o *GetCodesReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

type GetDocsOK

type GetDocsOK struct {
	Payload GetDocsOKBodyBody
}

GetDocsOK

成功获取

func NewGetDocsOK

func NewGetDocsOK() *GetDocsOK

NewGetDocsOK creates a GetDocsOK with default headers values

func (*GetDocsOK) Error

func (o *GetDocsOK) Error() string

type GetDocsOKBodyBody

type GetDocsOKBodyBody map[string]string

GetDocsOKBodyBody GetDocsOKBodyBody get docs o k body body

swagger:model GetDocsOKBodyBody

func (GetDocsOKBodyBody) Validate

func (o GetDocsOKBodyBody) Validate(formats strfmt.Registry) error

Validate validates this get docs o k body body

type GetDocsParams

type GetDocsParams struct {
}

GetDocsParams contains all the parameters to send to the API endpoint for the get docs operation typically these are written to a http.Request

func NewGetDocsParams

func NewGetDocsParams() *GetDocsParams

NewGetDocsParams creates a new GetDocsParams object with the default values initialized.

func (*GetDocsParams) WriteToRequest

func (o *GetDocsParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetDocsReader

type GetDocsReader struct {
	// contains filtered or unexported fields
}

func (*GetDocsReader) ReadResponse

func (o *GetDocsReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

type GetInvitecodesIDNotFound

type GetInvitecodesIDNotFound struct {
	Payload *models.Error
}

GetInvitecodesIDNotFound

没找到指定对象

func NewGetInvitecodesIDNotFound

func NewGetInvitecodesIDNotFound() *GetInvitecodesIDNotFound

NewGetInvitecodesIDNotFound creates a GetInvitecodesIDNotFound with default headers values

func (*GetInvitecodesIDNotFound) Error

func (o *GetInvitecodesIDNotFound) Error() string

type GetInvitecodesIDOK

type GetInvitecodesIDOK struct {
	Payload *models.InviteCode
}

GetInvitecodesIDOK

成功查询邀请码

func NewGetInvitecodesIDOK

func NewGetInvitecodesIDOK() *GetInvitecodesIDOK

NewGetInvitecodesIDOK creates a GetInvitecodesIDOK with default headers values

func (*GetInvitecodesIDOK) Error

func (o *GetInvitecodesIDOK) Error() string

type GetInvitecodesIDParams

type GetInvitecodesIDParams struct {

	/*ID
	  邀请码ID

	*/
	ID int64
}

GetInvitecodesIDParams contains all the parameters to send to the API endpoint for the get invitecodes ID operation typically these are written to a http.Request

func NewGetInvitecodesIDParams

func NewGetInvitecodesIDParams() *GetInvitecodesIDParams

NewGetInvitecodesIDParams creates a new GetInvitecodesIDParams object with the default values initialized.

func (*GetInvitecodesIDParams) WithID

WithID adds the id to the get invitecodes ID params

func (*GetInvitecodesIDParams) WriteToRequest

func (o *GetInvitecodesIDParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetInvitecodesIDReader

type GetInvitecodesIDReader struct {
	// contains filtered or unexported fields
}

func (*GetInvitecodesIDReader) ReadResponse

func (o *GetInvitecodesIDReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

type GetNotificationsOK

type GetNotificationsOK struct {
	Payload *models.NotificationPageableResult
}

GetNotificationsOK

通知列表

func NewGetNotificationsOK

func NewGetNotificationsOK() *GetNotificationsOK

NewGetNotificationsOK creates a GetNotificationsOK with default headers values

func (*GetNotificationsOK) Error

func (o *GetNotificationsOK) Error() string

type GetNotificationsParams

type GetNotificationsParams struct {

	/*Page
	  当前页码

	*/
	Page int64
	/*Pagesize
	  每页项数

	*/
	Pagesize int64
}

GetNotificationsParams contains all the parameters to send to the API endpoint for the get notifications operation typically these are written to a http.Request

func NewGetNotificationsParams

func NewGetNotificationsParams() *GetNotificationsParams

NewGetNotificationsParams creates a new GetNotificationsParams object with the default values initialized.

func (*GetNotificationsParams) WithPage

WithPage adds the page to the get notifications params

func (*GetNotificationsParams) WithPagesize

func (o *GetNotificationsParams) WithPagesize(pagesize int64) *GetNotificationsParams

WithPagesize adds the pagesize to the get notifications params

func (*GetNotificationsParams) WriteToRequest

func (o *GetNotificationsParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetNotificationsReader

type GetNotificationsReader struct {
	// contains filtered or unexported fields
}

func (*GetNotificationsReader) ReadResponse

func (o *GetNotificationsReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

type HeadEmailsNameNotFound

type HeadEmailsNameNotFound struct {
}

HeadEmailsNameNotFound

邮箱未被占用

func NewHeadEmailsNameNotFound

func NewHeadEmailsNameNotFound() *HeadEmailsNameNotFound

NewHeadEmailsNameNotFound creates a HeadEmailsNameNotFound with default headers values

func (*HeadEmailsNameNotFound) Error

func (o *HeadEmailsNameNotFound) Error() string

type HeadEmailsNameOK

type HeadEmailsNameOK struct {
}

HeadEmailsNameOK

邮箱已被占用

func NewHeadEmailsNameOK

func NewHeadEmailsNameOK() *HeadEmailsNameOK

NewHeadEmailsNameOK creates a HeadEmailsNameOK with default headers values

func (*HeadEmailsNameOK) Error

func (o *HeadEmailsNameOK) Error() string

type HeadEmailsNameParams

type HeadEmailsNameParams struct {

	/*Name
	  邮箱地址

	*/
	Name string
}

HeadEmailsNameParams contains all the parameters to send to the API endpoint for the head emails name operation typically these are written to a http.Request

func NewHeadEmailsNameParams

func NewHeadEmailsNameParams() *HeadEmailsNameParams

NewHeadEmailsNameParams creates a new HeadEmailsNameParams object with the default values initialized.

func (*HeadEmailsNameParams) WithName

WithName adds the name to the head emails name params

func (*HeadEmailsNameParams) WriteToRequest

func (o *HeadEmailsNameParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type HeadEmailsNameReader

type HeadEmailsNameReader struct {
	// contains filtered or unexported fields
}

func (*HeadEmailsNameReader) ReadResponse

func (o *HeadEmailsNameReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

type HeadPhonesNameNotFound

type HeadPhonesNameNotFound struct {
}

HeadPhonesNameNotFound

电话未被占用

func NewHeadPhonesNameNotFound

func NewHeadPhonesNameNotFound() *HeadPhonesNameNotFound

NewHeadPhonesNameNotFound creates a HeadPhonesNameNotFound with default headers values

func (*HeadPhonesNameNotFound) Error

func (o *HeadPhonesNameNotFound) Error() string

type HeadPhonesNameOK

type HeadPhonesNameOK struct {
}

HeadPhonesNameOK

电话已被占用

func NewHeadPhonesNameOK

func NewHeadPhonesNameOK() *HeadPhonesNameOK

NewHeadPhonesNameOK creates a HeadPhonesNameOK with default headers values

func (*HeadPhonesNameOK) Error

func (o *HeadPhonesNameOK) Error() string

type HeadPhonesNameParams

type HeadPhonesNameParams struct {

	/*Name
	  电话号码

	*/
	Name string
}

HeadPhonesNameParams contains all the parameters to send to the API endpoint for the head phones name operation typically these are written to a http.Request

func NewHeadPhonesNameParams

func NewHeadPhonesNameParams() *HeadPhonesNameParams

NewHeadPhonesNameParams creates a new HeadPhonesNameParams object with the default values initialized.

func (*HeadPhonesNameParams) WithName

WithName adds the name to the head phones name params

func (*HeadPhonesNameParams) WriteToRequest

func (o *HeadPhonesNameParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type HeadPhonesNameReader

type HeadPhonesNameReader struct {
	// contains filtered or unexported fields
}

func (*HeadPhonesNameReader) ReadResponse

func (o *HeadPhonesNameReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

type PostInvitecodesBadRequest

type PostInvitecodesBadRequest struct {
	Payload *models.Error
}

PostInvitecodesBadRequest

无效请求

func NewPostInvitecodesBadRequest

func NewPostInvitecodesBadRequest() *PostInvitecodesBadRequest

NewPostInvitecodesBadRequest creates a PostInvitecodesBadRequest with default headers values

func (*PostInvitecodesBadRequest) Error

func (o *PostInvitecodesBadRequest) Error() string

type PostInvitecodesCreated

type PostInvitecodesCreated struct {
	Payload *models.InviteCode
}

PostInvitecodesCreated

成功生成邀请码

func NewPostInvitecodesCreated

func NewPostInvitecodesCreated() *PostInvitecodesCreated

NewPostInvitecodesCreated creates a PostInvitecodesCreated with default headers values

func (*PostInvitecodesCreated) Error

func (o *PostInvitecodesCreated) Error() string

type PostInvitecodesForbidden

type PostInvitecodesForbidden struct {
	Payload *models.Error
}

PostInvitecodesForbidden

无访问权限

func NewPostInvitecodesForbidden

func NewPostInvitecodesForbidden() *PostInvitecodesForbidden

NewPostInvitecodesForbidden creates a PostInvitecodesForbidden with default headers values

func (*PostInvitecodesForbidden) Error

func (o *PostInvitecodesForbidden) Error() string

type PostInvitecodesInternalServerError

type PostInvitecodesInternalServerError struct {
	Payload *models.Error
}

PostInvitecodesInternalServerError

服务端内部错误

func NewPostInvitecodesInternalServerError

func NewPostInvitecodesInternalServerError() *PostInvitecodesInternalServerError

NewPostInvitecodesInternalServerError creates a PostInvitecodesInternalServerError with default headers values

func (*PostInvitecodesInternalServerError) Error

type PostInvitecodesParams

type PostInvitecodesParams struct {

	/*Body*/
	Body *models.CreateInviteCodeRequest
}

PostInvitecodesParams contains all the parameters to send to the API endpoint for the post invitecodes operation typically these are written to a http.Request

func NewPostInvitecodesParams

func NewPostInvitecodesParams() *PostInvitecodesParams

NewPostInvitecodesParams creates a new PostInvitecodesParams object with the default values initialized.

func (*PostInvitecodesParams) WithBody

WithBody adds the body to the post invitecodes params

func (*PostInvitecodesParams) WriteToRequest

func (o *PostInvitecodesParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostInvitecodesReader

type PostInvitecodesReader struct {
	// contains filtered or unexported fields
}

func (*PostInvitecodesReader) ReadResponse

func (o *PostInvitecodesReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

type PostInvitecodesUnauthorized

type PostInvitecodesUnauthorized struct {
	Payload *models.Error
}

PostInvitecodesUnauthorized

未认证

func NewPostInvitecodesUnauthorized

func NewPostInvitecodesUnauthorized() *PostInvitecodesUnauthorized

NewPostInvitecodesUnauthorized creates a PostInvitecodesUnauthorized with default headers values

func (*PostInvitecodesUnauthorized) Error

type PostInvitesBadRequest

type PostInvitesBadRequest struct {
	Payload *models.Error
}

PostInvitesBadRequest

无效请求

func NewPostInvitesBadRequest

func NewPostInvitesBadRequest() *PostInvitesBadRequest

NewPostInvitesBadRequest creates a PostInvitesBadRequest with default headers values

func (*PostInvitesBadRequest) Error

func (o *PostInvitesBadRequest) Error() string

type PostInvitesForbidden

type PostInvitesForbidden struct {
	Payload *models.Error
}

PostInvitesForbidden

无访问权限

func NewPostInvitesForbidden

func NewPostInvitesForbidden() *PostInvitesForbidden

NewPostInvitesForbidden creates a PostInvitesForbidden with default headers values

func (*PostInvitesForbidden) Error

func (o *PostInvitesForbidden) Error() string

type PostInvitesInternalServerError

type PostInvitesInternalServerError struct {
	Payload *models.Error
}

PostInvitesInternalServerError

服务端内部错误

func NewPostInvitesInternalServerError

func NewPostInvitesInternalServerError() *PostInvitesInternalServerError

NewPostInvitesInternalServerError creates a PostInvitesInternalServerError with default headers values

func (*PostInvitesInternalServerError) Error

type PostInvitesOK

type PostInvitesOK struct {
	Payload *models.InviteCode
}

PostInvitesOK

成功邀请

func NewPostInvitesOK

func NewPostInvitesOK() *PostInvitesOK

NewPostInvitesOK creates a PostInvitesOK with default headers values

func (*PostInvitesOK) Error

func (o *PostInvitesOK) Error() string

type PostInvitesParams

type PostInvitesParams struct {

	/*Body
	  邮件地址列表

	*/
	Body []string
}

PostInvitesParams contains all the parameters to send to the API endpoint for the post invites operation typically these are written to a http.Request

func NewPostInvitesParams

func NewPostInvitesParams() *PostInvitesParams

NewPostInvitesParams creates a new PostInvitesParams object with the default values initialized.

func (*PostInvitesParams) WithBody

func (o *PostInvitesParams) WithBody(body []string) *PostInvitesParams

WithBody adds the body to the post invites params

func (*PostInvitesParams) WriteToRequest

func (o *PostInvitesParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostInvitesReader

type PostInvitesReader struct {
	// contains filtered or unexported fields
}

func (*PostInvitesReader) ReadResponse

func (o *PostInvitesReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

type PostInvitesUnauthorized

type PostInvitesUnauthorized struct {
	Payload *models.Error
}

PostInvitesUnauthorized

未认证

func NewPostInvitesUnauthorized

func NewPostInvitesUnauthorized() *PostInvitesUnauthorized

NewPostInvitesUnauthorized creates a PostInvitesUnauthorized with default headers values

func (*PostInvitesUnauthorized) Error

func (o *PostInvitesUnauthorized) Error() string

type PostSendmailOK

type PostSendmailOK struct {
}

PostSendmailOK

成功发送

func NewPostSendmailOK

func NewPostSendmailOK() *PostSendmailOK

NewPostSendmailOK creates a PostSendmailOK with default headers values

func (*PostSendmailOK) Error

func (o *PostSendmailOK) Error() string

type PostSendmailParams

type PostSendmailParams struct {

	/*Body*/
	Body *models.SendMailRequest
}

PostSendmailParams contains all the parameters to send to the API endpoint for the post sendmail operation typically these are written to a http.Request

func NewPostSendmailParams

func NewPostSendmailParams() *PostSendmailParams

NewPostSendmailParams creates a new PostSendmailParams object with the default values initialized.

func (*PostSendmailParams) WithBody

WithBody adds the body to the post sendmail params

func (*PostSendmailParams) WriteToRequest

func (o *PostSendmailParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostSendmailReader

type PostSendmailReader struct {
	// contains filtered or unexported fields
}

func (*PostSendmailReader) ReadResponse

func (o *PostSendmailReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

type PutInvitecodesIDBadRequest

type PutInvitecodesIDBadRequest struct {
	Payload *models.Error
}

PutInvitecodesIDBadRequest

无效请求

func NewPutInvitecodesIDBadRequest

func NewPutInvitecodesIDBadRequest() *PutInvitecodesIDBadRequest

NewPutInvitecodesIDBadRequest creates a PutInvitecodesIDBadRequest with default headers values

func (*PutInvitecodesIDBadRequest) Error

type PutInvitecodesIDForbidden

type PutInvitecodesIDForbidden struct {
	Payload *models.Error
}

PutInvitecodesIDForbidden

无访问权限

func NewPutInvitecodesIDForbidden

func NewPutInvitecodesIDForbidden() *PutInvitecodesIDForbidden

NewPutInvitecodesIDForbidden creates a PutInvitecodesIDForbidden with default headers values

func (*PutInvitecodesIDForbidden) Error

func (o *PutInvitecodesIDForbidden) Error() string

type PutInvitecodesIDInternalServerError

type PutInvitecodesIDInternalServerError struct {
	Payload *models.Error
}

PutInvitecodesIDInternalServerError

服务端内部错误

func NewPutInvitecodesIDInternalServerError

func NewPutInvitecodesIDInternalServerError() *PutInvitecodesIDInternalServerError

NewPutInvitecodesIDInternalServerError creates a PutInvitecodesIDInternalServerError with default headers values

func (*PutInvitecodesIDInternalServerError) Error

type PutInvitecodesIDNotFound

type PutInvitecodesIDNotFound struct {
	Payload *models.Error
}

PutInvitecodesIDNotFound

没找到指定对象

func NewPutInvitecodesIDNotFound

func NewPutInvitecodesIDNotFound() *PutInvitecodesIDNotFound

NewPutInvitecodesIDNotFound creates a PutInvitecodesIDNotFound with default headers values

func (*PutInvitecodesIDNotFound) Error

func (o *PutInvitecodesIDNotFound) Error() string

type PutInvitecodesIDOK

type PutInvitecodesIDOK struct {
	Payload *models.InviteCode
}

PutInvitecodesIDOK

成功更新邀请码

func NewPutInvitecodesIDOK

func NewPutInvitecodesIDOK() *PutInvitecodesIDOK

NewPutInvitecodesIDOK creates a PutInvitecodesIDOK with default headers values

func (*PutInvitecodesIDOK) Error

func (o *PutInvitecodesIDOK) Error() string

type PutInvitecodesIDParams

type PutInvitecodesIDParams struct {

	/*Body*/
	Body *models.UpdateInviteCodeRequest
	/*ID
	  邀请码ID

	*/
	ID int64
}

PutInvitecodesIDParams contains all the parameters to send to the API endpoint for the put invitecodes ID operation typically these are written to a http.Request

func NewPutInvitecodesIDParams

func NewPutInvitecodesIDParams() *PutInvitecodesIDParams

NewPutInvitecodesIDParams creates a new PutInvitecodesIDParams object with the default values initialized.

func (*PutInvitecodesIDParams) WithBody

WithBody adds the body to the put invitecodes ID params

func (*PutInvitecodesIDParams) WithID

WithID adds the id to the put invitecodes ID params

func (*PutInvitecodesIDParams) WriteToRequest

func (o *PutInvitecodesIDParams) WriteToRequest(r client.Request, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PutInvitecodesIDReader

type PutInvitecodesIDReader struct {
	// contains filtered or unexported fields
}

func (*PutInvitecodesIDReader) ReadResponse

func (o *PutInvitecodesIDReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

type PutInvitecodesIDUnauthorized

type PutInvitecodesIDUnauthorized struct {
	Payload *models.Error
}

PutInvitecodesIDUnauthorized

未认证

func NewPutInvitecodesIDUnauthorized

func NewPutInvitecodesIDUnauthorized() *PutInvitecodesIDUnauthorized

NewPutInvitecodesIDUnauthorized creates a PutInvitecodesIDUnauthorized with default headers values

func (*PutInvitecodesIDUnauthorized) Error

type PutNotificationsMarkasreadOK

type PutNotificationsMarkasreadOK struct {
}

PutNotificationsMarkasreadOK

成功更新

func NewPutNotificationsMarkasreadOK

func NewPutNotificationsMarkasreadOK() *PutNotificationsMarkasreadOK

NewPutNotificationsMarkasreadOK creates a PutNotificationsMarkasreadOK with default headers values

func (*PutNotificationsMarkasreadOK) Error

type PutNotificationsMarkasreadParams

type PutNotificationsMarkasreadParams struct {

	/*Body
	  通知ID列表

	*/
	Body []int64
}

PutNotificationsMarkasreadParams contains all the parameters to send to the API endpoint for the put notifications markasread operation typically these are written to a http.Request

func NewPutNotificationsMarkasreadParams

func NewPutNotificationsMarkasreadParams() *PutNotificationsMarkasreadParams

NewPutNotificationsMarkasreadParams creates a new PutNotificationsMarkasreadParams object with the default values initialized.

func (*PutNotificationsMarkasreadParams) WithBody

WithBody adds the body to the put notifications markasread params

func (*PutNotificationsMarkasreadParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutNotificationsMarkasreadReader

type PutNotificationsMarkasreadReader struct {
	// contains filtered or unexported fields
}

func (*PutNotificationsMarkasreadReader) ReadResponse

func (o *PutNotificationsMarkasreadReader) ReadResponse(response client.Response, consumer httpkit.Consumer) (interface{}, error)

Jump to

Keyboard shortcuts

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