user

package
v0.0.0-...-2fe84d8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2022 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const CreatePersonalOKCode int = 200

CreatePersonalOKCode is the HTTP code returned for type CreatePersonalOK

View Source
const CreateUserOKCode int = 200

CreateUserOKCode is the HTTP code returned for type CreateUserOK

View Source
const DeletePersonalOKCode int = 200

DeletePersonalOKCode is the HTTP code returned for type DeletePersonalOK

View Source
const DeleteUserOKCode int = 200

DeleteUserOKCode is the HTTP code returned for type DeleteUserOK

View Source
const GetPersonalOKCode int = 200

GetPersonalOKCode is the HTTP code returned for type GetPersonalOK

View Source
const GetPersonalsOKCode int = 200

GetPersonalsOKCode is the HTTP code returned for type GetPersonalsOK

View Source
const GetUserInfoOKCode int = 200

GetUserInfoOKCode is the HTTP code returned for type GetUserInfoOK

View Source
const GetUserOKCode int = 200

GetUserOKCode is the HTTP code returned for type GetUserOK

View Source
const GetUsersOKCode int = 200

GetUsersOKCode is the HTTP code returned for type GetUsersOK

View Source
const LoginOKCode int = 200

LoginOKCode is the HTTP code returned for type LoginOK

View Source
const LogoutOKCode int = 200

LogoutOKCode is the HTTP code returned for type LogoutOK

View Source
const ModifyUserPasswordOKCode int = 200

ModifyUserPasswordOKCode is the HTTP code returned for type ModifyUserPasswordOK

View Source
const UpdatePersonalOKCode int = 200

UpdatePersonalOKCode is the HTTP code returned for type UpdatePersonalOK

View Source
const UpdateUserOKCode int = 200

UpdateUserOKCode is the HTTP code returned for type UpdateUserOK

Variables

View Source
var LoginMaxParseMemory int64 = 32 << 20

LoginMaxParseMemory sets the maximum size in bytes for the multipart form parser for this operation.

The default value is 32 MB. The multipart parser stores up to this + 10MB.

View Source
var ModifyUserPasswordMaxParseMemory int64 = 32 << 20

ModifyUserPasswordMaxParseMemory sets the maximum size in bytes for the multipart form parser for this operation.

The default value is 32 MB. The multipart parser stores up to this + 10MB.

Functions

This section is empty.

Types

type CreatePersonal

type CreatePersonal struct {
	Context *middleware.Context
	Handler CreatePersonalHandler
}
CreatePersonal swagger:route POST /v1/personal user createPersonal

创建个人基础信息

创建个人基础信息

func NewCreatePersonal

func NewCreatePersonal(ctx *middleware.Context, handler CreatePersonalHandler) *CreatePersonal

NewCreatePersonal creates a new http.Handler for the create personal operation

func (*CreatePersonal) ServeHTTP

func (o *CreatePersonal) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CreatePersonalHandler

type CreatePersonalHandler interface {
	Handle(CreatePersonalParams, *v1.Principal) middleware.Responder
}

CreatePersonalHandler interface for that can handle valid create personal params

type CreatePersonalHandlerFunc

type CreatePersonalHandlerFunc func(CreatePersonalParams, *v1.Principal) middleware.Responder

CreatePersonalHandlerFunc turns a function with the right signature into a create personal handler

func (CreatePersonalHandlerFunc) Handle

Handle executing the request and returning a response

type CreatePersonalOK

type CreatePersonalOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Personal `json:"body,omitempty"`
}

CreatePersonalOK ok

swagger:response createPersonalOK

func NewCreatePersonalOK

func NewCreatePersonalOK() *CreatePersonalOK

NewCreatePersonalOK creates CreatePersonalOK with default headers values

func (*CreatePersonalOK) SetPayload

func (o *CreatePersonalOK) SetPayload(payload *v1.Personal)

SetPayload sets the payload to the create personal o k response

func (*CreatePersonalOK) WithPayload

func (o *CreatePersonalOK) WithPayload(payload *v1.Personal) *CreatePersonalOK

WithPayload adds the payload to the create personal o k response

func (*CreatePersonalOK) WriteResponse

func (o *CreatePersonalOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreatePersonalParams

type CreatePersonalParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*个人基础信息
	  Required: true
	  In: body
	*/
	Body *v1.Personal
}

CreatePersonalParams contains all the bound params for the create personal operation typically these are obtained from a http.Request

swagger:parameters CreatePersonal

func NewCreatePersonalParams

func NewCreatePersonalParams() CreatePersonalParams

NewCreatePersonalParams creates a new CreatePersonalParams object

There are no default values defined in the spec.

func (*CreatePersonalParams) BindRequest

func (o *CreatePersonalParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCreatePersonalParams() beforehand.

type CreatePersonalURL

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

CreatePersonalURL generates an URL for the create personal operation

func (*CreatePersonalURL) Build

func (o *CreatePersonalURL) Build() (*url.URL, error)

Build a url path and query string

func (*CreatePersonalURL) BuildFull

func (o *CreatePersonalURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreatePersonalURL) Must

func (o *CreatePersonalURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CreatePersonalURL) SetBasePath

func (o *CreatePersonalURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CreatePersonalURL) String

func (o *CreatePersonalURL) String() string

String returns the string representation of the path with query string

func (*CreatePersonalURL) StringFull

func (o *CreatePersonalURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreatePersonalURL) WithBasePath

func (o *CreatePersonalURL) WithBasePath(bp string) *CreatePersonalURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type CreateUser

type CreateUser struct {
	Context *middleware.Context
	Handler CreateUserHandler
}
CreateUser swagger:route POST /v1/user user createUser

创建用户

创建用户

func NewCreateUser

func NewCreateUser(ctx *middleware.Context, handler CreateUserHandler) *CreateUser

NewCreateUser creates a new http.Handler for the create user operation

func (*CreateUser) ServeHTTP

func (o *CreateUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CreateUserHandler

type CreateUserHandler interface {
	Handle(CreateUserParams, *v1.Principal) middleware.Responder
}

CreateUserHandler interface for that can handle valid create user params

type CreateUserHandlerFunc

type CreateUserHandlerFunc func(CreateUserParams, *v1.Principal) middleware.Responder

CreateUserHandlerFunc turns a function with the right signature into a create user handler

func (CreateUserHandlerFunc) Handle

Handle executing the request and returning a response

type CreateUserOK

type CreateUserOK struct {

	/*
	  In: Body
	*/
	Payload *v1.User `json:"body,omitempty"`
}

CreateUserOK ok

swagger:response createUserOK

func NewCreateUserOK

func NewCreateUserOK() *CreateUserOK

NewCreateUserOK creates CreateUserOK with default headers values

func (*CreateUserOK) SetPayload

func (o *CreateUserOK) SetPayload(payload *v1.User)

SetPayload sets the payload to the create user o k response

func (*CreateUserOK) WithPayload

func (o *CreateUserOK) WithPayload(payload *v1.User) *CreateUserOK

WithPayload adds the payload to the create user o k response

func (*CreateUserOK) WriteResponse

func (o *CreateUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateUserParams

type CreateUserParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*用户信息
	  Required: true
	  In: body
	*/
	Body *v1.User
}

CreateUserParams contains all the bound params for the create user operation typically these are obtained from a http.Request

swagger:parameters CreateUser

func NewCreateUserParams

func NewCreateUserParams() CreateUserParams

NewCreateUserParams creates a new CreateUserParams object

There are no default values defined in the spec.

func (*CreateUserParams) BindRequest

func (o *CreateUserParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCreateUserParams() beforehand.

type CreateUserURL

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

CreateUserURL generates an URL for the create user operation

func (*CreateUserURL) Build

func (o *CreateUserURL) Build() (*url.URL, error)

Build a url path and query string

func (*CreateUserURL) BuildFull

func (o *CreateUserURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreateUserURL) Must

func (o *CreateUserURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CreateUserURL) SetBasePath

func (o *CreateUserURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CreateUserURL) String

func (o *CreateUserURL) String() string

String returns the string representation of the path with query string

func (*CreateUserURL) StringFull

func (o *CreateUserURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreateUserURL) WithBasePath

func (o *CreateUserURL) WithBasePath(bp string) *CreateUserURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type DeletePersonal

type DeletePersonal struct {
	Context *middleware.Context
	Handler DeletePersonalHandler
}
DeletePersonal swagger:route DELETE /v1/personal/{id} user deletePersonal

删除个人基础信息

删除个人基础信息

func NewDeletePersonal

func NewDeletePersonal(ctx *middleware.Context, handler DeletePersonalHandler) *DeletePersonal

NewDeletePersonal creates a new http.Handler for the delete personal operation

func (*DeletePersonal) ServeHTTP

func (o *DeletePersonal) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeletePersonalHandler

type DeletePersonalHandler interface {
	Handle(DeletePersonalParams, *v1.Principal) middleware.Responder
}

DeletePersonalHandler interface for that can handle valid delete personal params

type DeletePersonalHandlerFunc

type DeletePersonalHandlerFunc func(DeletePersonalParams, *v1.Principal) middleware.Responder

DeletePersonalHandlerFunc turns a function with the right signature into a delete personal handler

func (DeletePersonalHandlerFunc) Handle

Handle executing the request and returning a response

type DeletePersonalOK

type DeletePersonalOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Personal `json:"body,omitempty"`
}

DeletePersonalOK A successful response.

swagger:response deletePersonalOK

func NewDeletePersonalOK

func NewDeletePersonalOK() *DeletePersonalOK

NewDeletePersonalOK creates DeletePersonalOK with default headers values

func (*DeletePersonalOK) SetPayload

func (o *DeletePersonalOK) SetPayload(payload *v1.Personal)

SetPayload sets the payload to the delete personal o k response

func (*DeletePersonalOK) WithPayload

func (o *DeletePersonalOK) WithPayload(payload *v1.Personal) *DeletePersonalOK

WithPayload adds the payload to the delete personal o k response

func (*DeletePersonalOK) WriteResponse

func (o *DeletePersonalOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeletePersonalParams

type DeletePersonalParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*个人基础信息ID
	  Required: true
	  In: path
	*/
	ID string
}

DeletePersonalParams contains all the bound params for the delete personal operation typically these are obtained from a http.Request

swagger:parameters DeletePersonal

func NewDeletePersonalParams

func NewDeletePersonalParams() DeletePersonalParams

NewDeletePersonalParams creates a new DeletePersonalParams object

There are no default values defined in the spec.

func (*DeletePersonalParams) BindRequest

func (o *DeletePersonalParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewDeletePersonalParams() beforehand.

type DeletePersonalURL

type DeletePersonalURL struct {
	ID string
	// contains filtered or unexported fields
}

DeletePersonalURL generates an URL for the delete personal operation

func (*DeletePersonalURL) Build

func (o *DeletePersonalURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeletePersonalURL) BuildFull

func (o *DeletePersonalURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeletePersonalURL) Must

func (o *DeletePersonalURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeletePersonalURL) SetBasePath

func (o *DeletePersonalURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*DeletePersonalURL) String

func (o *DeletePersonalURL) String() string

String returns the string representation of the path with query string

func (*DeletePersonalURL) StringFull

func (o *DeletePersonalURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeletePersonalURL) WithBasePath

func (o *DeletePersonalURL) WithBasePath(bp string) *DeletePersonalURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type DeleteUser

type DeleteUser struct {
	Context *middleware.Context
	Handler DeleteUserHandler
}
DeleteUser swagger:route DELETE /v1/user/{id} user deleteUser

删除用户

删除单个用户

func NewDeleteUser

func NewDeleteUser(ctx *middleware.Context, handler DeleteUserHandler) *DeleteUser

NewDeleteUser creates a new http.Handler for the delete user operation

func (*DeleteUser) ServeHTTP

func (o *DeleteUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteUserHandler

type DeleteUserHandler interface {
	Handle(DeleteUserParams, *v1.Principal) middleware.Responder
}

DeleteUserHandler interface for that can handle valid delete user params

type DeleteUserHandlerFunc

type DeleteUserHandlerFunc func(DeleteUserParams, *v1.Principal) middleware.Responder

DeleteUserHandlerFunc turns a function with the right signature into a delete user handler

func (DeleteUserHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteUserOK

type DeleteUserOK struct {

	/*
	  In: Body
	*/
	Payload *v1.User `json:"body,omitempty"`
}

DeleteUserOK A successful response.

swagger:response deleteUserOK

func NewDeleteUserOK

func NewDeleteUserOK() *DeleteUserOK

NewDeleteUserOK creates DeleteUserOK with default headers values

func (*DeleteUserOK) SetPayload

func (o *DeleteUserOK) SetPayload(payload *v1.User)

SetPayload sets the payload to the delete user o k response

func (*DeleteUserOK) WithPayload

func (o *DeleteUserOK) WithPayload(payload *v1.User) *DeleteUserOK

WithPayload adds the payload to the delete user o k response

func (*DeleteUserOK) WriteResponse

func (o *DeleteUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteUserParams

type DeleteUserParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*用户ID
	  Required: true
	  In: path
	*/
	ID string
}

DeleteUserParams contains all the bound params for the delete user operation typically these are obtained from a http.Request

swagger:parameters DeleteUser

func NewDeleteUserParams

func NewDeleteUserParams() DeleteUserParams

NewDeleteUserParams creates a new DeleteUserParams object

There are no default values defined in the spec.

func (*DeleteUserParams) BindRequest

func (o *DeleteUserParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewDeleteUserParams() beforehand.

type DeleteUserURL

type DeleteUserURL struct {
	ID string
	// contains filtered or unexported fields
}

DeleteUserURL generates an URL for the delete user operation

func (*DeleteUserURL) Build

func (o *DeleteUserURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteUserURL) BuildFull

func (o *DeleteUserURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteUserURL) Must

func (o *DeleteUserURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeleteUserURL) SetBasePath

func (o *DeleteUserURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*DeleteUserURL) String

func (o *DeleteUserURL) String() string

String returns the string representation of the path with query string

func (*DeleteUserURL) StringFull

func (o *DeleteUserURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteUserURL) WithBasePath

func (o *DeleteUserURL) WithBasePath(bp string) *DeleteUserURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetPersonal

type GetPersonal struct {
	Context *middleware.Context
	Handler GetPersonalHandler
}
GetPersonal swagger:route GET /v1/personal/{id} user getPersonal

获取个人基础信息

获取个人基础信息

func NewGetPersonal

func NewGetPersonal(ctx *middleware.Context, handler GetPersonalHandler) *GetPersonal

NewGetPersonal creates a new http.Handler for the get personal operation

func (*GetPersonal) ServeHTTP

func (o *GetPersonal) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetPersonalHandler

type GetPersonalHandler interface {
	Handle(GetPersonalParams, *v1.Principal) middleware.Responder
}

GetPersonalHandler interface for that can handle valid get personal params

type GetPersonalHandlerFunc

type GetPersonalHandlerFunc func(GetPersonalParams, *v1.Principal) middleware.Responder

GetPersonalHandlerFunc turns a function with the right signature into a get personal handler

func (GetPersonalHandlerFunc) Handle

Handle executing the request and returning a response

type GetPersonalOK

type GetPersonalOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Personal `json:"body,omitempty"`
}

GetPersonalOK A successful response.

swagger:response getPersonalOK

func NewGetPersonalOK

func NewGetPersonalOK() *GetPersonalOK

NewGetPersonalOK creates GetPersonalOK with default headers values

func (*GetPersonalOK) SetPayload

func (o *GetPersonalOK) SetPayload(payload *v1.Personal)

SetPayload sets the payload to the get personal o k response

func (*GetPersonalOK) WithPayload

func (o *GetPersonalOK) WithPayload(payload *v1.Personal) *GetPersonalOK

WithPayload adds the payload to the get personal o k response

func (*GetPersonalOK) WriteResponse

func (o *GetPersonalOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPersonalParams

type GetPersonalParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*个人基础信息ID
	  Required: true
	  In: path
	*/
	ID string
}

GetPersonalParams contains all the bound params for the get personal operation typically these are obtained from a http.Request

swagger:parameters GetPersonal

func NewGetPersonalParams

func NewGetPersonalParams() GetPersonalParams

NewGetPersonalParams creates a new GetPersonalParams object

There are no default values defined in the spec.

func (*GetPersonalParams) BindRequest

func (o *GetPersonalParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetPersonalParams() beforehand.

type GetPersonalURL

type GetPersonalURL struct {
	ID string
	// contains filtered or unexported fields
}

GetPersonalURL generates an URL for the get personal operation

func (*GetPersonalURL) Build

func (o *GetPersonalURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetPersonalURL) BuildFull

func (o *GetPersonalURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetPersonalURL) Must

func (o *GetPersonalURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetPersonalURL) SetBasePath

func (o *GetPersonalURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetPersonalURL) String

func (o *GetPersonalURL) String() string

String returns the string representation of the path with query string

func (*GetPersonalURL) StringFull

func (o *GetPersonalURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetPersonalURL) WithBasePath

func (o *GetPersonalURL) WithBasePath(bp string) *GetPersonalURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetPersonals

type GetPersonals struct {
	Context *middleware.Context
	Handler GetPersonalsHandler
}
GetPersonals swagger:route GET /v1/personals user getPersonals

获取个人基础信息列表

获取个人基础信息列表

func NewGetPersonals

func NewGetPersonals(ctx *middleware.Context, handler GetPersonalsHandler) *GetPersonals

NewGetPersonals creates a new http.Handler for the get personals operation

func (*GetPersonals) ServeHTTP

func (o *GetPersonals) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetPersonalsHandler

type GetPersonalsHandler interface {
	Handle(GetPersonalsParams, *v1.Principal) middleware.Responder
}

GetPersonalsHandler interface for that can handle valid get personals params

type GetPersonalsHandlerFunc

type GetPersonalsHandlerFunc func(GetPersonalsParams, *v1.Principal) middleware.Responder

GetPersonalsHandlerFunc turns a function with the right signature into a get personals handler

func (GetPersonalsHandlerFunc) Handle

Handle executing the request and returning a response

type GetPersonalsOK

type GetPersonalsOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Personals `json:"body,omitempty"`
}

GetPersonalsOK ok

swagger:response getPersonalsOK

func NewGetPersonalsOK

func NewGetPersonalsOK() *GetPersonalsOK

NewGetPersonalsOK creates GetPersonalsOK with default headers values

func (*GetPersonalsOK) SetPayload

func (o *GetPersonalsOK) SetPayload(payload *v1.Personals)

SetPayload sets the payload to the get personals o k response

func (*GetPersonalsOK) WithPayload

func (o *GetPersonalsOK) WithPayload(payload *v1.Personals) *GetPersonalsOK

WithPayload adds the payload to the get personals o k response

func (*GetPersonalsOK) WriteResponse

func (o *GetPersonalsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetPersonalsParams

type GetPersonalsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*限制条目数
	  In: query
	*/
	Limit *int64
	/*筛选条件
	  In: query
	*/
	Query *string
	/*翻过条目数
	  In: query
	*/
	Skip *int64
}

GetPersonalsParams contains all the bound params for the get personals operation typically these are obtained from a http.Request

swagger:parameters GetPersonals

func NewGetPersonalsParams

func NewGetPersonalsParams() GetPersonalsParams

NewGetPersonalsParams creates a new GetPersonalsParams object

There are no default values defined in the spec.

func (*GetPersonalsParams) BindRequest

func (o *GetPersonalsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetPersonalsParams() beforehand.

type GetPersonalsURL

type GetPersonalsURL struct {
	Limit *int64
	Query *string
	Skip  *int64
	// contains filtered or unexported fields
}

GetPersonalsURL generates an URL for the get personals operation

func (*GetPersonalsURL) Build

func (o *GetPersonalsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetPersonalsURL) BuildFull

func (o *GetPersonalsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetPersonalsURL) Must

func (o *GetPersonalsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetPersonalsURL) SetBasePath

func (o *GetPersonalsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetPersonalsURL) String

func (o *GetPersonalsURL) String() string

String returns the string representation of the path with query string

func (*GetPersonalsURL) StringFull

func (o *GetPersonalsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetPersonalsURL) WithBasePath

func (o *GetPersonalsURL) WithBasePath(bp string) *GetPersonalsURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetUser

type GetUser struct {
	Context *middleware.Context
	Handler GetUserHandler
}
GetUser swagger:route GET /v1/user/{id} user getUser

获取用户信息

获取单个用户的详细信息

func NewGetUser

func NewGetUser(ctx *middleware.Context, handler GetUserHandler) *GetUser

NewGetUser creates a new http.Handler for the get user operation

func (*GetUser) ServeHTTP

func (o *GetUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetUserHandler

type GetUserHandler interface {
	Handle(GetUserParams, *v1.Principal) middleware.Responder
}

GetUserHandler interface for that can handle valid get user params

type GetUserHandlerFunc

type GetUserHandlerFunc func(GetUserParams, *v1.Principal) middleware.Responder

GetUserHandlerFunc turns a function with the right signature into a get user handler

func (GetUserHandlerFunc) Handle

func (fn GetUserHandlerFunc) Handle(params GetUserParams, principal *v1.Principal) middleware.Responder

Handle executing the request and returning a response

type GetUserInfo

type GetUserInfo struct {
	Context *middleware.Context
	Handler GetUserInfoHandler
}
GetUserInfo swagger:route GET /v1/user user getUserInfo

获取当前用户信息

获取当前用户信息

func NewGetUserInfo

func NewGetUserInfo(ctx *middleware.Context, handler GetUserInfoHandler) *GetUserInfo

NewGetUserInfo creates a new http.Handler for the get user info operation

func (*GetUserInfo) ServeHTTP

func (o *GetUserInfo) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetUserInfoHandler

type GetUserInfoHandler interface {
	Handle(GetUserInfoParams, *v1.Principal) middleware.Responder
}

GetUserInfoHandler interface for that can handle valid get user info params

type GetUserInfoHandlerFunc

type GetUserInfoHandlerFunc func(GetUserInfoParams, *v1.Principal) middleware.Responder

GetUserInfoHandlerFunc turns a function with the right signature into a get user info handler

func (GetUserInfoHandlerFunc) Handle

Handle executing the request and returning a response

type GetUserInfoOK

type GetUserInfoOK struct {

	/*
	  In: Body
	*/
	Payload *v1.User `json:"body,omitempty"`
}

GetUserInfoOK A successful response.

swagger:response getUserInfoOK

func NewGetUserInfoOK

func NewGetUserInfoOK() *GetUserInfoOK

NewGetUserInfoOK creates GetUserInfoOK with default headers values

func (*GetUserInfoOK) SetPayload

func (o *GetUserInfoOK) SetPayload(payload *v1.User)

SetPayload sets the payload to the get user info o k response

func (*GetUserInfoOK) WithPayload

func (o *GetUserInfoOK) WithPayload(payload *v1.User) *GetUserInfoOK

WithPayload adds the payload to the get user info o k response

func (*GetUserInfoOK) WriteResponse

func (o *GetUserInfoOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetUserInfoParams

type GetUserInfoParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

GetUserInfoParams contains all the bound params for the get user info operation typically these are obtained from a http.Request

swagger:parameters GetUserInfo

func NewGetUserInfoParams

func NewGetUserInfoParams() GetUserInfoParams

NewGetUserInfoParams creates a new GetUserInfoParams object

There are no default values defined in the spec.

func (*GetUserInfoParams) BindRequest

func (o *GetUserInfoParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetUserInfoParams() beforehand.

type GetUserInfoURL

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

GetUserInfoURL generates an URL for the get user info operation

func (*GetUserInfoURL) Build

func (o *GetUserInfoURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetUserInfoURL) BuildFull

func (o *GetUserInfoURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetUserInfoURL) Must

func (o *GetUserInfoURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetUserInfoURL) SetBasePath

func (o *GetUserInfoURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetUserInfoURL) String

func (o *GetUserInfoURL) String() string

String returns the string representation of the path with query string

func (*GetUserInfoURL) StringFull

func (o *GetUserInfoURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetUserInfoURL) WithBasePath

func (o *GetUserInfoURL) WithBasePath(bp string) *GetUserInfoURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetUserOK

type GetUserOK struct {

	/*
	  In: Body
	*/
	Payload *v1.User `json:"body,omitempty"`
}

GetUserOK A successful response.

swagger:response getUserOK

func NewGetUserOK

func NewGetUserOK() *GetUserOK

NewGetUserOK creates GetUserOK with default headers values

func (*GetUserOK) SetPayload

func (o *GetUserOK) SetPayload(payload *v1.User)

SetPayload sets the payload to the get user o k response

func (*GetUserOK) WithPayload

func (o *GetUserOK) WithPayload(payload *v1.User) *GetUserOK

WithPayload adds the payload to the get user o k response

func (*GetUserOK) WriteResponse

func (o *GetUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetUserParams

type GetUserParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*用户ID
	  Required: true
	  In: path
	*/
	ID string
}

GetUserParams contains all the bound params for the get user operation typically these are obtained from a http.Request

swagger:parameters GetUser

func NewGetUserParams

func NewGetUserParams() GetUserParams

NewGetUserParams creates a new GetUserParams object

There are no default values defined in the spec.

func (*GetUserParams) BindRequest

func (o *GetUserParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetUserParams() beforehand.

type GetUserURL

type GetUserURL struct {
	ID string
	// contains filtered or unexported fields
}

GetUserURL generates an URL for the get user operation

func (*GetUserURL) Build

func (o *GetUserURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetUserURL) BuildFull

func (o *GetUserURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetUserURL) Must

func (o *GetUserURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetUserURL) SetBasePath

func (o *GetUserURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetUserURL) String

func (o *GetUserURL) String() string

String returns the string representation of the path with query string

func (*GetUserURL) StringFull

func (o *GetUserURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetUserURL) WithBasePath

func (o *GetUserURL) WithBasePath(bp string) *GetUserURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetUsers

type GetUsers struct {
	Context *middleware.Context
	Handler GetUsersHandler
}
GetUsers swagger:route GET /v1/users user getUsers

获取用户列表

获取用户列表

func NewGetUsers

func NewGetUsers(ctx *middleware.Context, handler GetUsersHandler) *GetUsers

NewGetUsers creates a new http.Handler for the get users operation

func (*GetUsers) ServeHTTP

func (o *GetUsers) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetUsersHandler

type GetUsersHandler interface {
	Handle(GetUsersParams, *v1.Principal) middleware.Responder
}

GetUsersHandler interface for that can handle valid get users params

type GetUsersHandlerFunc

type GetUsersHandlerFunc func(GetUsersParams, *v1.Principal) middleware.Responder

GetUsersHandlerFunc turns a function with the right signature into a get users handler

func (GetUsersHandlerFunc) Handle

func (fn GetUsersHandlerFunc) Handle(params GetUsersParams, principal *v1.Principal) middleware.Responder

Handle executing the request and returning a response

type GetUsersOK

type GetUsersOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Users `json:"body,omitempty"`
}

GetUsersOK ok

swagger:response getUsersOK

func NewGetUsersOK

func NewGetUsersOK() *GetUsersOK

NewGetUsersOK creates GetUsersOK with default headers values

func (*GetUsersOK) SetPayload

func (o *GetUsersOK) SetPayload(payload *v1.Users)

SetPayload sets the payload to the get users o k response

func (*GetUsersOK) WithPayload

func (o *GetUsersOK) WithPayload(payload *v1.Users) *GetUsersOK

WithPayload adds the payload to the get users o k response

func (*GetUsersOK) WriteResponse

func (o *GetUsersOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetUsersParams

type GetUsersParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*限制条目数
	  In: query
	*/
	Limit *int64
	/*筛选条件
	  In: query
	*/
	Query *string
	/*翻过条目数
	  In: query
	*/
	Skip *int64
}

GetUsersParams contains all the bound params for the get users operation typically these are obtained from a http.Request

swagger:parameters GetUsers

func NewGetUsersParams

func NewGetUsersParams() GetUsersParams

NewGetUsersParams creates a new GetUsersParams object

There are no default values defined in the spec.

func (*GetUsersParams) BindRequest

func (o *GetUsersParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetUsersParams() beforehand.

type GetUsersURL

type GetUsersURL struct {
	Limit *int64
	Query *string
	Skip  *int64
	// contains filtered or unexported fields
}

GetUsersURL generates an URL for the get users operation

func (*GetUsersURL) Build

func (o *GetUsersURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetUsersURL) BuildFull

func (o *GetUsersURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetUsersURL) Must

func (o *GetUsersURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetUsersURL) SetBasePath

func (o *GetUsersURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetUsersURL) String

func (o *GetUsersURL) String() string

String returns the string representation of the path with query string

func (*GetUsersURL) StringFull

func (o *GetUsersURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetUsersURL) WithBasePath

func (o *GetUsersURL) WithBasePath(bp string) *GetUsersURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type Login

type Login struct {
	Context *middleware.Context
	Handler LoginHandler
}
Login swagger:route POST /v1/login user login

用户登陆

用户登陆

func NewLogin

func NewLogin(ctx *middleware.Context, handler LoginHandler) *Login

NewLogin creates a new http.Handler for the login operation

func (*Login) ServeHTTP

func (o *Login) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type LoginHandler

type LoginHandler interface {
	Handle(LoginParams) middleware.Responder
}

LoginHandler interface for that can handle valid login params

type LoginHandlerFunc

type LoginHandlerFunc func(LoginParams) middleware.Responder

LoginHandlerFunc turns a function with the right signature into a login handler

func (LoginHandlerFunc) Handle

Handle executing the request and returning a response

type LoginOK

type LoginOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Token `json:"body,omitempty"`
}

LoginOK A successful response.

swagger:response loginOK

func NewLoginOK

func NewLoginOK() *LoginOK

NewLoginOK creates LoginOK with default headers values

func (*LoginOK) SetPayload

func (o *LoginOK) SetPayload(payload *v1.Token)

SetPayload sets the payload to the login o k response

func (*LoginOK) WithPayload

func (o *LoginOK) WithPayload(payload *v1.Token) *LoginOK

WithPayload adds the payload to the login o k response

func (*LoginOK) WriteResponse

func (o *LoginOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type LoginParams

type LoginParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*密码
	  Required: true
	  In: formData
	*/
	Password string
	/*用户名
	  Required: true
	  In: formData
	*/
	Username string
}

LoginParams contains all the bound params for the login operation typically these are obtained from a http.Request

swagger:parameters Login

func NewLoginParams

func NewLoginParams() LoginParams

NewLoginParams creates a new LoginParams object

There are no default values defined in the spec.

func (*LoginParams) BindRequest

func (o *LoginParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewLoginParams() beforehand.

type LoginURL

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

LoginURL generates an URL for the login operation

func (*LoginURL) Build

func (o *LoginURL) Build() (*url.URL, error)

Build a url path and query string

func (*LoginURL) BuildFull

func (o *LoginURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*LoginURL) Must

func (o *LoginURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*LoginURL) SetBasePath

func (o *LoginURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*LoginURL) String

func (o *LoginURL) String() string

String returns the string representation of the path with query string

func (*LoginURL) StringFull

func (o *LoginURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*LoginURL) WithBasePath

func (o *LoginURL) WithBasePath(bp string) *LoginURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type Logout

type Logout struct {
	Context *middleware.Context
	Handler LogoutHandler
}
Logout swagger:route POST /v1/logout user logout

用户登出

用户登出

func NewLogout

func NewLogout(ctx *middleware.Context, handler LogoutHandler) *Logout

NewLogout creates a new http.Handler for the logout operation

func (*Logout) ServeHTTP

func (o *Logout) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type LogoutHandler

type LogoutHandler interface {
	Handle(LogoutParams) middleware.Responder
}

LogoutHandler interface for that can handle valid logout params

type LogoutHandlerFunc

type LogoutHandlerFunc func(LogoutParams) middleware.Responder

LogoutHandlerFunc turns a function with the right signature into a logout handler

func (LogoutHandlerFunc) Handle

Handle executing the request and returning a response

type LogoutOK

type LogoutOK struct {
}

LogoutOK A successful response.

swagger:response logoutOK

func NewLogoutOK

func NewLogoutOK() *LogoutOK

NewLogoutOK creates LogoutOK with default headers values

func (*LogoutOK) WriteResponse

func (o *LogoutOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type LogoutParams

type LogoutParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

LogoutParams contains all the bound params for the logout operation typically these are obtained from a http.Request

swagger:parameters Logout

func NewLogoutParams

func NewLogoutParams() LogoutParams

NewLogoutParams creates a new LogoutParams object

There are no default values defined in the spec.

func (*LogoutParams) BindRequest

func (o *LogoutParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewLogoutParams() beforehand.

type LogoutURL

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

LogoutURL generates an URL for the logout operation

func (*LogoutURL) Build

func (o *LogoutURL) Build() (*url.URL, error)

Build a url path and query string

func (*LogoutURL) BuildFull

func (o *LogoutURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*LogoutURL) Must

func (o *LogoutURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*LogoutURL) SetBasePath

func (o *LogoutURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*LogoutURL) String

func (o *LogoutURL) String() string

String returns the string representation of the path with query string

func (*LogoutURL) StringFull

func (o *LogoutURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*LogoutURL) WithBasePath

func (o *LogoutURL) WithBasePath(bp string) *LogoutURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ModifyUserPassword

type ModifyUserPassword struct {
	Context *middleware.Context
	Handler ModifyUserPasswordHandler
}
ModifyUserPassword swagger:route PATCH /v1/user user modifyUserPassword

修改密码

修改密码

func NewModifyUserPassword

func NewModifyUserPassword(ctx *middleware.Context, handler ModifyUserPasswordHandler) *ModifyUserPassword

NewModifyUserPassword creates a new http.Handler for the modify user password operation

func (*ModifyUserPassword) ServeHTTP

func (o *ModifyUserPassword) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ModifyUserPasswordHandler

type ModifyUserPasswordHandler interface {
	Handle(ModifyUserPasswordParams, *v1.Principal) middleware.Responder
}

ModifyUserPasswordHandler interface for that can handle valid modify user password params

type ModifyUserPasswordHandlerFunc

type ModifyUserPasswordHandlerFunc func(ModifyUserPasswordParams, *v1.Principal) middleware.Responder

ModifyUserPasswordHandlerFunc turns a function with the right signature into a modify user password handler

func (ModifyUserPasswordHandlerFunc) Handle

Handle executing the request and returning a response

type ModifyUserPasswordOK

type ModifyUserPasswordOK struct {
}

ModifyUserPasswordOK ok

swagger:response modifyUserPasswordOK

func NewModifyUserPasswordOK

func NewModifyUserPasswordOK() *ModifyUserPasswordOK

NewModifyUserPasswordOK creates ModifyUserPasswordOK with default headers values

func (*ModifyUserPasswordOK) WriteResponse

func (o *ModifyUserPasswordOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ModifyUserPasswordParams

type ModifyUserPasswordParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*新密码
	  Required: true
	  In: formData
	*/
	NewPassword string
	/*原始密码
	  Required: true
	  In: formData
	*/
	OldPassword string
	/*用户名
	  In: query
	*/
	Username *string
}

ModifyUserPasswordParams contains all the bound params for the modify user password operation typically these are obtained from a http.Request

swagger:parameters ModifyUserPassword

func NewModifyUserPasswordParams

func NewModifyUserPasswordParams() ModifyUserPasswordParams

NewModifyUserPasswordParams creates a new ModifyUserPasswordParams object

There are no default values defined in the spec.

func (*ModifyUserPasswordParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewModifyUserPasswordParams() beforehand.

type ModifyUserPasswordURL

type ModifyUserPasswordURL struct {
	Username *string
	// contains filtered or unexported fields
}

ModifyUserPasswordURL generates an URL for the modify user password operation

func (*ModifyUserPasswordURL) Build

func (o *ModifyUserPasswordURL) Build() (*url.URL, error)

Build a url path and query string

func (*ModifyUserPasswordURL) BuildFull

func (o *ModifyUserPasswordURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ModifyUserPasswordURL) Must

func (o *ModifyUserPasswordURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ModifyUserPasswordURL) SetBasePath

func (o *ModifyUserPasswordURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ModifyUserPasswordURL) String

func (o *ModifyUserPasswordURL) String() string

String returns the string representation of the path with query string

func (*ModifyUserPasswordURL) StringFull

func (o *ModifyUserPasswordURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ModifyUserPasswordURL) WithBasePath

func (o *ModifyUserPasswordURL) WithBasePath(bp string) *ModifyUserPasswordURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type UpdatePersonal

type UpdatePersonal struct {
	Context *middleware.Context
	Handler UpdatePersonalHandler
}
UpdatePersonal swagger:route PUT /v1/personal/{id} user updatePersonal

编辑个人基础信息

编辑个人基础信息

func NewUpdatePersonal

func NewUpdatePersonal(ctx *middleware.Context, handler UpdatePersonalHandler) *UpdatePersonal

NewUpdatePersonal creates a new http.Handler for the update personal operation

func (*UpdatePersonal) ServeHTTP

func (o *UpdatePersonal) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type UpdatePersonalHandler

type UpdatePersonalHandler interface {
	Handle(UpdatePersonalParams, *v1.Principal) middleware.Responder
}

UpdatePersonalHandler interface for that can handle valid update personal params

type UpdatePersonalHandlerFunc

type UpdatePersonalHandlerFunc func(UpdatePersonalParams, *v1.Principal) middleware.Responder

UpdatePersonalHandlerFunc turns a function with the right signature into a update personal handler

func (UpdatePersonalHandlerFunc) Handle

Handle executing the request and returning a response

type UpdatePersonalOK

type UpdatePersonalOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Personal `json:"body,omitempty"`
}

UpdatePersonalOK A successful response.

swagger:response updatePersonalOK

func NewUpdatePersonalOK

func NewUpdatePersonalOK() *UpdatePersonalOK

NewUpdatePersonalOK creates UpdatePersonalOK with default headers values

func (*UpdatePersonalOK) SetPayload

func (o *UpdatePersonalOK) SetPayload(payload *v1.Personal)

SetPayload sets the payload to the update personal o k response

func (*UpdatePersonalOK) WithPayload

func (o *UpdatePersonalOK) WithPayload(payload *v1.Personal) *UpdatePersonalOK

WithPayload adds the payload to the update personal o k response

func (*UpdatePersonalOK) WriteResponse

func (o *UpdatePersonalOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdatePersonalParams

type UpdatePersonalParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*个人基础信息参数
	  In: body
	*/
	Body *v1.Personal
	/*个人基础信息ID
	  Required: true
	  In: path
	*/
	ID string
}

UpdatePersonalParams contains all the bound params for the update personal operation typically these are obtained from a http.Request

swagger:parameters UpdatePersonal

func NewUpdatePersonalParams

func NewUpdatePersonalParams() UpdatePersonalParams

NewUpdatePersonalParams creates a new UpdatePersonalParams object

There are no default values defined in the spec.

func (*UpdatePersonalParams) BindRequest

func (o *UpdatePersonalParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewUpdatePersonalParams() beforehand.

type UpdatePersonalURL

type UpdatePersonalURL struct {
	ID string
	// contains filtered or unexported fields
}

UpdatePersonalURL generates an URL for the update personal operation

func (*UpdatePersonalURL) Build

func (o *UpdatePersonalURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdatePersonalURL) BuildFull

func (o *UpdatePersonalURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdatePersonalURL) Must

func (o *UpdatePersonalURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*UpdatePersonalURL) SetBasePath

func (o *UpdatePersonalURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*UpdatePersonalURL) String

func (o *UpdatePersonalURL) String() string

String returns the string representation of the path with query string

func (*UpdatePersonalURL) StringFull

func (o *UpdatePersonalURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UpdatePersonalURL) WithBasePath

func (o *UpdatePersonalURL) WithBasePath(bp string) *UpdatePersonalURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type UpdateUser

type UpdateUser struct {
	Context *middleware.Context
	Handler UpdateUserHandler
}
UpdateUser swagger:route PUT /v1/user/{id} user updateUser

编辑用户

编辑单个用户信息

func NewUpdateUser

func NewUpdateUser(ctx *middleware.Context, handler UpdateUserHandler) *UpdateUser

NewUpdateUser creates a new http.Handler for the update user operation

func (*UpdateUser) ServeHTTP

func (o *UpdateUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type UpdateUserHandler

type UpdateUserHandler interface {
	Handle(UpdateUserParams, *v1.Principal) middleware.Responder
}

UpdateUserHandler interface for that can handle valid update user params

type UpdateUserHandlerFunc

type UpdateUserHandlerFunc func(UpdateUserParams, *v1.Principal) middleware.Responder

UpdateUserHandlerFunc turns a function with the right signature into a update user handler

func (UpdateUserHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateUserOK

type UpdateUserOK struct {

	/*
	  In: Body
	*/
	Payload *v1.User `json:"body,omitempty"`
}

UpdateUserOK A successful response.

swagger:response updateUserOK

func NewUpdateUserOK

func NewUpdateUserOK() *UpdateUserOK

NewUpdateUserOK creates UpdateUserOK with default headers values

func (*UpdateUserOK) SetPayload

func (o *UpdateUserOK) SetPayload(payload *v1.User)

SetPayload sets the payload to the update user o k response

func (*UpdateUserOK) WithPayload

func (o *UpdateUserOK) WithPayload(payload *v1.User) *UpdateUserOK

WithPayload adds the payload to the update user o k response

func (*UpdateUserOK) WriteResponse

func (o *UpdateUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateUserParams

type UpdateUserParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*用户参数
	  In: body
	*/
	Body *v1.User
	/*用户ID
	  Required: true
	  In: path
	*/
	ID string
}

UpdateUserParams contains all the bound params for the update user operation typically these are obtained from a http.Request

swagger:parameters UpdateUser

func NewUpdateUserParams

func NewUpdateUserParams() UpdateUserParams

NewUpdateUserParams creates a new UpdateUserParams object

There are no default values defined in the spec.

func (*UpdateUserParams) BindRequest

func (o *UpdateUserParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewUpdateUserParams() beforehand.

type UpdateUserURL

type UpdateUserURL struct {
	ID string
	// contains filtered or unexported fields
}

UpdateUserURL generates an URL for the update user operation

func (*UpdateUserURL) Build

func (o *UpdateUserURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdateUserURL) BuildFull

func (o *UpdateUserURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdateUserURL) Must

func (o *UpdateUserURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*UpdateUserURL) SetBasePath

func (o *UpdateUserURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*UpdateUserURL) String

func (o *UpdateUserURL) String() string

String returns the string representation of the path with query string

func (*UpdateUserURL) StringFull

func (o *UpdateUserURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UpdateUserURL) WithBasePath

func (o *UpdateUserURL) WithBasePath(bp string) *UpdateUserURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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