Documentation ¶
Index ¶
- type APIError
- type Client
- func (a *Client) DeleteEmployeesID(params *DeleteEmployeesIDParams, authInfo client.AuthInfoWriter) (*DeleteEmployeesIDOK, error)
- func (a *Client) GetEmployees(params *GetEmployeesParams, authInfo client.AuthInfoWriter) (*GetEmployeesOK, error)
- func (a *Client) GetEmployeesID(params *GetEmployeesIDParams, authInfo client.AuthInfoWriter) (*GetEmployeesIDOK, error)
- func (a *Client) PostEmployees(params *PostEmployeesParams, authInfo client.AuthInfoWriter) (*PostEmployeesCreated, error)
- func (a *Client) PutEmployeesID(params *PutEmployeesIDParams, authInfo client.AuthInfoWriter) (*PutEmployeesIDOK, error)
- func (a *Client) SetTransport(transport client.Transport)
- type DeleteEmployeesIDBadRequest
- type DeleteEmployeesIDForbidden
- type DeleteEmployeesIDInternalServerError
- type DeleteEmployeesIDNotFound
- type DeleteEmployeesIDOK
- type DeleteEmployeesIDParams
- type DeleteEmployeesIDReader
- type DeleteEmployeesIDUnauthorized
- type GetEmployeesIDNotFound
- type GetEmployeesIDOK
- type GetEmployeesIDParams
- type GetEmployeesIDReader
- type GetEmployeesOK
- type GetEmployeesParams
- func (o *GetEmployeesParams) WithPage(page int64) *GetEmployeesParams
- func (o *GetEmployeesParams) WithPagesize(pagesize int64) *GetEmployeesParams
- func (o *GetEmployeesParams) WithStartupid(startupid int64) *GetEmployeesParams
- func (o *GetEmployeesParams) WriteToRequest(r client.Request, reg strfmt.Registry) error
- type GetEmployeesReader
- type PostEmployeesBadRequest
- type PostEmployeesCreated
- type PostEmployeesForbidden
- type PostEmployeesInternalServerError
- type PostEmployeesParams
- type PostEmployeesReader
- type PostEmployeesUnauthorized
- type PutEmployeesIDBadRequest
- type PutEmployeesIDForbidden
- type PutEmployeesIDInternalServerError
- type PutEmployeesIDNotFound
- type PutEmployeesIDOK
- type PutEmployeesIDParams
- type PutEmployeesIDReader
- type PutEmployeesIDUnauthorized
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 employee API
func (*Client) DeleteEmployeesID ¶
func (a *Client) DeleteEmployeesID(params *DeleteEmployeesIDParams, authInfo client.AuthInfoWriter) (*DeleteEmployeesIDOK, error)
删除创业公司员工
删除指定创业公司员工
func (*Client) GetEmployees ¶
func (a *Client) GetEmployees(params *GetEmployeesParams, authInfo client.AuthInfoWriter) (*GetEmployeesOK, error)
查看创业公司员工列表
查看所有创业公司员工,支持分页和过滤器
func (*Client) GetEmployeesID ¶
func (a *Client) GetEmployeesID(params *GetEmployeesIDParams, authInfo client.AuthInfoWriter) (*GetEmployeesIDOK, error)
查询创业公司员工
得到指定创业公司员工的具体信息
func (*Client) PostEmployees ¶
func (a *Client) PostEmployees(params *PostEmployeesParams, authInfo client.AuthInfoWriter) (*PostEmployeesCreated, error)
创建创业公司员工
根据请求创建创业公司员工
func (*Client) PutEmployeesID ¶
func (a *Client) PutEmployeesID(params *PutEmployeesIDParams, authInfo client.AuthInfoWriter) (*PutEmployeesIDOK, error)
更新创业公司员工
根据请求中指定要更新的属性对创业公司员工进行更新
func (*Client) SetTransport ¶
SetTransport changes the transport on the client
type DeleteEmployeesIDBadRequest ¶
DeleteEmployeesIDBadRequest
无效请求
func NewDeleteEmployeesIDBadRequest ¶
func NewDeleteEmployeesIDBadRequest() *DeleteEmployeesIDBadRequest
NewDeleteEmployeesIDBadRequest creates a DeleteEmployeesIDBadRequest with default headers values
func (*DeleteEmployeesIDBadRequest) Error ¶
func (o *DeleteEmployeesIDBadRequest) Error() string
type DeleteEmployeesIDForbidden ¶
DeleteEmployeesIDForbidden
无访问权限
func NewDeleteEmployeesIDForbidden ¶
func NewDeleteEmployeesIDForbidden() *DeleteEmployeesIDForbidden
NewDeleteEmployeesIDForbidden creates a DeleteEmployeesIDForbidden with default headers values
func (*DeleteEmployeesIDForbidden) Error ¶
func (o *DeleteEmployeesIDForbidden) Error() string
type DeleteEmployeesIDInternalServerError ¶
DeleteEmployeesIDInternalServerError
服务端内部错误
func NewDeleteEmployeesIDInternalServerError ¶
func NewDeleteEmployeesIDInternalServerError() *DeleteEmployeesIDInternalServerError
NewDeleteEmployeesIDInternalServerError creates a DeleteEmployeesIDInternalServerError with default headers values
func (*DeleteEmployeesIDInternalServerError) Error ¶
func (o *DeleteEmployeesIDInternalServerError) Error() string
type DeleteEmployeesIDNotFound ¶
DeleteEmployeesIDNotFound
没找到指定对象
func NewDeleteEmployeesIDNotFound ¶
func NewDeleteEmployeesIDNotFound() *DeleteEmployeesIDNotFound
NewDeleteEmployeesIDNotFound creates a DeleteEmployeesIDNotFound with default headers values
func (*DeleteEmployeesIDNotFound) Error ¶
func (o *DeleteEmployeesIDNotFound) Error() string
type DeleteEmployeesIDOK ¶
type DeleteEmployeesIDOK struct { }
DeleteEmployeesIDOK
成功删除创业公司员工
func NewDeleteEmployeesIDOK ¶
func NewDeleteEmployeesIDOK() *DeleteEmployeesIDOK
NewDeleteEmployeesIDOK creates a DeleteEmployeesIDOK with default headers values
func (*DeleteEmployeesIDOK) Error ¶
func (o *DeleteEmployeesIDOK) Error() string
type DeleteEmployeesIDParams ¶
type DeleteEmployeesIDParams struct { /*ID 创业公司员工ID */ ID int64 }
DeleteEmployeesIDParams contains all the parameters to send to the API endpoint for the delete employees ID operation typically these are written to a http.Request
func NewDeleteEmployeesIDParams ¶
func NewDeleteEmployeesIDParams() *DeleteEmployeesIDParams
NewDeleteEmployeesIDParams creates a new DeleteEmployeesIDParams object with the default values initialized.
func (*DeleteEmployeesIDParams) WithID ¶
func (o *DeleteEmployeesIDParams) WithID(id int64) *DeleteEmployeesIDParams
WithID adds the id to the delete employees ID params
func (*DeleteEmployeesIDParams) WriteToRequest ¶
WriteToRequest writes these params to a swagger request
type DeleteEmployeesIDReader ¶
type DeleteEmployeesIDReader struct {
// contains filtered or unexported fields
}
func (*DeleteEmployeesIDReader) ReadResponse ¶
type DeleteEmployeesIDUnauthorized ¶
type DeleteEmployeesIDUnauthorized struct {
}DeleteEmployeesIDUnauthorized
未认证
func NewDeleteEmployeesIDUnauthorized ¶
func NewDeleteEmployeesIDUnauthorized() *DeleteEmployeesIDUnauthorized
NewDeleteEmployeesIDUnauthorized creates a DeleteEmployeesIDUnauthorized with default headers values
func (*DeleteEmployeesIDUnauthorized) Error ¶
func (o *DeleteEmployeesIDUnauthorized) Error() string
type GetEmployeesIDNotFound ¶
GetEmployeesIDNotFound
没找到指定对象
func NewGetEmployeesIDNotFound ¶
func NewGetEmployeesIDNotFound() *GetEmployeesIDNotFound
NewGetEmployeesIDNotFound creates a GetEmployeesIDNotFound with default headers values
func (*GetEmployeesIDNotFound) Error ¶
func (o *GetEmployeesIDNotFound) Error() string
type GetEmployeesIDOK ¶
GetEmployeesIDOK
成功查询创业公司员工
func NewGetEmployeesIDOK ¶
func NewGetEmployeesIDOK() *GetEmployeesIDOK
NewGetEmployeesIDOK creates a GetEmployeesIDOK with default headers values
func (*GetEmployeesIDOK) Error ¶
func (o *GetEmployeesIDOK) Error() string
type GetEmployeesIDParams ¶
type GetEmployeesIDParams struct { /*ID 创业公司员工ID */ ID int64 }
GetEmployeesIDParams contains all the parameters to send to the API endpoint for the get employees ID operation typically these are written to a http.Request
func NewGetEmployeesIDParams ¶
func NewGetEmployeesIDParams() *GetEmployeesIDParams
NewGetEmployeesIDParams creates a new GetEmployeesIDParams object with the default values initialized.
func (*GetEmployeesIDParams) WithID ¶
func (o *GetEmployeesIDParams) WithID(id int64) *GetEmployeesIDParams
WithID adds the id to the get employees ID params
func (*GetEmployeesIDParams) WriteToRequest ¶
WriteToRequest writes these params to a swagger request
type GetEmployeesIDReader ¶
type GetEmployeesIDReader struct {
// contains filtered or unexported fields
}
func (*GetEmployeesIDReader) ReadResponse ¶
type GetEmployeesOK ¶
type GetEmployeesOK struct {
Payload *models.EmployeePageableResult
}
GetEmployeesOK
员工列表
func NewGetEmployeesOK ¶
func NewGetEmployeesOK() *GetEmployeesOK
NewGetEmployeesOK creates a GetEmployeesOK with default headers values
func (*GetEmployeesOK) Error ¶
func (o *GetEmployeesOK) Error() string
type GetEmployeesParams ¶
type GetEmployeesParams struct { /*Page 当前页码 */ Page int64 /*Pagesize 每页项数 */ Pagesize int64 /*Startupid 创业公司ID */ Startupid int64 }
GetEmployeesParams contains all the parameters to send to the API endpoint for the get employees operation typically these are written to a http.Request
func NewGetEmployeesParams ¶
func NewGetEmployeesParams() *GetEmployeesParams
NewGetEmployeesParams creates a new GetEmployeesParams object with the default values initialized.
func (*GetEmployeesParams) WithPage ¶
func (o *GetEmployeesParams) WithPage(page int64) *GetEmployeesParams
WithPage adds the page to the get employees params
func (*GetEmployeesParams) WithPagesize ¶
func (o *GetEmployeesParams) WithPagesize(pagesize int64) *GetEmployeesParams
WithPagesize adds the pagesize to the get employees params
func (*GetEmployeesParams) WithStartupid ¶
func (o *GetEmployeesParams) WithStartupid(startupid int64) *GetEmployeesParams
WithStartupid adds the startupid to the get employees params
func (*GetEmployeesParams) WriteToRequest ¶
WriteToRequest writes these params to a swagger request
type GetEmployeesReader ¶
type GetEmployeesReader struct {
// contains filtered or unexported fields
}
func (*GetEmployeesReader) ReadResponse ¶
type PostEmployeesBadRequest ¶
PostEmployeesBadRequest
无效请求
func NewPostEmployeesBadRequest ¶
func NewPostEmployeesBadRequest() *PostEmployeesBadRequest
NewPostEmployeesBadRequest creates a PostEmployeesBadRequest with default headers values
func (*PostEmployeesBadRequest) Error ¶
func (o *PostEmployeesBadRequest) Error() string
type PostEmployeesCreated ¶
PostEmployeesCreated
成功创建创业公司员工
func NewPostEmployeesCreated ¶
func NewPostEmployeesCreated() *PostEmployeesCreated
NewPostEmployeesCreated creates a PostEmployeesCreated with default headers values
func (*PostEmployeesCreated) Error ¶
func (o *PostEmployeesCreated) Error() string
type PostEmployeesForbidden ¶
PostEmployeesForbidden
无访问权限
func NewPostEmployeesForbidden ¶
func NewPostEmployeesForbidden() *PostEmployeesForbidden
NewPostEmployeesForbidden creates a PostEmployeesForbidden with default headers values
func (*PostEmployeesForbidden) Error ¶
func (o *PostEmployeesForbidden) Error() string
type PostEmployeesInternalServerError ¶
PostEmployeesInternalServerError
服务端内部错误
func NewPostEmployeesInternalServerError ¶
func NewPostEmployeesInternalServerError() *PostEmployeesInternalServerError
NewPostEmployeesInternalServerError creates a PostEmployeesInternalServerError with default headers values
func (*PostEmployeesInternalServerError) Error ¶
func (o *PostEmployeesInternalServerError) Error() string
type PostEmployeesParams ¶
type PostEmployeesParams struct { /*Body*/ Body *models.AuthenticationResponse }
PostEmployeesParams contains all the parameters to send to the API endpoint for the post employees operation typically these are written to a http.Request
func NewPostEmployeesParams ¶
func NewPostEmployeesParams() *PostEmployeesParams
NewPostEmployeesParams creates a new PostEmployeesParams object with the default values initialized.
func (*PostEmployeesParams) WithBody ¶
func (o *PostEmployeesParams) WithBody(body *models.AuthenticationResponse) *PostEmployeesParams
WithBody adds the body to the post employees params
func (*PostEmployeesParams) WriteToRequest ¶
WriteToRequest writes these params to a swagger request
type PostEmployeesReader ¶
type PostEmployeesReader struct {
// contains filtered or unexported fields
}
func (*PostEmployeesReader) ReadResponse ¶
type PostEmployeesUnauthorized ¶
type PostEmployeesUnauthorized struct {
}PostEmployeesUnauthorized
未认证
func NewPostEmployeesUnauthorized ¶
func NewPostEmployeesUnauthorized() *PostEmployeesUnauthorized
NewPostEmployeesUnauthorized creates a PostEmployeesUnauthorized with default headers values
func (*PostEmployeesUnauthorized) Error ¶
func (o *PostEmployeesUnauthorized) Error() string
type PutEmployeesIDBadRequest ¶
PutEmployeesIDBadRequest
无效请求
func NewPutEmployeesIDBadRequest ¶
func NewPutEmployeesIDBadRequest() *PutEmployeesIDBadRequest
NewPutEmployeesIDBadRequest creates a PutEmployeesIDBadRequest with default headers values
func (*PutEmployeesIDBadRequest) Error ¶
func (o *PutEmployeesIDBadRequest) Error() string
type PutEmployeesIDForbidden ¶
PutEmployeesIDForbidden
无访问权限
func NewPutEmployeesIDForbidden ¶
func NewPutEmployeesIDForbidden() *PutEmployeesIDForbidden
NewPutEmployeesIDForbidden creates a PutEmployeesIDForbidden with default headers values
func (*PutEmployeesIDForbidden) Error ¶
func (o *PutEmployeesIDForbidden) Error() string
type PutEmployeesIDInternalServerError ¶
PutEmployeesIDInternalServerError
服务端内部错误
func NewPutEmployeesIDInternalServerError ¶
func NewPutEmployeesIDInternalServerError() *PutEmployeesIDInternalServerError
NewPutEmployeesIDInternalServerError creates a PutEmployeesIDInternalServerError with default headers values
func (*PutEmployeesIDInternalServerError) Error ¶
func (o *PutEmployeesIDInternalServerError) Error() string
type PutEmployeesIDNotFound ¶
PutEmployeesIDNotFound
没找到指定对象
func NewPutEmployeesIDNotFound ¶
func NewPutEmployeesIDNotFound() *PutEmployeesIDNotFound
NewPutEmployeesIDNotFound creates a PutEmployeesIDNotFound with default headers values
func (*PutEmployeesIDNotFound) Error ¶
func (o *PutEmployeesIDNotFound) Error() string
type PutEmployeesIDOK ¶
PutEmployeesIDOK
成功更新创业公司员工
func NewPutEmployeesIDOK ¶
func NewPutEmployeesIDOK() *PutEmployeesIDOK
NewPutEmployeesIDOK creates a PutEmployeesIDOK with default headers values
func (*PutEmployeesIDOK) Error ¶
func (o *PutEmployeesIDOK) Error() string
type PutEmployeesIDParams ¶
type PutEmployeesIDParams struct { /*Body*/ Body *models.UpdateEmployeeRequest /*ID 创业公司员工ID */ ID int64 }
PutEmployeesIDParams contains all the parameters to send to the API endpoint for the put employees ID operation typically these are written to a http.Request
func NewPutEmployeesIDParams ¶
func NewPutEmployeesIDParams() *PutEmployeesIDParams
NewPutEmployeesIDParams creates a new PutEmployeesIDParams object with the default values initialized.
func (*PutEmployeesIDParams) WithBody ¶
func (o *PutEmployeesIDParams) WithBody(body *models.UpdateEmployeeRequest) *PutEmployeesIDParams
WithBody adds the body to the put employees ID params
func (*PutEmployeesIDParams) WithID ¶
func (o *PutEmployeesIDParams) WithID(id int64) *PutEmployeesIDParams
WithID adds the id to the put employees ID params
func (*PutEmployeesIDParams) WriteToRequest ¶
WriteToRequest writes these params to a swagger request
type PutEmployeesIDReader ¶
type PutEmployeesIDReader struct {
// contains filtered or unexported fields
}
func (*PutEmployeesIDReader) ReadResponse ¶
type PutEmployeesIDUnauthorized ¶
type PutEmployeesIDUnauthorized struct {
}PutEmployeesIDUnauthorized
未认证
func NewPutEmployeesIDUnauthorized ¶
func NewPutEmployeesIDUnauthorized() *PutEmployeesIDUnauthorized
NewPutEmployeesIDUnauthorized creates a PutEmployeesIDUnauthorized with default headers values
func (*PutEmployeesIDUnauthorized) Error ¶
func (o *PutEmployeesIDUnauthorized) Error() string
Source Files ¶
- delete_employees_id_parameters.go
- delete_employees_id_responses.go
- employee_client.go
- get_employees_id_parameters.go
- get_employees_id_responses.go
- get_employees_parameters.go
- get_employees_responses.go
- post_employees_parameters.go
- post_employees_responses.go
- put_employees_id_parameters.go
- put_employees_id_responses.go