employee

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

func New

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

New creates a new employee API client.

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

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

SetTransport changes the transport on the client

type DeleteEmployeesIDBadRequest

type DeleteEmployeesIDBadRequest struct {
	Payload *models.Error
}

DeleteEmployeesIDBadRequest

无效请求

func NewDeleteEmployeesIDBadRequest

func NewDeleteEmployeesIDBadRequest() *DeleteEmployeesIDBadRequest

NewDeleteEmployeesIDBadRequest creates a DeleteEmployeesIDBadRequest with default headers values

func (*DeleteEmployeesIDBadRequest) Error

type DeleteEmployeesIDForbidden

type DeleteEmployeesIDForbidden struct {
	Payload *models.Error
}

DeleteEmployeesIDForbidden

无访问权限

func NewDeleteEmployeesIDForbidden

func NewDeleteEmployeesIDForbidden() *DeleteEmployeesIDForbidden

NewDeleteEmployeesIDForbidden creates a DeleteEmployeesIDForbidden with default headers values

func (*DeleteEmployeesIDForbidden) Error

type DeleteEmployeesIDInternalServerError

type DeleteEmployeesIDInternalServerError struct {
	Payload *models.Error
}

DeleteEmployeesIDInternalServerError

服务端内部错误

func NewDeleteEmployeesIDInternalServerError

func NewDeleteEmployeesIDInternalServerError() *DeleteEmployeesIDInternalServerError

NewDeleteEmployeesIDInternalServerError creates a DeleteEmployeesIDInternalServerError with default headers values

func (*DeleteEmployeesIDInternalServerError) Error

type DeleteEmployeesIDNotFound

type DeleteEmployeesIDNotFound struct {
	Payload *models.Error
}

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

WithID adds the id to the delete employees ID params

func (*DeleteEmployeesIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteEmployeesIDReader

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

func (*DeleteEmployeesIDReader) ReadResponse

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

type DeleteEmployeesIDUnauthorized

type DeleteEmployeesIDUnauthorized struct {
	Payload *models.Error
}

DeleteEmployeesIDUnauthorized

未认证

func NewDeleteEmployeesIDUnauthorized

func NewDeleteEmployeesIDUnauthorized() *DeleteEmployeesIDUnauthorized

NewDeleteEmployeesIDUnauthorized creates a DeleteEmployeesIDUnauthorized with default headers values

func (*DeleteEmployeesIDUnauthorized) Error

type GetEmployeesIDNotFound

type GetEmployeesIDNotFound struct {
	Payload *models.Error
}

GetEmployeesIDNotFound

没找到指定对象

func NewGetEmployeesIDNotFound

func NewGetEmployeesIDNotFound() *GetEmployeesIDNotFound

NewGetEmployeesIDNotFound creates a GetEmployeesIDNotFound with default headers values

func (*GetEmployeesIDNotFound) Error

func (o *GetEmployeesIDNotFound) Error() string

type GetEmployeesIDOK

type GetEmployeesIDOK struct {
	Payload *models.Employee
}

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

WithID adds the id to the get employees ID params

func (*GetEmployeesIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetEmployeesIDReader

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

func (*GetEmployeesIDReader) ReadResponse

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

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

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

WriteToRequest writes these params to a swagger request

type GetEmployeesReader

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

func (*GetEmployeesReader) ReadResponse

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

type PostEmployeesBadRequest

type PostEmployeesBadRequest struct {
	Payload *models.Error
}

PostEmployeesBadRequest

无效请求

func NewPostEmployeesBadRequest

func NewPostEmployeesBadRequest() *PostEmployeesBadRequest

NewPostEmployeesBadRequest creates a PostEmployeesBadRequest with default headers values

func (*PostEmployeesBadRequest) Error

func (o *PostEmployeesBadRequest) Error() string

type PostEmployeesCreated

type PostEmployeesCreated struct {
	Payload *models.Employee
}

PostEmployeesCreated

成功创建创业公司员工

func NewPostEmployeesCreated

func NewPostEmployeesCreated() *PostEmployeesCreated

NewPostEmployeesCreated creates a PostEmployeesCreated with default headers values

func (*PostEmployeesCreated) Error

func (o *PostEmployeesCreated) Error() string

type PostEmployeesForbidden

type PostEmployeesForbidden struct {
	Payload *models.Error
}

PostEmployeesForbidden

无访问权限

func NewPostEmployeesForbidden

func NewPostEmployeesForbidden() *PostEmployeesForbidden

NewPostEmployeesForbidden creates a PostEmployeesForbidden with default headers values

func (*PostEmployeesForbidden) Error

func (o *PostEmployeesForbidden) Error() string

type PostEmployeesInternalServerError

type PostEmployeesInternalServerError struct {
	Payload *models.Error
}

PostEmployeesInternalServerError

服务端内部错误

func NewPostEmployeesInternalServerError

func NewPostEmployeesInternalServerError() *PostEmployeesInternalServerError

NewPostEmployeesInternalServerError creates a PostEmployeesInternalServerError with default headers values

func (*PostEmployeesInternalServerError) Error

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

WithBody adds the body to the post employees params

func (*PostEmployeesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostEmployeesReader

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

func (*PostEmployeesReader) ReadResponse

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

type PostEmployeesUnauthorized

type PostEmployeesUnauthorized struct {
	Payload *models.Error
}

PostEmployeesUnauthorized

未认证

func NewPostEmployeesUnauthorized

func NewPostEmployeesUnauthorized() *PostEmployeesUnauthorized

NewPostEmployeesUnauthorized creates a PostEmployeesUnauthorized with default headers values

func (*PostEmployeesUnauthorized) Error

func (o *PostEmployeesUnauthorized) Error() string

type PutEmployeesIDBadRequest

type PutEmployeesIDBadRequest struct {
	Payload *models.Error
}

PutEmployeesIDBadRequest

无效请求

func NewPutEmployeesIDBadRequest

func NewPutEmployeesIDBadRequest() *PutEmployeesIDBadRequest

NewPutEmployeesIDBadRequest creates a PutEmployeesIDBadRequest with default headers values

func (*PutEmployeesIDBadRequest) Error

func (o *PutEmployeesIDBadRequest) Error() string

type PutEmployeesIDForbidden

type PutEmployeesIDForbidden struct {
	Payload *models.Error
}

PutEmployeesIDForbidden

无访问权限

func NewPutEmployeesIDForbidden

func NewPutEmployeesIDForbidden() *PutEmployeesIDForbidden

NewPutEmployeesIDForbidden creates a PutEmployeesIDForbidden with default headers values

func (*PutEmployeesIDForbidden) Error

func (o *PutEmployeesIDForbidden) Error() string

type PutEmployeesIDInternalServerError

type PutEmployeesIDInternalServerError struct {
	Payload *models.Error
}

PutEmployeesIDInternalServerError

服务端内部错误

func NewPutEmployeesIDInternalServerError

func NewPutEmployeesIDInternalServerError() *PutEmployeesIDInternalServerError

NewPutEmployeesIDInternalServerError creates a PutEmployeesIDInternalServerError with default headers values

func (*PutEmployeesIDInternalServerError) Error

type PutEmployeesIDNotFound

type PutEmployeesIDNotFound struct {
	Payload *models.Error
}

PutEmployeesIDNotFound

没找到指定对象

func NewPutEmployeesIDNotFound

func NewPutEmployeesIDNotFound() *PutEmployeesIDNotFound

NewPutEmployeesIDNotFound creates a PutEmployeesIDNotFound with default headers values

func (*PutEmployeesIDNotFound) Error

func (o *PutEmployeesIDNotFound) Error() string

type PutEmployeesIDOK

type PutEmployeesIDOK struct {
	Payload *models.Employee
}

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

WithBody adds the body to the put employees ID params

func (*PutEmployeesIDParams) WithID

WithID adds the id to the put employees ID params

func (*PutEmployeesIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PutEmployeesIDReader

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

func (*PutEmployeesIDReader) ReadResponse

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

type PutEmployeesIDUnauthorized

type PutEmployeesIDUnauthorized struct {
	Payload *models.Error
}

PutEmployeesIDUnauthorized

未认证

func NewPutEmployeesIDUnauthorized

func NewPutEmployeesIDUnauthorized() *PutEmployeesIDUnauthorized

NewPutEmployeesIDUnauthorized creates a PutEmployeesIDUnauthorized with default headers values

func (*PutEmployeesIDUnauthorized) Error

Jump to

Keyboard shortcuts

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