Documentation ¶
Index ¶
- type APIError
- type Client
- func (a *Client) DeleteRepliesID(params *DeleteRepliesIDParams, authInfo client.AuthInfoWriter) (*DeleteRepliesIDOK, error)
- func (a *Client) GetReplies(params *GetRepliesParams, authInfo client.AuthInfoWriter) (*GetRepliesOK, error)
- func (a *Client) GetRepliesID(params *GetRepliesIDParams, authInfo client.AuthInfoWriter) (*GetRepliesIDOK, error)
- func (a *Client) PostReplies(params *PostRepliesParams, authInfo client.AuthInfoWriter) (*PostRepliesCreated, error)
- func (a *Client) PutRepliesID(params *PutRepliesIDParams, authInfo client.AuthInfoWriter) (*PutRepliesIDOK, error)
- func (a *Client) SetTransport(transport client.Transport)
- type DeleteRepliesIDBadRequest
- type DeleteRepliesIDForbidden
- type DeleteRepliesIDInternalServerError
- type DeleteRepliesIDNotFound
- type DeleteRepliesIDOK
- type DeleteRepliesIDParams
- type DeleteRepliesIDReader
- type DeleteRepliesIDUnauthorized
- type GetRepliesIDBadRequest
- type GetRepliesIDForbidden
- type GetRepliesIDInternalServerError
- type GetRepliesIDNotFound
- type GetRepliesIDOK
- type GetRepliesIDParams
- type GetRepliesIDReader
- type GetRepliesIDUnauthorized
- type GetRepliesOK
- type GetRepliesParams
- func (o *GetRepliesParams) WithAuthorid(authorid int64) *GetRepliesParams
- func (o *GetRepliesParams) WithOnlyaccepted(onlyaccepted bool) *GetRepliesParams
- func (o *GetRepliesParams) WithPage(page int64) *GetRepliesParams
- func (o *GetRepliesParams) WithPagesize(pagesize int64) *GetRepliesParams
- func (o *GetRepliesParams) WithStartup(startup bool) *GetRepliesParams
- func (o *GetRepliesParams) WithTopicid(topicid int64) *GetRepliesParams
- func (o *GetRepliesParams) WriteToRequest(r client.Request, reg strfmt.Registry) error
- type GetRepliesReader
- type PostRepliesBadRequest
- type PostRepliesCreated
- type PostRepliesForbidden
- type PostRepliesInternalServerError
- type PostRepliesParams
- type PostRepliesReader
- type PostRepliesUnauthorized
- type PutRepliesIDBadRequest
- type PutRepliesIDForbidden
- type PutRepliesIDInternalServerError
- type PutRepliesIDNotFound
- type PutRepliesIDOK
- type PutRepliesIDParams
- type PutRepliesIDReader
- type PutRepliesIDUnauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
APIError wraps an error model and captures the status code
func NewAPIError ¶
NewAPIError creates a new API error
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for reply API
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 ¶
SetTransport changes the transport on the client
type DeleteRepliesIDBadRequest ¶
DeleteRepliesIDBadRequest
无效请求
func NewDeleteRepliesIDBadRequest ¶
func NewDeleteRepliesIDBadRequest() *DeleteRepliesIDBadRequest
NewDeleteRepliesIDBadRequest creates a DeleteRepliesIDBadRequest with default headers values
func (*DeleteRepliesIDBadRequest) Error ¶
func (o *DeleteRepliesIDBadRequest) Error() string
type DeleteRepliesIDForbidden ¶
DeleteRepliesIDForbidden
无访问权限
func NewDeleteRepliesIDForbidden ¶
func NewDeleteRepliesIDForbidden() *DeleteRepliesIDForbidden
NewDeleteRepliesIDForbidden creates a DeleteRepliesIDForbidden with default headers values
func (*DeleteRepliesIDForbidden) Error ¶
func (o *DeleteRepliesIDForbidden) Error() string
type DeleteRepliesIDInternalServerError ¶
DeleteRepliesIDInternalServerError
服务端内部错误
func NewDeleteRepliesIDInternalServerError ¶
func NewDeleteRepliesIDInternalServerError() *DeleteRepliesIDInternalServerError
NewDeleteRepliesIDInternalServerError creates a DeleteRepliesIDInternalServerError with default headers values
func (*DeleteRepliesIDInternalServerError) Error ¶
func (o *DeleteRepliesIDInternalServerError) Error() string
type DeleteRepliesIDNotFound ¶
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 ¶
func (o *DeleteRepliesIDParams) WithID(id int64) *DeleteRepliesIDParams
WithID adds the id to the delete replies ID params
func (*DeleteRepliesIDParams) WriteToRequest ¶
WriteToRequest writes these params to a swagger request
type DeleteRepliesIDReader ¶
type DeleteRepliesIDReader struct {
// contains filtered or unexported fields
}
func (*DeleteRepliesIDReader) ReadResponse ¶
type DeleteRepliesIDUnauthorized ¶
type DeleteRepliesIDUnauthorized struct {
}DeleteRepliesIDUnauthorized
未认证
func NewDeleteRepliesIDUnauthorized ¶
func NewDeleteRepliesIDUnauthorized() *DeleteRepliesIDUnauthorized
NewDeleteRepliesIDUnauthorized creates a DeleteRepliesIDUnauthorized with default headers values
func (*DeleteRepliesIDUnauthorized) Error ¶
func (o *DeleteRepliesIDUnauthorized) Error() string
type GetRepliesIDBadRequest ¶
GetRepliesIDBadRequest
无效请求
func NewGetRepliesIDBadRequest ¶
func NewGetRepliesIDBadRequest() *GetRepliesIDBadRequest
NewGetRepliesIDBadRequest creates a GetRepliesIDBadRequest with default headers values
func (*GetRepliesIDBadRequest) Error ¶
func (o *GetRepliesIDBadRequest) Error() string
type GetRepliesIDForbidden ¶
GetRepliesIDForbidden
无访问权限
func NewGetRepliesIDForbidden ¶
func NewGetRepliesIDForbidden() *GetRepliesIDForbidden
NewGetRepliesIDForbidden creates a GetRepliesIDForbidden with default headers values
func (*GetRepliesIDForbidden) Error ¶
func (o *GetRepliesIDForbidden) Error() string
type GetRepliesIDInternalServerError ¶
GetRepliesIDInternalServerError
服务端内部错误
func NewGetRepliesIDInternalServerError ¶
func NewGetRepliesIDInternalServerError() *GetRepliesIDInternalServerError
NewGetRepliesIDInternalServerError creates a GetRepliesIDInternalServerError with default headers values
func (*GetRepliesIDInternalServerError) Error ¶
func (o *GetRepliesIDInternalServerError) Error() string
type GetRepliesIDNotFound ¶
GetRepliesIDNotFound
没找到指定对象
func NewGetRepliesIDNotFound ¶
func NewGetRepliesIDNotFound() *GetRepliesIDNotFound
NewGetRepliesIDNotFound creates a GetRepliesIDNotFound with default headers values
func (*GetRepliesIDNotFound) Error ¶
func (o *GetRepliesIDNotFound) Error() string
type GetRepliesIDOK ¶
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 ¶
func (o *GetRepliesIDParams) WithID(id int64) *GetRepliesIDParams
WithID adds the id to the get replies ID params
func (*GetRepliesIDParams) WriteToRequest ¶
WriteToRequest writes these params to a swagger request
type GetRepliesIDReader ¶
type GetRepliesIDReader struct {
// contains filtered or unexported fields
}
func (*GetRepliesIDReader) ReadResponse ¶
type GetRepliesIDUnauthorized ¶
type GetRepliesIDUnauthorized struct {
}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 ¶
WriteToRequest writes these params to a swagger request
type GetRepliesReader ¶
type GetRepliesReader struct {
// contains filtered or unexported fields
}
func (*GetRepliesReader) ReadResponse ¶
type PostRepliesBadRequest ¶
PostRepliesBadRequest
无效请求
func NewPostRepliesBadRequest ¶
func NewPostRepliesBadRequest() *PostRepliesBadRequest
NewPostRepliesBadRequest creates a PostRepliesBadRequest with default headers values
func (*PostRepliesBadRequest) Error ¶
func (o *PostRepliesBadRequest) Error() string
type PostRepliesCreated ¶
PostRepliesCreated
成功创建回复
func NewPostRepliesCreated ¶
func NewPostRepliesCreated() *PostRepliesCreated
NewPostRepliesCreated creates a PostRepliesCreated with default headers values
func (*PostRepliesCreated) Error ¶
func (o *PostRepliesCreated) Error() string
type PostRepliesForbidden ¶
PostRepliesForbidden
无访问权限
func NewPostRepliesForbidden ¶
func NewPostRepliesForbidden() *PostRepliesForbidden
NewPostRepliesForbidden creates a PostRepliesForbidden with default headers values
func (*PostRepliesForbidden) Error ¶
func (o *PostRepliesForbidden) Error() string
type PostRepliesInternalServerError ¶
PostRepliesInternalServerError
服务端内部错误
func NewPostRepliesInternalServerError ¶
func NewPostRepliesInternalServerError() *PostRepliesInternalServerError
NewPostRepliesInternalServerError creates a PostRepliesInternalServerError with default headers values
func (*PostRepliesInternalServerError) Error ¶
func (o *PostRepliesInternalServerError) Error() string
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 ¶
func (o *PostRepliesParams) WithBody(body *models.CreateTopicRequest) *PostRepliesParams
WithBody adds the body to the post replies params
func (*PostRepliesParams) WriteToRequest ¶
WriteToRequest writes these params to a swagger request
type PostRepliesReader ¶
type PostRepliesReader struct {
// contains filtered or unexported fields
}
func (*PostRepliesReader) ReadResponse ¶
type PostRepliesUnauthorized ¶
type PostRepliesUnauthorized struct {
}PostRepliesUnauthorized
未认证
func NewPostRepliesUnauthorized ¶
func NewPostRepliesUnauthorized() *PostRepliesUnauthorized
NewPostRepliesUnauthorized creates a PostRepliesUnauthorized with default headers values
func (*PostRepliesUnauthorized) Error ¶
func (o *PostRepliesUnauthorized) Error() string
type PutRepliesIDBadRequest ¶
PutRepliesIDBadRequest
无效请求
func NewPutRepliesIDBadRequest ¶
func NewPutRepliesIDBadRequest() *PutRepliesIDBadRequest
NewPutRepliesIDBadRequest creates a PutRepliesIDBadRequest with default headers values
func (*PutRepliesIDBadRequest) Error ¶
func (o *PutRepliesIDBadRequest) Error() string
type PutRepliesIDForbidden ¶
PutRepliesIDForbidden
无访问权限
func NewPutRepliesIDForbidden ¶
func NewPutRepliesIDForbidden() *PutRepliesIDForbidden
NewPutRepliesIDForbidden creates a PutRepliesIDForbidden with default headers values
func (*PutRepliesIDForbidden) Error ¶
func (o *PutRepliesIDForbidden) Error() string
type PutRepliesIDInternalServerError ¶
PutRepliesIDInternalServerError
服务端内部错误
func NewPutRepliesIDInternalServerError ¶
func NewPutRepliesIDInternalServerError() *PutRepliesIDInternalServerError
NewPutRepliesIDInternalServerError creates a PutRepliesIDInternalServerError with default headers values
func (*PutRepliesIDInternalServerError) Error ¶
func (o *PutRepliesIDInternalServerError) Error() string
type PutRepliesIDNotFound ¶
PutRepliesIDNotFound
没找到指定对象
func NewPutRepliesIDNotFound ¶
func NewPutRepliesIDNotFound() *PutRepliesIDNotFound
NewPutRepliesIDNotFound creates a PutRepliesIDNotFound with default headers values
func (*PutRepliesIDNotFound) Error ¶
func (o *PutRepliesIDNotFound) Error() string
type PutRepliesIDOK ¶
PutRepliesIDOK
成功更新回复
func NewPutRepliesIDOK ¶
func NewPutRepliesIDOK() *PutRepliesIDOK
NewPutRepliesIDOK creates a PutRepliesIDOK with default headers values
func (*PutRepliesIDOK) Error ¶
func (o *PutRepliesIDOK) Error() string
type PutRepliesIDParams ¶
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 ¶
func (o *PutRepliesIDParams) WithBody(body models.Reply) *PutRepliesIDParams
WithBody adds the body to the put replies ID params
func (*PutRepliesIDParams) WithID ¶
func (o *PutRepliesIDParams) WithID(id int64) *PutRepliesIDParams
WithID adds the id to the put replies ID params
func (*PutRepliesIDParams) WriteToRequest ¶
WriteToRequest writes these params to a swagger request
type PutRepliesIDReader ¶
type PutRepliesIDReader struct {
// contains filtered or unexported fields
}
func (*PutRepliesIDReader) ReadResponse ¶
type PutRepliesIDUnauthorized ¶
type PutRepliesIDUnauthorized struct {
}PutRepliesIDUnauthorized
未认证
func NewPutRepliesIDUnauthorized ¶
func NewPutRepliesIDUnauthorized() *PutRepliesIDUnauthorized
NewPutRepliesIDUnauthorized creates a PutRepliesIDUnauthorized with default headers values
func (*PutRepliesIDUnauthorized) Error ¶
func (o *PutRepliesIDUnauthorized) Error() string