reply

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: 7 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 reply API

func New

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

New creates a new reply API client.

func (*Client) DeleteRepliesID

func (a *Client) DeleteRepliesID(params *DeleteRepliesIDParams, authInfo client.AuthInfoWriter) (*DeleteRepliesIDOK, error)

删除回复

删除指定回复

func (*Client) GetReplies

func (a *Client) GetReplies(params *GetRepliesParams, authInfo client.AuthInfoWriter) (*GetRepliesOK, error)

查看回复列表

查看所有回复,支持分页和过滤器

func (*Client) GetRepliesID

func (a *Client) GetRepliesID(params *GetRepliesIDParams, authInfo client.AuthInfoWriter) (*GetRepliesIDOK, error)

查询回复

得到指定回复的具体信息

func (*Client) PostReplies

func (a *Client) PostReplies(params *PostRepliesParams, authInfo client.AuthInfoWriter) (*PostRepliesCreated, error)

创建回复

根据请求创建回复

func (*Client) PutRepliesID

func (a *Client) PutRepliesID(params *PutRepliesIDParams, authInfo client.AuthInfoWriter) (*PutRepliesIDOK, error)

更新回复

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

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type DeleteRepliesIDBadRequest

type DeleteRepliesIDBadRequest struct {
	Payload *models.Error
}

DeleteRepliesIDBadRequest

无效请求

func NewDeleteRepliesIDBadRequest

func NewDeleteRepliesIDBadRequest() *DeleteRepliesIDBadRequest

NewDeleteRepliesIDBadRequest creates a DeleteRepliesIDBadRequest with default headers values

func (*DeleteRepliesIDBadRequest) Error

func (o *DeleteRepliesIDBadRequest) Error() string

type DeleteRepliesIDForbidden

type DeleteRepliesIDForbidden struct {
	Payload *models.Error
}

DeleteRepliesIDForbidden

无访问权限

func NewDeleteRepliesIDForbidden

func NewDeleteRepliesIDForbidden() *DeleteRepliesIDForbidden

NewDeleteRepliesIDForbidden creates a DeleteRepliesIDForbidden with default headers values

func (*DeleteRepliesIDForbidden) Error

func (o *DeleteRepliesIDForbidden) Error() string

type DeleteRepliesIDInternalServerError

type DeleteRepliesIDInternalServerError struct {
	Payload *models.Error
}

DeleteRepliesIDInternalServerError

服务端内部错误

func NewDeleteRepliesIDInternalServerError

func NewDeleteRepliesIDInternalServerError() *DeleteRepliesIDInternalServerError

NewDeleteRepliesIDInternalServerError creates a DeleteRepliesIDInternalServerError with default headers values

func (*DeleteRepliesIDInternalServerError) Error

type DeleteRepliesIDNotFound

type DeleteRepliesIDNotFound struct {
	Payload *models.Error
}

DeleteRepliesIDNotFound

没找到指定对象

func NewDeleteRepliesIDNotFound

func NewDeleteRepliesIDNotFound() *DeleteRepliesIDNotFound

NewDeleteRepliesIDNotFound creates a DeleteRepliesIDNotFound with default headers values

func (*DeleteRepliesIDNotFound) Error

func (o *DeleteRepliesIDNotFound) Error() string

type DeleteRepliesIDOK

type DeleteRepliesIDOK struct {
}

DeleteRepliesIDOK

成功删除回复

func NewDeleteRepliesIDOK

func NewDeleteRepliesIDOK() *DeleteRepliesIDOK

NewDeleteRepliesIDOK creates a DeleteRepliesIDOK with default headers values

func (*DeleteRepliesIDOK) Error

func (o *DeleteRepliesIDOK) Error() string

type DeleteRepliesIDParams

type DeleteRepliesIDParams struct {

	/*ID
	  回复ID

	*/
	ID int64
}

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

func NewDeleteRepliesIDParams

func NewDeleteRepliesIDParams() *DeleteRepliesIDParams

NewDeleteRepliesIDParams creates a new DeleteRepliesIDParams object with the default values initialized.

func (*DeleteRepliesIDParams) WithID

WithID adds the id to the delete replies ID params

func (*DeleteRepliesIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteRepliesIDReader

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

func (*DeleteRepliesIDReader) ReadResponse

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

type DeleteRepliesIDUnauthorized

type DeleteRepliesIDUnauthorized struct {
	Payload *models.Error
}

DeleteRepliesIDUnauthorized

未认证

func NewDeleteRepliesIDUnauthorized

func NewDeleteRepliesIDUnauthorized() *DeleteRepliesIDUnauthorized

NewDeleteRepliesIDUnauthorized creates a DeleteRepliesIDUnauthorized with default headers values

func (*DeleteRepliesIDUnauthorized) Error

type GetRepliesIDBadRequest

type GetRepliesIDBadRequest struct {
	Payload *models.Error
}

GetRepliesIDBadRequest

无效请求

func NewGetRepliesIDBadRequest

func NewGetRepliesIDBadRequest() *GetRepliesIDBadRequest

NewGetRepliesIDBadRequest creates a GetRepliesIDBadRequest with default headers values

func (*GetRepliesIDBadRequest) Error

func (o *GetRepliesIDBadRequest) Error() string

type GetRepliesIDForbidden

type GetRepliesIDForbidden struct {
	Payload *models.Error
}

GetRepliesIDForbidden

无访问权限

func NewGetRepliesIDForbidden

func NewGetRepliesIDForbidden() *GetRepliesIDForbidden

NewGetRepliesIDForbidden creates a GetRepliesIDForbidden with default headers values

func (*GetRepliesIDForbidden) Error

func (o *GetRepliesIDForbidden) Error() string

type GetRepliesIDInternalServerError

type GetRepliesIDInternalServerError struct {
	Payload *models.Error
}

GetRepliesIDInternalServerError

服务端内部错误

func NewGetRepliesIDInternalServerError

func NewGetRepliesIDInternalServerError() *GetRepliesIDInternalServerError

NewGetRepliesIDInternalServerError creates a GetRepliesIDInternalServerError with default headers values

func (*GetRepliesIDInternalServerError) Error

type GetRepliesIDNotFound

type GetRepliesIDNotFound struct {
	Payload *models.Error
}

GetRepliesIDNotFound

没找到指定对象

func NewGetRepliesIDNotFound

func NewGetRepliesIDNotFound() *GetRepliesIDNotFound

NewGetRepliesIDNotFound creates a GetRepliesIDNotFound with default headers values

func (*GetRepliesIDNotFound) Error

func (o *GetRepliesIDNotFound) Error() string

type GetRepliesIDOK

type GetRepliesIDOK struct {
	Payload *models.Reply
}

GetRepliesIDOK

成功查询回复

func NewGetRepliesIDOK

func NewGetRepliesIDOK() *GetRepliesIDOK

NewGetRepliesIDOK creates a GetRepliesIDOK with default headers values

func (*GetRepliesIDOK) Error

func (o *GetRepliesIDOK) Error() string

type GetRepliesIDParams

type GetRepliesIDParams struct {

	/*ID
	  回复ID

	*/
	ID int64
}

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

func NewGetRepliesIDParams

func NewGetRepliesIDParams() *GetRepliesIDParams

NewGetRepliesIDParams creates a new GetRepliesIDParams object with the default values initialized.

func (*GetRepliesIDParams) WithID

WithID adds the id to the get replies ID params

func (*GetRepliesIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRepliesIDReader

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

func (*GetRepliesIDReader) ReadResponse

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

type GetRepliesIDUnauthorized

type GetRepliesIDUnauthorized struct {
	Payload *models.Error
}

GetRepliesIDUnauthorized

未认证

func NewGetRepliesIDUnauthorized

func NewGetRepliesIDUnauthorized() *GetRepliesIDUnauthorized

NewGetRepliesIDUnauthorized creates a GetRepliesIDUnauthorized with default headers values

func (*GetRepliesIDUnauthorized) Error

func (o *GetRepliesIDUnauthorized) Error() string

type GetRepliesOK

type GetRepliesOK struct {
	Payload *models.ReplyPageableResult
}

GetRepliesOK

回复列表

func NewGetRepliesOK

func NewGetRepliesOK() *GetRepliesOK

NewGetRepliesOK creates a GetRepliesOK with default headers values

func (*GetRepliesOK) Error

func (o *GetRepliesOK) Error() string

type GetRepliesParams

type GetRepliesParams struct {

	/*Authorid
	  回复发布者ID

	*/
	Authorid int64
	/*Onlyaccepted
	  是否只显示被采纳的答案

	*/
	Onlyaccepted bool
	/*Page
	  当前页码

	*/
	Page int64
	/*Pagesize
	  每页项数

	*/
	Pagesize int64
	/*Startup
	  是否为企业员工

	*/
	Startup bool
	/*Topicid
	  回复的主题ID

	*/
	Topicid int64
}

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

func NewGetRepliesParams

func NewGetRepliesParams() *GetRepliesParams

NewGetRepliesParams creates a new GetRepliesParams object with the default values initialized.

func (*GetRepliesParams) WithAuthorid

func (o *GetRepliesParams) WithAuthorid(authorid int64) *GetRepliesParams

WithAuthorid adds the authorid to the get replies params

func (*GetRepliesParams) WithOnlyaccepted

func (o *GetRepliesParams) WithOnlyaccepted(onlyaccepted bool) *GetRepliesParams

WithOnlyaccepted adds the onlyaccepted to the get replies params

func (*GetRepliesParams) WithPage

func (o *GetRepliesParams) WithPage(page int64) *GetRepliesParams

WithPage adds the page to the get replies params

func (*GetRepliesParams) WithPagesize

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

WithPagesize adds the pagesize to the get replies params

func (*GetRepliesParams) WithStartup

func (o *GetRepliesParams) WithStartup(startup bool) *GetRepliesParams

WithStartup adds the startup to the get replies params

func (*GetRepliesParams) WithTopicid

func (o *GetRepliesParams) WithTopicid(topicid int64) *GetRepliesParams

WithTopicid adds the topicid to the get replies params

func (*GetRepliesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRepliesReader

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

func (*GetRepliesReader) ReadResponse

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

type PostRepliesBadRequest

type PostRepliesBadRequest struct {
	Payload *models.Error
}

PostRepliesBadRequest

无效请求

func NewPostRepliesBadRequest

func NewPostRepliesBadRequest() *PostRepliesBadRequest

NewPostRepliesBadRequest creates a PostRepliesBadRequest with default headers values

func (*PostRepliesBadRequest) Error

func (o *PostRepliesBadRequest) Error() string

type PostRepliesCreated

type PostRepliesCreated struct {
	Payload *models.Reply
}

PostRepliesCreated

成功创建回复

func NewPostRepliesCreated

func NewPostRepliesCreated() *PostRepliesCreated

NewPostRepliesCreated creates a PostRepliesCreated with default headers values

func (*PostRepliesCreated) Error

func (o *PostRepliesCreated) Error() string

type PostRepliesForbidden

type PostRepliesForbidden struct {
	Payload *models.Error
}

PostRepliesForbidden

无访问权限

func NewPostRepliesForbidden

func NewPostRepliesForbidden() *PostRepliesForbidden

NewPostRepliesForbidden creates a PostRepliesForbidden with default headers values

func (*PostRepliesForbidden) Error

func (o *PostRepliesForbidden) Error() string

type PostRepliesInternalServerError

type PostRepliesInternalServerError struct {
	Payload *models.Error
}

PostRepliesInternalServerError

服务端内部错误

func NewPostRepliesInternalServerError

func NewPostRepliesInternalServerError() *PostRepliesInternalServerError

NewPostRepliesInternalServerError creates a PostRepliesInternalServerError with default headers values

func (*PostRepliesInternalServerError) Error

type PostRepliesParams

type PostRepliesParams struct {

	/*Body*/
	Body *models.CreateTopicRequest
}

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

func NewPostRepliesParams

func NewPostRepliesParams() *PostRepliesParams

NewPostRepliesParams creates a new PostRepliesParams object with the default values initialized.

func (*PostRepliesParams) WithBody

WithBody adds the body to the post replies params

func (*PostRepliesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostRepliesReader

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

func (*PostRepliesReader) ReadResponse

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

type PostRepliesUnauthorized

type PostRepliesUnauthorized struct {
	Payload *models.Error
}

PostRepliesUnauthorized

未认证

func NewPostRepliesUnauthorized

func NewPostRepliesUnauthorized() *PostRepliesUnauthorized

NewPostRepliesUnauthorized creates a PostRepliesUnauthorized with default headers values

func (*PostRepliesUnauthorized) Error

func (o *PostRepliesUnauthorized) Error() string

type PutRepliesIDBadRequest

type PutRepliesIDBadRequest struct {
	Payload *models.Error
}

PutRepliesIDBadRequest

无效请求

func NewPutRepliesIDBadRequest

func NewPutRepliesIDBadRequest() *PutRepliesIDBadRequest

NewPutRepliesIDBadRequest creates a PutRepliesIDBadRequest with default headers values

func (*PutRepliesIDBadRequest) Error

func (o *PutRepliesIDBadRequest) Error() string

type PutRepliesIDForbidden

type PutRepliesIDForbidden struct {
	Payload *models.Error
}

PutRepliesIDForbidden

无访问权限

func NewPutRepliesIDForbidden

func NewPutRepliesIDForbidden() *PutRepliesIDForbidden

NewPutRepliesIDForbidden creates a PutRepliesIDForbidden with default headers values

func (*PutRepliesIDForbidden) Error

func (o *PutRepliesIDForbidden) Error() string

type PutRepliesIDInternalServerError

type PutRepliesIDInternalServerError struct {
	Payload *models.Error
}

PutRepliesIDInternalServerError

服务端内部错误

func NewPutRepliesIDInternalServerError

func NewPutRepliesIDInternalServerError() *PutRepliesIDInternalServerError

NewPutRepliesIDInternalServerError creates a PutRepliesIDInternalServerError with default headers values

func (*PutRepliesIDInternalServerError) Error

type PutRepliesIDNotFound

type PutRepliesIDNotFound struct {
	Payload *models.Error
}

PutRepliesIDNotFound

没找到指定对象

func NewPutRepliesIDNotFound

func NewPutRepliesIDNotFound() *PutRepliesIDNotFound

NewPutRepliesIDNotFound creates a PutRepliesIDNotFound with default headers values

func (*PutRepliesIDNotFound) Error

func (o *PutRepliesIDNotFound) Error() string

type PutRepliesIDOK

type PutRepliesIDOK struct {
	Payload *models.Reply
}

PutRepliesIDOK

成功更新回复

func NewPutRepliesIDOK

func NewPutRepliesIDOK() *PutRepliesIDOK

NewPutRepliesIDOK creates a PutRepliesIDOK with default headers values

func (*PutRepliesIDOK) Error

func (o *PutRepliesIDOK) Error() string

type PutRepliesIDParams

type PutRepliesIDParams struct {

	/*Body*/
	Body models.Reply
	/*ID
	  回复ID

	*/
	ID int64
}

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

func NewPutRepliesIDParams

func NewPutRepliesIDParams() *PutRepliesIDParams

NewPutRepliesIDParams creates a new PutRepliesIDParams object with the default values initialized.

func (*PutRepliesIDParams) WithBody

WithBody adds the body to the put replies ID params

func (*PutRepliesIDParams) WithID

WithID adds the id to the put replies ID params

func (*PutRepliesIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PutRepliesIDReader

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

func (*PutRepliesIDReader) ReadResponse

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

type PutRepliesIDUnauthorized

type PutRepliesIDUnauthorized struct {
	Payload *models.Error
}

PutRepliesIDUnauthorized

未认证

func NewPutRepliesIDUnauthorized

func NewPutRepliesIDUnauthorized() *PutRepliesIDUnauthorized

NewPutRepliesIDUnauthorized creates a PutRepliesIDUnauthorized with default headers values

func (*PutRepliesIDUnauthorized) Error

func (o *PutRepliesIDUnauthorized) Error() string

Jump to

Keyboard shortcuts

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