operation

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 operation API

func New

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

New creates a new operation API client.

func (*Client) DeleteRecommendationsID

func (a *Client) DeleteRecommendationsID(params *DeleteRecommendationsIDParams, authInfo client.AuthInfoWriter) (*DeleteRecommendationsIDOK, error)

删除推荐

删除指定推荐

func (*Client) DeleteStarsID

func (a *Client) DeleteStarsID(params *DeleteStarsIDParams, authInfo client.AuthInfoWriter) (*DeleteStarsIDOK, error)

删除明星

删除指定明星

func (*Client) GetFeedbacks

func (a *Client) GetFeedbacks(params *GetFeedbacksParams, authInfo client.AuthInfoWriter) (*GetFeedbacksOK, error)

查看反馈列表

查看所有反馈,支持分页和过滤器

func (*Client) GetFeedbacksID

func (a *Client) GetFeedbacksID(params *GetFeedbacksIDParams, authInfo client.AuthInfoWriter) (*GetFeedbacksIDOK, error)

查询反馈

得到指定反馈的具体信息

func (*Client) GetRecommendations

func (a *Client) GetRecommendations(params *GetRecommendationsParams, authInfo client.AuthInfoWriter) (*GetRecommendationsOK, error)

查看推荐列表

查看所有推荐,支持分页和过滤器

func (*Client) GetRecommendationsID

func (a *Client) GetRecommendationsID(params *GetRecommendationsIDParams, authInfo client.AuthInfoWriter) (*GetRecommendationsIDOK, error)

查询推荐

得到指定推荐的具体信息

func (*Client) GetStarsID

func (a *Client) GetStarsID(params *GetStarsIDParams, authInfo client.AuthInfoWriter) (*GetStarsIDOK, error)

查询明星

得到指定明星的具体信息

func (*Client) GetStarsLatest

func (a *Client) GetStarsLatest(params *GetStarsLatestParams, authInfo client.AuthInfoWriter) (*GetStarsLatestOK, error)

查询最新明星

得到指定明星的具体信息

func (*Client) PostFeedbacks

func (a *Client) PostFeedbacks(params *PostFeedbacksParams, authInfo client.AuthInfoWriter) (*PostFeedbacksCreated, error)

创建反馈

根据请求创建反馈

func (*Client) PostRecommendations

func (a *Client) PostRecommendations(params *PostRecommendationsParams, authInfo client.AuthInfoWriter) (*PostRecommendationsCreated, error)

创建推荐

根据请求创建推荐

func (*Client) PostStars

func (a *Client) PostStars(params *PostStarsParams, authInfo client.AuthInfoWriter) (*PostStarsCreated, error)

创建明星

根据请求创建明星

func (*Client) PutRecommendationsID

func (a *Client) PutRecommendationsID(params *PutRecommendationsIDParams, authInfo client.AuthInfoWriter) (*PutRecommendationsIDOK, error)

更新推荐

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

func (*Client) PutStarsID

func (a *Client) PutStarsID(params *PutStarsIDParams, authInfo client.AuthInfoWriter) (*PutStarsIDOK, error)

更新明星

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

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type DeleteRecommendationsIDBadRequest

type DeleteRecommendationsIDBadRequest struct {
	Payload *models.Error
}

DeleteRecommendationsIDBadRequest

无效请求

func NewDeleteRecommendationsIDBadRequest

func NewDeleteRecommendationsIDBadRequest() *DeleteRecommendationsIDBadRequest

NewDeleteRecommendationsIDBadRequest creates a DeleteRecommendationsIDBadRequest with default headers values

func (*DeleteRecommendationsIDBadRequest) Error

type DeleteRecommendationsIDForbidden

type DeleteRecommendationsIDForbidden struct {
	Payload *models.Error
}

DeleteRecommendationsIDForbidden

无访问权限

func NewDeleteRecommendationsIDForbidden

func NewDeleteRecommendationsIDForbidden() *DeleteRecommendationsIDForbidden

NewDeleteRecommendationsIDForbidden creates a DeleteRecommendationsIDForbidden with default headers values

func (*DeleteRecommendationsIDForbidden) Error

type DeleteRecommendationsIDInternalServerError

type DeleteRecommendationsIDInternalServerError struct {
	Payload *models.Error
}

DeleteRecommendationsIDInternalServerError

服务端内部错误

func NewDeleteRecommendationsIDInternalServerError

func NewDeleteRecommendationsIDInternalServerError() *DeleteRecommendationsIDInternalServerError

NewDeleteRecommendationsIDInternalServerError creates a DeleteRecommendationsIDInternalServerError with default headers values

func (*DeleteRecommendationsIDInternalServerError) Error

type DeleteRecommendationsIDNotFound

type DeleteRecommendationsIDNotFound struct {
	Payload *models.Error
}

DeleteRecommendationsIDNotFound

没找到指定对象

func NewDeleteRecommendationsIDNotFound

func NewDeleteRecommendationsIDNotFound() *DeleteRecommendationsIDNotFound

NewDeleteRecommendationsIDNotFound creates a DeleteRecommendationsIDNotFound with default headers values

func (*DeleteRecommendationsIDNotFound) Error

type DeleteRecommendationsIDOK

type DeleteRecommendationsIDOK struct {
}

DeleteRecommendationsIDOK

成功删除推荐

func NewDeleteRecommendationsIDOK

func NewDeleteRecommendationsIDOK() *DeleteRecommendationsIDOK

NewDeleteRecommendationsIDOK creates a DeleteRecommendationsIDOK with default headers values

func (*DeleteRecommendationsIDOK) Error

func (o *DeleteRecommendationsIDOK) Error() string

type DeleteRecommendationsIDParams

type DeleteRecommendationsIDParams struct {

	/*ID
	  推荐ID

	*/
	ID int64
}

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

func NewDeleteRecommendationsIDParams

func NewDeleteRecommendationsIDParams() *DeleteRecommendationsIDParams

NewDeleteRecommendationsIDParams creates a new DeleteRecommendationsIDParams object with the default values initialized.

func (*DeleteRecommendationsIDParams) WithID

WithID adds the id to the delete recommendations ID params

func (*DeleteRecommendationsIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteRecommendationsIDReader

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

func (*DeleteRecommendationsIDReader) ReadResponse

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

type DeleteRecommendationsIDUnauthorized

type DeleteRecommendationsIDUnauthorized struct {
	Payload *models.Error
}

DeleteRecommendationsIDUnauthorized

未认证

func NewDeleteRecommendationsIDUnauthorized

func NewDeleteRecommendationsIDUnauthorized() *DeleteRecommendationsIDUnauthorized

NewDeleteRecommendationsIDUnauthorized creates a DeleteRecommendationsIDUnauthorized with default headers values

func (*DeleteRecommendationsIDUnauthorized) Error

type DeleteStarsIDBadRequest

type DeleteStarsIDBadRequest struct {
	Payload *models.Error
}

DeleteStarsIDBadRequest

无效请求

func NewDeleteStarsIDBadRequest

func NewDeleteStarsIDBadRequest() *DeleteStarsIDBadRequest

NewDeleteStarsIDBadRequest creates a DeleteStarsIDBadRequest with default headers values

func (*DeleteStarsIDBadRequest) Error

func (o *DeleteStarsIDBadRequest) Error() string

type DeleteStarsIDForbidden

type DeleteStarsIDForbidden struct {
	Payload *models.Error
}

DeleteStarsIDForbidden

无访问权限

func NewDeleteStarsIDForbidden

func NewDeleteStarsIDForbidden() *DeleteStarsIDForbidden

NewDeleteStarsIDForbidden creates a DeleteStarsIDForbidden with default headers values

func (*DeleteStarsIDForbidden) Error

func (o *DeleteStarsIDForbidden) Error() string

type DeleteStarsIDInternalServerError

type DeleteStarsIDInternalServerError struct {
	Payload *models.Error
}

DeleteStarsIDInternalServerError

服务端内部错误

func NewDeleteStarsIDInternalServerError

func NewDeleteStarsIDInternalServerError() *DeleteStarsIDInternalServerError

NewDeleteStarsIDInternalServerError creates a DeleteStarsIDInternalServerError with default headers values

func (*DeleteStarsIDInternalServerError) Error

type DeleteStarsIDNotFound

type DeleteStarsIDNotFound struct {
	Payload *models.Error
}

DeleteStarsIDNotFound

没找到指定对象

func NewDeleteStarsIDNotFound

func NewDeleteStarsIDNotFound() *DeleteStarsIDNotFound

NewDeleteStarsIDNotFound creates a DeleteStarsIDNotFound with default headers values

func (*DeleteStarsIDNotFound) Error

func (o *DeleteStarsIDNotFound) Error() string

type DeleteStarsIDOK

type DeleteStarsIDOK struct {
}

DeleteStarsIDOK

成功删除明星

func NewDeleteStarsIDOK

func NewDeleteStarsIDOK() *DeleteStarsIDOK

NewDeleteStarsIDOK creates a DeleteStarsIDOK with default headers values

func (*DeleteStarsIDOK) Error

func (o *DeleteStarsIDOK) Error() string

type DeleteStarsIDParams

type DeleteStarsIDParams struct {

	/*ID
	  明星ID

	*/
	ID int64
}

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

func NewDeleteStarsIDParams

func NewDeleteStarsIDParams() *DeleteStarsIDParams

NewDeleteStarsIDParams creates a new DeleteStarsIDParams object with the default values initialized.

func (*DeleteStarsIDParams) WithID

WithID adds the id to the delete stars ID params

func (*DeleteStarsIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteStarsIDReader

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

func (*DeleteStarsIDReader) ReadResponse

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

type DeleteStarsIDUnauthorized

type DeleteStarsIDUnauthorized struct {
	Payload *models.Error
}

DeleteStarsIDUnauthorized

未认证

func NewDeleteStarsIDUnauthorized

func NewDeleteStarsIDUnauthorized() *DeleteStarsIDUnauthorized

NewDeleteStarsIDUnauthorized creates a DeleteStarsIDUnauthorized with default headers values

func (*DeleteStarsIDUnauthorized) Error

func (o *DeleteStarsIDUnauthorized) Error() string

type GetFeedbacksIDBadRequest

type GetFeedbacksIDBadRequest struct {
	Payload *models.Error
}

GetFeedbacksIDBadRequest

无效请求

func NewGetFeedbacksIDBadRequest

func NewGetFeedbacksIDBadRequest() *GetFeedbacksIDBadRequest

NewGetFeedbacksIDBadRequest creates a GetFeedbacksIDBadRequest with default headers values

func (*GetFeedbacksIDBadRequest) Error

func (o *GetFeedbacksIDBadRequest) Error() string

type GetFeedbacksIDForbidden

type GetFeedbacksIDForbidden struct {
	Payload *models.Error
}

GetFeedbacksIDForbidden

无访问权限

func NewGetFeedbacksIDForbidden

func NewGetFeedbacksIDForbidden() *GetFeedbacksIDForbidden

NewGetFeedbacksIDForbidden creates a GetFeedbacksIDForbidden with default headers values

func (*GetFeedbacksIDForbidden) Error

func (o *GetFeedbacksIDForbidden) Error() string

type GetFeedbacksIDInternalServerError

type GetFeedbacksIDInternalServerError struct {
	Payload *models.Error
}

GetFeedbacksIDInternalServerError

服务端内部错误

func NewGetFeedbacksIDInternalServerError

func NewGetFeedbacksIDInternalServerError() *GetFeedbacksIDInternalServerError

NewGetFeedbacksIDInternalServerError creates a GetFeedbacksIDInternalServerError with default headers values

func (*GetFeedbacksIDInternalServerError) Error

type GetFeedbacksIDNotFound

type GetFeedbacksIDNotFound struct {
	Payload *models.Error
}

GetFeedbacksIDNotFound

没找到指定对象

func NewGetFeedbacksIDNotFound

func NewGetFeedbacksIDNotFound() *GetFeedbacksIDNotFound

NewGetFeedbacksIDNotFound creates a GetFeedbacksIDNotFound with default headers values

func (*GetFeedbacksIDNotFound) Error

func (o *GetFeedbacksIDNotFound) Error() string

type GetFeedbacksIDOK

type GetFeedbacksIDOK struct {
	Payload *models.Feedback
}

GetFeedbacksIDOK

成功查询反馈

func NewGetFeedbacksIDOK

func NewGetFeedbacksIDOK() *GetFeedbacksIDOK

NewGetFeedbacksIDOK creates a GetFeedbacksIDOK with default headers values

func (*GetFeedbacksIDOK) Error

func (o *GetFeedbacksIDOK) Error() string

type GetFeedbacksIDParams

type GetFeedbacksIDParams struct {

	/*ID
	  反馈ID

	*/
	ID int64
}

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

func NewGetFeedbacksIDParams

func NewGetFeedbacksIDParams() *GetFeedbacksIDParams

NewGetFeedbacksIDParams creates a new GetFeedbacksIDParams object with the default values initialized.

func (*GetFeedbacksIDParams) WithID

WithID adds the id to the get feedbacks ID params

func (*GetFeedbacksIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetFeedbacksIDReader

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

func (*GetFeedbacksIDReader) ReadResponse

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

type GetFeedbacksIDUnauthorized

type GetFeedbacksIDUnauthorized struct {
	Payload *models.Error
}

GetFeedbacksIDUnauthorized

未认证

func NewGetFeedbacksIDUnauthorized

func NewGetFeedbacksIDUnauthorized() *GetFeedbacksIDUnauthorized

NewGetFeedbacksIDUnauthorized creates a GetFeedbacksIDUnauthorized with default headers values

func (*GetFeedbacksIDUnauthorized) Error

type GetFeedbacksOK

type GetFeedbacksOK struct {
	Payload *models.FeedbackPageableResult
}

GetFeedbacksOK

反馈列表

func NewGetFeedbacksOK

func NewGetFeedbacksOK() *GetFeedbacksOK

NewGetFeedbacksOK creates a GetFeedbacksOK with default headers values

func (*GetFeedbacksOK) Error

func (o *GetFeedbacksOK) Error() string

type GetFeedbacksParams

type GetFeedbacksParams struct {

	/*Page
	  当前页码

	*/
	Page int64
	/*Pagesize
	  每页项数

	*/
	Pagesize int64
}

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

func NewGetFeedbacksParams

func NewGetFeedbacksParams() *GetFeedbacksParams

NewGetFeedbacksParams creates a new GetFeedbacksParams object with the default values initialized.

func (*GetFeedbacksParams) WithPage

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

WithPage adds the page to the get feedbacks params

func (*GetFeedbacksParams) WithPagesize

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

WithPagesize adds the pagesize to the get feedbacks params

func (*GetFeedbacksParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetFeedbacksReader

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

func (*GetFeedbacksReader) ReadResponse

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

type GetRecommendationsIDBadRequest

type GetRecommendationsIDBadRequest struct {
	Payload *models.Error
}

GetRecommendationsIDBadRequest

无效请求

func NewGetRecommendationsIDBadRequest

func NewGetRecommendationsIDBadRequest() *GetRecommendationsIDBadRequest

NewGetRecommendationsIDBadRequest creates a GetRecommendationsIDBadRequest with default headers values

func (*GetRecommendationsIDBadRequest) Error

type GetRecommendationsIDForbidden

type GetRecommendationsIDForbidden struct {
	Payload *models.Error
}

GetRecommendationsIDForbidden

无访问权限

func NewGetRecommendationsIDForbidden

func NewGetRecommendationsIDForbidden() *GetRecommendationsIDForbidden

NewGetRecommendationsIDForbidden creates a GetRecommendationsIDForbidden with default headers values

func (*GetRecommendationsIDForbidden) Error

type GetRecommendationsIDInternalServerError

type GetRecommendationsIDInternalServerError struct {
	Payload *models.Error
}

GetRecommendationsIDInternalServerError

服务端内部错误

func NewGetRecommendationsIDInternalServerError

func NewGetRecommendationsIDInternalServerError() *GetRecommendationsIDInternalServerError

NewGetRecommendationsIDInternalServerError creates a GetRecommendationsIDInternalServerError with default headers values

func (*GetRecommendationsIDInternalServerError) Error

type GetRecommendationsIDNotFound

type GetRecommendationsIDNotFound struct {
	Payload *models.Error
}

GetRecommendationsIDNotFound

没找到指定对象

func NewGetRecommendationsIDNotFound

func NewGetRecommendationsIDNotFound() *GetRecommendationsIDNotFound

NewGetRecommendationsIDNotFound creates a GetRecommendationsIDNotFound with default headers values

func (*GetRecommendationsIDNotFound) Error

type GetRecommendationsIDOK

type GetRecommendationsIDOK struct {
	Payload *models.Recommendation
}

GetRecommendationsIDOK

成功查询推荐

func NewGetRecommendationsIDOK

func NewGetRecommendationsIDOK() *GetRecommendationsIDOK

NewGetRecommendationsIDOK creates a GetRecommendationsIDOK with default headers values

func (*GetRecommendationsIDOK) Error

func (o *GetRecommendationsIDOK) Error() string

type GetRecommendationsIDParams

type GetRecommendationsIDParams struct {

	/*ID
	  推荐ID

	*/
	ID int64
}

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

func NewGetRecommendationsIDParams

func NewGetRecommendationsIDParams() *GetRecommendationsIDParams

NewGetRecommendationsIDParams creates a new GetRecommendationsIDParams object with the default values initialized.

func (*GetRecommendationsIDParams) WithID

WithID adds the id to the get recommendations ID params

func (*GetRecommendationsIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRecommendationsIDReader

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

func (*GetRecommendationsIDReader) ReadResponse

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

type GetRecommendationsIDUnauthorized

type GetRecommendationsIDUnauthorized struct {
	Payload *models.Error
}

GetRecommendationsIDUnauthorized

未认证

func NewGetRecommendationsIDUnauthorized

func NewGetRecommendationsIDUnauthorized() *GetRecommendationsIDUnauthorized

NewGetRecommendationsIDUnauthorized creates a GetRecommendationsIDUnauthorized with default headers values

func (*GetRecommendationsIDUnauthorized) Error

type GetRecommendationsOK

type GetRecommendationsOK struct {
	Payload *models.RecommendationPageableResult
}

GetRecommendationsOK

推荐列表

func NewGetRecommendationsOK

func NewGetRecommendationsOK() *GetRecommendationsOK

NewGetRecommendationsOK creates a GetRecommendationsOK with default headers values

func (*GetRecommendationsOK) Error

func (o *GetRecommendationsOK) Error() string

type GetRecommendationsParams

type GetRecommendationsParams struct {

	/*Page
	  当前页码

	*/
	Page int64
	/*Pagesize
	  每页项数

	*/
	Pagesize int64
}

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

func NewGetRecommendationsParams

func NewGetRecommendationsParams() *GetRecommendationsParams

NewGetRecommendationsParams creates a new GetRecommendationsParams object with the default values initialized.

func (*GetRecommendationsParams) WithPage

WithPage adds the page to the get recommendations params

func (*GetRecommendationsParams) WithPagesize

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

WithPagesize adds the pagesize to the get recommendations params

func (*GetRecommendationsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRecommendationsReader

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

func (*GetRecommendationsReader) ReadResponse

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

type GetStarsIDBadRequest

type GetStarsIDBadRequest struct {
	Payload *models.Error
}

GetStarsIDBadRequest

无效请求

func NewGetStarsIDBadRequest

func NewGetStarsIDBadRequest() *GetStarsIDBadRequest

NewGetStarsIDBadRequest creates a GetStarsIDBadRequest with default headers values

func (*GetStarsIDBadRequest) Error

func (o *GetStarsIDBadRequest) Error() string

type GetStarsIDForbidden

type GetStarsIDForbidden struct {
	Payload *models.Error
}

GetStarsIDForbidden

无访问权限

func NewGetStarsIDForbidden

func NewGetStarsIDForbidden() *GetStarsIDForbidden

NewGetStarsIDForbidden creates a GetStarsIDForbidden with default headers values

func (*GetStarsIDForbidden) Error

func (o *GetStarsIDForbidden) Error() string

type GetStarsIDInternalServerError

type GetStarsIDInternalServerError struct {
	Payload *models.Error
}

GetStarsIDInternalServerError

服务端内部错误

func NewGetStarsIDInternalServerError

func NewGetStarsIDInternalServerError() *GetStarsIDInternalServerError

NewGetStarsIDInternalServerError creates a GetStarsIDInternalServerError with default headers values

func (*GetStarsIDInternalServerError) Error

type GetStarsIDNotFound

type GetStarsIDNotFound struct {
	Payload *models.Error
}

GetStarsIDNotFound

没找到指定对象

func NewGetStarsIDNotFound

func NewGetStarsIDNotFound() *GetStarsIDNotFound

NewGetStarsIDNotFound creates a GetStarsIDNotFound with default headers values

func (*GetStarsIDNotFound) Error

func (o *GetStarsIDNotFound) Error() string

type GetStarsIDOK

type GetStarsIDOK struct {
	Payload *models.Star
}

GetStarsIDOK

成功查询明星

func NewGetStarsIDOK

func NewGetStarsIDOK() *GetStarsIDOK

NewGetStarsIDOK creates a GetStarsIDOK with default headers values

func (*GetStarsIDOK) Error

func (o *GetStarsIDOK) Error() string

type GetStarsIDParams

type GetStarsIDParams struct {

	/*ID
	  明星ID

	*/
	ID int64
}

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

func NewGetStarsIDParams

func NewGetStarsIDParams() *GetStarsIDParams

NewGetStarsIDParams creates a new GetStarsIDParams object with the default values initialized.

func (*GetStarsIDParams) WithID

func (o *GetStarsIDParams) WithID(id int64) *GetStarsIDParams

WithID adds the id to the get stars ID params

func (*GetStarsIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetStarsIDReader

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

func (*GetStarsIDReader) ReadResponse

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

type GetStarsIDUnauthorized

type GetStarsIDUnauthorized struct {
	Payload *models.Error
}

GetStarsIDUnauthorized

未认证

func NewGetStarsIDUnauthorized

func NewGetStarsIDUnauthorized() *GetStarsIDUnauthorized

NewGetStarsIDUnauthorized creates a GetStarsIDUnauthorized with default headers values

func (*GetStarsIDUnauthorized) Error

func (o *GetStarsIDUnauthorized) Error() string

type GetStarsLatestBadRequest

type GetStarsLatestBadRequest struct {
	Payload *models.Error
}

GetStarsLatestBadRequest

无效请求

func NewGetStarsLatestBadRequest

func NewGetStarsLatestBadRequest() *GetStarsLatestBadRequest

NewGetStarsLatestBadRequest creates a GetStarsLatestBadRequest with default headers values

func (*GetStarsLatestBadRequest) Error

func (o *GetStarsLatestBadRequest) Error() string

type GetStarsLatestForbidden

type GetStarsLatestForbidden struct {
	Payload *models.Error
}

GetStarsLatestForbidden

无访问权限

func NewGetStarsLatestForbidden

func NewGetStarsLatestForbidden() *GetStarsLatestForbidden

NewGetStarsLatestForbidden creates a GetStarsLatestForbidden with default headers values

func (*GetStarsLatestForbidden) Error

func (o *GetStarsLatestForbidden) Error() string

type GetStarsLatestInternalServerError

type GetStarsLatestInternalServerError struct {
	Payload *models.Error
}

GetStarsLatestInternalServerError

服务端内部错误

func NewGetStarsLatestInternalServerError

func NewGetStarsLatestInternalServerError() *GetStarsLatestInternalServerError

NewGetStarsLatestInternalServerError creates a GetStarsLatestInternalServerError with default headers values

func (*GetStarsLatestInternalServerError) Error

type GetStarsLatestNotFound

type GetStarsLatestNotFound struct {
	Payload *models.Error
}

GetStarsLatestNotFound

没找到指定对象

func NewGetStarsLatestNotFound

func NewGetStarsLatestNotFound() *GetStarsLatestNotFound

NewGetStarsLatestNotFound creates a GetStarsLatestNotFound with default headers values

func (*GetStarsLatestNotFound) Error

func (o *GetStarsLatestNotFound) Error() string

type GetStarsLatestOK

type GetStarsLatestOK struct {
	Payload *models.Star
}

GetStarsLatestOK

成功查询明星

func NewGetStarsLatestOK

func NewGetStarsLatestOK() *GetStarsLatestOK

NewGetStarsLatestOK creates a GetStarsLatestOK with default headers values

func (*GetStarsLatestOK) Error

func (o *GetStarsLatestOK) Error() string

type GetStarsLatestParams

type GetStarsLatestParams struct {
}

GetStarsLatestParams contains all the parameters to send to the API endpoint for the get stars latest operation typically these are written to a http.Request

func NewGetStarsLatestParams

func NewGetStarsLatestParams() *GetStarsLatestParams

NewGetStarsLatestParams creates a new GetStarsLatestParams object with the default values initialized.

func (*GetStarsLatestParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetStarsLatestReader

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

func (*GetStarsLatestReader) ReadResponse

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

type GetStarsLatestUnauthorized

type GetStarsLatestUnauthorized struct {
	Payload *models.Error
}

GetStarsLatestUnauthorized

未认证

func NewGetStarsLatestUnauthorized

func NewGetStarsLatestUnauthorized() *GetStarsLatestUnauthorized

NewGetStarsLatestUnauthorized creates a GetStarsLatestUnauthorized with default headers values

func (*GetStarsLatestUnauthorized) Error

type PostFeedbacksBadRequest

type PostFeedbacksBadRequest struct {
	Payload *models.Error
}

PostFeedbacksBadRequest

无效请求

func NewPostFeedbacksBadRequest

func NewPostFeedbacksBadRequest() *PostFeedbacksBadRequest

NewPostFeedbacksBadRequest creates a PostFeedbacksBadRequest with default headers values

func (*PostFeedbacksBadRequest) Error

func (o *PostFeedbacksBadRequest) Error() string

type PostFeedbacksCreated

type PostFeedbacksCreated struct {
	Payload *models.Feedback
}

PostFeedbacksCreated

成功创建

func NewPostFeedbacksCreated

func NewPostFeedbacksCreated() *PostFeedbacksCreated

NewPostFeedbacksCreated creates a PostFeedbacksCreated with default headers values

func (*PostFeedbacksCreated) Error

func (o *PostFeedbacksCreated) Error() string

type PostFeedbacksForbidden

type PostFeedbacksForbidden struct {
	Payload *models.Error
}

PostFeedbacksForbidden

无访问权限

func NewPostFeedbacksForbidden

func NewPostFeedbacksForbidden() *PostFeedbacksForbidden

NewPostFeedbacksForbidden creates a PostFeedbacksForbidden with default headers values

func (*PostFeedbacksForbidden) Error

func (o *PostFeedbacksForbidden) Error() string

type PostFeedbacksInternalServerError

type PostFeedbacksInternalServerError struct {
	Payload *models.Error
}

PostFeedbacksInternalServerError

服务端内部错误

func NewPostFeedbacksInternalServerError

func NewPostFeedbacksInternalServerError() *PostFeedbacksInternalServerError

NewPostFeedbacksInternalServerError creates a PostFeedbacksInternalServerError with default headers values

func (*PostFeedbacksInternalServerError) Error

type PostFeedbacksParams

type PostFeedbacksParams struct {

	/*Body*/
	Body *models.CreateFeedbackRequest
}

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

func NewPostFeedbacksParams

func NewPostFeedbacksParams() *PostFeedbacksParams

NewPostFeedbacksParams creates a new PostFeedbacksParams object with the default values initialized.

func (*PostFeedbacksParams) WithBody

WithBody adds the body to the post feedbacks params

func (*PostFeedbacksParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostFeedbacksReader

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

func (*PostFeedbacksReader) ReadResponse

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

type PostFeedbacksUnauthorized

type PostFeedbacksUnauthorized struct {
	Payload *models.Error
}

PostFeedbacksUnauthorized

未认证

func NewPostFeedbacksUnauthorized

func NewPostFeedbacksUnauthorized() *PostFeedbacksUnauthorized

NewPostFeedbacksUnauthorized creates a PostFeedbacksUnauthorized with default headers values

func (*PostFeedbacksUnauthorized) Error

func (o *PostFeedbacksUnauthorized) Error() string

type PostRecommendationsBadRequest

type PostRecommendationsBadRequest struct {
	Payload *models.Error
}

PostRecommendationsBadRequest

无效请求

func NewPostRecommendationsBadRequest

func NewPostRecommendationsBadRequest() *PostRecommendationsBadRequest

NewPostRecommendationsBadRequest creates a PostRecommendationsBadRequest with default headers values

func (*PostRecommendationsBadRequest) Error

type PostRecommendationsCreated

type PostRecommendationsCreated struct {
	Payload *models.Recommendation
}

PostRecommendationsCreated

成功创建

func NewPostRecommendationsCreated

func NewPostRecommendationsCreated() *PostRecommendationsCreated

NewPostRecommendationsCreated creates a PostRecommendationsCreated with default headers values

func (*PostRecommendationsCreated) Error

type PostRecommendationsForbidden

type PostRecommendationsForbidden struct {
	Payload *models.Error
}

PostRecommendationsForbidden

无访问权限

func NewPostRecommendationsForbidden

func NewPostRecommendationsForbidden() *PostRecommendationsForbidden

NewPostRecommendationsForbidden creates a PostRecommendationsForbidden with default headers values

func (*PostRecommendationsForbidden) Error

type PostRecommendationsInternalServerError

type PostRecommendationsInternalServerError struct {
	Payload *models.Error
}

PostRecommendationsInternalServerError

服务端内部错误

func NewPostRecommendationsInternalServerError

func NewPostRecommendationsInternalServerError() *PostRecommendationsInternalServerError

NewPostRecommendationsInternalServerError creates a PostRecommendationsInternalServerError with default headers values

func (*PostRecommendationsInternalServerError) Error

type PostRecommendationsParams

type PostRecommendationsParams struct {

	/*Body*/
	Body *models.CreateRecommendationRequest
}

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

func NewPostRecommendationsParams

func NewPostRecommendationsParams() *PostRecommendationsParams

NewPostRecommendationsParams creates a new PostRecommendationsParams object with the default values initialized.

func (*PostRecommendationsParams) WithBody

WithBody adds the body to the post recommendations params

func (*PostRecommendationsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostRecommendationsReader

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

func (*PostRecommendationsReader) ReadResponse

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

type PostRecommendationsUnauthorized

type PostRecommendationsUnauthorized struct {
	Payload *models.Error
}

PostRecommendationsUnauthorized

未认证

func NewPostRecommendationsUnauthorized

func NewPostRecommendationsUnauthorized() *PostRecommendationsUnauthorized

NewPostRecommendationsUnauthorized creates a PostRecommendationsUnauthorized with default headers values

func (*PostRecommendationsUnauthorized) Error

type PostStarsBadRequest

type PostStarsBadRequest struct {
	Payload *models.Error
}

PostStarsBadRequest

无效请求

func NewPostStarsBadRequest

func NewPostStarsBadRequest() *PostStarsBadRequest

NewPostStarsBadRequest creates a PostStarsBadRequest with default headers values

func (*PostStarsBadRequest) Error

func (o *PostStarsBadRequest) Error() string

type PostStarsCreated

type PostStarsCreated struct {
	Payload *models.Star
}

PostStarsCreated

成功创建

func NewPostStarsCreated

func NewPostStarsCreated() *PostStarsCreated

NewPostStarsCreated creates a PostStarsCreated with default headers values

func (*PostStarsCreated) Error

func (o *PostStarsCreated) Error() string

type PostStarsForbidden

type PostStarsForbidden struct {
	Payload *models.Error
}

PostStarsForbidden

无访问权限

func NewPostStarsForbidden

func NewPostStarsForbidden() *PostStarsForbidden

NewPostStarsForbidden creates a PostStarsForbidden with default headers values

func (*PostStarsForbidden) Error

func (o *PostStarsForbidden) Error() string

type PostStarsInternalServerError

type PostStarsInternalServerError struct {
	Payload *models.Error
}

PostStarsInternalServerError

服务端内部错误

func NewPostStarsInternalServerError

func NewPostStarsInternalServerError() *PostStarsInternalServerError

NewPostStarsInternalServerError creates a PostStarsInternalServerError with default headers values

func (*PostStarsInternalServerError) Error

type PostStarsParams

type PostStarsParams struct {

	/*Body*/
	Body *models.CreateStarRequest
}

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

func NewPostStarsParams

func NewPostStarsParams() *PostStarsParams

NewPostStarsParams creates a new PostStarsParams object with the default values initialized.

func (*PostStarsParams) WithBody

WithBody adds the body to the post stars params

func (*PostStarsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostStarsReader

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

func (*PostStarsReader) ReadResponse

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

type PostStarsUnauthorized

type PostStarsUnauthorized struct {
	Payload *models.Error
}

PostStarsUnauthorized

未认证

func NewPostStarsUnauthorized

func NewPostStarsUnauthorized() *PostStarsUnauthorized

NewPostStarsUnauthorized creates a PostStarsUnauthorized with default headers values

func (*PostStarsUnauthorized) Error

func (o *PostStarsUnauthorized) Error() string

type PutRecommendationsIDBadRequest

type PutRecommendationsIDBadRequest struct {
	Payload *models.Error
}

PutRecommendationsIDBadRequest

无效请求

func NewPutRecommendationsIDBadRequest

func NewPutRecommendationsIDBadRequest() *PutRecommendationsIDBadRequest

NewPutRecommendationsIDBadRequest creates a PutRecommendationsIDBadRequest with default headers values

func (*PutRecommendationsIDBadRequest) Error

type PutRecommendationsIDForbidden

type PutRecommendationsIDForbidden struct {
	Payload *models.Error
}

PutRecommendationsIDForbidden

无访问权限

func NewPutRecommendationsIDForbidden

func NewPutRecommendationsIDForbidden() *PutRecommendationsIDForbidden

NewPutRecommendationsIDForbidden creates a PutRecommendationsIDForbidden with default headers values

func (*PutRecommendationsIDForbidden) Error

type PutRecommendationsIDInternalServerError

type PutRecommendationsIDInternalServerError struct {
	Payload *models.Error
}

PutRecommendationsIDInternalServerError

服务端内部错误

func NewPutRecommendationsIDInternalServerError

func NewPutRecommendationsIDInternalServerError() *PutRecommendationsIDInternalServerError

NewPutRecommendationsIDInternalServerError creates a PutRecommendationsIDInternalServerError with default headers values

func (*PutRecommendationsIDInternalServerError) Error

type PutRecommendationsIDNotFound

type PutRecommendationsIDNotFound struct {
	Payload *models.Error
}

PutRecommendationsIDNotFound

没找到指定对象

func NewPutRecommendationsIDNotFound

func NewPutRecommendationsIDNotFound() *PutRecommendationsIDNotFound

NewPutRecommendationsIDNotFound creates a PutRecommendationsIDNotFound with default headers values

func (*PutRecommendationsIDNotFound) Error

type PutRecommendationsIDOK

type PutRecommendationsIDOK struct {
	Payload *models.Recommendation
}

PutRecommendationsIDOK

成功更新推荐

func NewPutRecommendationsIDOK

func NewPutRecommendationsIDOK() *PutRecommendationsIDOK

NewPutRecommendationsIDOK creates a PutRecommendationsIDOK with default headers values

func (*PutRecommendationsIDOK) Error

func (o *PutRecommendationsIDOK) Error() string

type PutRecommendationsIDParams

type PutRecommendationsIDParams struct {

	/*Body*/
	Body *models.UpdateRecommendationRequest
	/*ID
	  推荐ID

	*/
	ID int64
}

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

func NewPutRecommendationsIDParams

func NewPutRecommendationsIDParams() *PutRecommendationsIDParams

NewPutRecommendationsIDParams creates a new PutRecommendationsIDParams object with the default values initialized.

func (*PutRecommendationsIDParams) WithBody

WithBody adds the body to the put recommendations ID params

func (*PutRecommendationsIDParams) WithID

WithID adds the id to the put recommendations ID params

func (*PutRecommendationsIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PutRecommendationsIDReader

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

func (*PutRecommendationsIDReader) ReadResponse

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

type PutRecommendationsIDUnauthorized

type PutRecommendationsIDUnauthorized struct {
	Payload *models.Error
}

PutRecommendationsIDUnauthorized

未认证

func NewPutRecommendationsIDUnauthorized

func NewPutRecommendationsIDUnauthorized() *PutRecommendationsIDUnauthorized

NewPutRecommendationsIDUnauthorized creates a PutRecommendationsIDUnauthorized with default headers values

func (*PutRecommendationsIDUnauthorized) Error

type PutStarsIDBadRequest

type PutStarsIDBadRequest struct {
	Payload *models.Error
}

PutStarsIDBadRequest

无效请求

func NewPutStarsIDBadRequest

func NewPutStarsIDBadRequest() *PutStarsIDBadRequest

NewPutStarsIDBadRequest creates a PutStarsIDBadRequest with default headers values

func (*PutStarsIDBadRequest) Error

func (o *PutStarsIDBadRequest) Error() string

type PutStarsIDForbidden

type PutStarsIDForbidden struct {
	Payload *models.Error
}

PutStarsIDForbidden

无访问权限

func NewPutStarsIDForbidden

func NewPutStarsIDForbidden() *PutStarsIDForbidden

NewPutStarsIDForbidden creates a PutStarsIDForbidden with default headers values

func (*PutStarsIDForbidden) Error

func (o *PutStarsIDForbidden) Error() string

type PutStarsIDInternalServerError

type PutStarsIDInternalServerError struct {
	Payload *models.Error
}

PutStarsIDInternalServerError

服务端内部错误

func NewPutStarsIDInternalServerError

func NewPutStarsIDInternalServerError() *PutStarsIDInternalServerError

NewPutStarsIDInternalServerError creates a PutStarsIDInternalServerError with default headers values

func (*PutStarsIDInternalServerError) Error

type PutStarsIDNotFound

type PutStarsIDNotFound struct {
	Payload *models.Error
}

PutStarsIDNotFound

没找到指定对象

func NewPutStarsIDNotFound

func NewPutStarsIDNotFound() *PutStarsIDNotFound

NewPutStarsIDNotFound creates a PutStarsIDNotFound with default headers values

func (*PutStarsIDNotFound) Error

func (o *PutStarsIDNotFound) Error() string

type PutStarsIDOK

type PutStarsIDOK struct {
	Payload *models.Star
}

PutStarsIDOK

成功更新明星

func NewPutStarsIDOK

func NewPutStarsIDOK() *PutStarsIDOK

NewPutStarsIDOK creates a PutStarsIDOK with default headers values

func (*PutStarsIDOK) Error

func (o *PutStarsIDOK) Error() string

type PutStarsIDParams

type PutStarsIDParams struct {

	/*Body*/
	Body *models.UpdateStarRequest
	/*ID
	  明星ID

	*/
	ID int64
}

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

func NewPutStarsIDParams

func NewPutStarsIDParams() *PutStarsIDParams

NewPutStarsIDParams creates a new PutStarsIDParams object with the default values initialized.

func (*PutStarsIDParams) WithBody

WithBody adds the body to the put stars ID params

func (*PutStarsIDParams) WithID

func (o *PutStarsIDParams) WithID(id int64) *PutStarsIDParams

WithID adds the id to the put stars ID params

func (*PutStarsIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PutStarsIDReader

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

func (*PutStarsIDReader) ReadResponse

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

type PutStarsIDUnauthorized

type PutStarsIDUnauthorized struct {
	Payload *models.Error
}

PutStarsIDUnauthorized

未认证

func NewPutStarsIDUnauthorized

func NewPutStarsIDUnauthorized() *PutStarsIDUnauthorized

NewPutStarsIDUnauthorized creates a PutStarsIDUnauthorized with default headers values

func (*PutStarsIDUnauthorized) Error

func (o *PutStarsIDUnauthorized) Error() string

Jump to

Keyboard shortcuts

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