admin

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const SetUserEnableOKCode int = 200

SetUserEnableOKCode is the HTTP code returned for type SetUserEnableOK

View Source
const SetUserPrivateOKCode int = 200

SetUserPrivateOKCode is the HTTP code returned for type SetUserPrivateOK

View Source
const UserListOKCode int = 200

UserListOKCode is the HTTP code returned for type UserListOK

Variables

This section is empty.

Functions

This section is empty.

Types

type SetUserEnable added in v1.3.3

type SetUserEnable struct {
	Context *middleware.Context
	Handler SetUserEnableHandler
}
SetUserEnable swagger:route POST /set_user_enable admin setUserEnable

Set User Enable

func NewSetUserEnable added in v1.3.3

func NewSetUserEnable(ctx *middleware.Context, handler SetUserEnableHandler) *SetUserEnable

NewSetUserEnable creates a new http.Handler for the set user enable operation

func (*SetUserEnable) ServeHTTP added in v1.3.3

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

type SetUserEnableBody added in v1.3.3

type SetUserEnableBody struct {

	// is enable
	IsEnable bool `json:"is_enable,omitempty"`

	// user id
	UserID string `json:"user_id,omitempty"`
}

SetUserEnableBody set user enable body

swagger:model SetUserEnableBody

func (*SetUserEnableBody) ContextValidate added in v1.3.3

func (o *SetUserEnableBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this set user enable body based on context it is used

func (*SetUserEnableBody) MarshalBinary added in v1.3.3

func (o *SetUserEnableBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SetUserEnableBody) UnmarshalBinary added in v1.3.3

func (o *SetUserEnableBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SetUserEnableBody) Validate added in v1.3.3

func (o *SetUserEnableBody) Validate(formats strfmt.Registry) error

Validate validates this set user enable body

type SetUserEnableHandler added in v1.3.3

type SetUserEnableHandler interface {
	Handle(SetUserEnableParams, interface{}) middleware.Responder
}

SetUserEnableHandler interface for that can handle valid set user enable params

type SetUserEnableHandlerFunc added in v1.3.3

type SetUserEnableHandlerFunc func(SetUserEnableParams, interface{}) middleware.Responder

SetUserEnableHandlerFunc turns a function with the right signature into a set user enable handler

func (SetUserEnableHandlerFunc) Handle added in v1.3.3

func (fn SetUserEnableHandlerFunc) Handle(params SetUserEnableParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type SetUserEnableOK added in v1.3.3

type SetUserEnableOK struct {

	/*
	  In: Body
	*/
	Payload *models.BaseResponse `json:"body,omitempty"`
}

SetUserEnableOK Success

swagger:response setUserEnableOK

func NewSetUserEnableOK added in v1.3.3

func NewSetUserEnableOK() *SetUserEnableOK

NewSetUserEnableOK creates SetUserEnableOK with default headers values

func (*SetUserEnableOK) SetPayload added in v1.3.3

func (o *SetUserEnableOK) SetPayload(payload *models.BaseResponse)

SetPayload sets the payload to the set user enable o k response

func (*SetUserEnableOK) WithPayload added in v1.3.3

func (o *SetUserEnableOK) WithPayload(payload *models.BaseResponse) *SetUserEnableOK

WithPayload adds the payload to the set user enable o k response

func (*SetUserEnableOK) WriteResponse added in v1.3.3

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

WriteResponse to the client

type SetUserEnableParams added in v1.3.3

type SetUserEnableParams struct {

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

	/*Set User Enable
	  Required: true
	  In: body
	*/
	Body SetUserEnableBody
}

SetUserEnableParams contains all the bound params for the set user enable operation typically these are obtained from a http.Request

swagger:parameters set_user_enable

func NewSetUserEnableParams added in v1.3.3

func NewSetUserEnableParams() SetUserEnableParams

NewSetUserEnableParams creates a new SetUserEnableParams object

There are no default values defined in the spec.

func (*SetUserEnableParams) BindRequest added in v1.3.3

func (o *SetUserEnableParams) 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 NewSetUserEnableParams() beforehand.

type SetUserEnableURL added in v1.3.3

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

SetUserEnableURL generates an URL for the set user enable operation

func (*SetUserEnableURL) Build added in v1.3.3

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

Build a url path and query string

func (*SetUserEnableURL) BuildFull added in v1.3.3

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

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

func (*SetUserEnableURL) Must added in v1.3.3

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

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

func (*SetUserEnableURL) SetBasePath added in v1.3.3

func (o *SetUserEnableURL) 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 (*SetUserEnableURL) String added in v1.3.3

func (o *SetUserEnableURL) String() string

String returns the string representation of the path with query string

func (*SetUserEnableURL) StringFull added in v1.3.3

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

StringFull returns the string representation of a complete url

func (*SetUserEnableURL) WithBasePath added in v1.3.3

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

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 SetUserPrivate added in v1.3.3

type SetUserPrivate struct {
	Context *middleware.Context
	Handler SetUserPrivateHandler
}
SetUserPrivate swagger:route POST /set_user_private admin setUserPrivate

Set User Private

func NewSetUserPrivate added in v1.3.3

func NewSetUserPrivate(ctx *middleware.Context, handler SetUserPrivateHandler) *SetUserPrivate

NewSetUserPrivate creates a new http.Handler for the set user private operation

func (*SetUserPrivate) ServeHTTP added in v1.3.3

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

type SetUserPrivateBody added in v1.3.3

type SetUserPrivateBody struct {

	// is private
	IsPrivate bool `json:"is_private,omitempty"`

	// user id
	UserID string `json:"user_id,omitempty"`
}

SetUserPrivateBody set user private body

swagger:model SetUserPrivateBody

func (*SetUserPrivateBody) ContextValidate added in v1.3.3

func (o *SetUserPrivateBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this set user private body based on context it is used

func (*SetUserPrivateBody) MarshalBinary added in v1.3.3

func (o *SetUserPrivateBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SetUserPrivateBody) UnmarshalBinary added in v1.3.3

func (o *SetUserPrivateBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SetUserPrivateBody) Validate added in v1.3.3

func (o *SetUserPrivateBody) Validate(formats strfmt.Registry) error

Validate validates this set user private body

type SetUserPrivateHandler added in v1.3.3

type SetUserPrivateHandler interface {
	Handle(SetUserPrivateParams, interface{}) middleware.Responder
}

SetUserPrivateHandler interface for that can handle valid set user private params

type SetUserPrivateHandlerFunc added in v1.3.3

type SetUserPrivateHandlerFunc func(SetUserPrivateParams, interface{}) middleware.Responder

SetUserPrivateHandlerFunc turns a function with the right signature into a set user private handler

func (SetUserPrivateHandlerFunc) Handle added in v1.3.3

func (fn SetUserPrivateHandlerFunc) Handle(params SetUserPrivateParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type SetUserPrivateOK added in v1.3.3

type SetUserPrivateOK struct {

	/*
	  In: Body
	*/
	Payload *models.BaseResponse `json:"body,omitempty"`
}

SetUserPrivateOK Success

swagger:response setUserPrivateOK

func NewSetUserPrivateOK added in v1.3.3

func NewSetUserPrivateOK() *SetUserPrivateOK

NewSetUserPrivateOK creates SetUserPrivateOK with default headers values

func (*SetUserPrivateOK) SetPayload added in v1.3.3

func (o *SetUserPrivateOK) SetPayload(payload *models.BaseResponse)

SetPayload sets the payload to the set user private o k response

func (*SetUserPrivateOK) WithPayload added in v1.3.3

func (o *SetUserPrivateOK) WithPayload(payload *models.BaseResponse) *SetUserPrivateOK

WithPayload adds the payload to the set user private o k response

func (*SetUserPrivateOK) WriteResponse added in v1.3.3

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

WriteResponse to the client

type SetUserPrivateParams added in v1.3.3

type SetUserPrivateParams struct {

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

	/*Set User Private
	  Required: true
	  In: body
	*/
	Body SetUserPrivateBody
}

SetUserPrivateParams contains all the bound params for the set user private operation typically these are obtained from a http.Request

swagger:parameters set_user_private

func NewSetUserPrivateParams added in v1.3.3

func NewSetUserPrivateParams() SetUserPrivateParams

NewSetUserPrivateParams creates a new SetUserPrivateParams object

There are no default values defined in the spec.

func (*SetUserPrivateParams) BindRequest added in v1.3.3

func (o *SetUserPrivateParams) 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 NewSetUserPrivateParams() beforehand.

type SetUserPrivateURL added in v1.3.3

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

SetUserPrivateURL generates an URL for the set user private operation

func (*SetUserPrivateURL) Build added in v1.3.3

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

Build a url path and query string

func (*SetUserPrivateURL) BuildFull added in v1.3.3

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

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

func (*SetUserPrivateURL) Must added in v1.3.3

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

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

func (*SetUserPrivateURL) SetBasePath added in v1.3.3

func (o *SetUserPrivateURL) 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 (*SetUserPrivateURL) String added in v1.3.3

func (o *SetUserPrivateURL) String() string

String returns the string representation of the path with query string

func (*SetUserPrivateURL) StringFull added in v1.3.3

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

StringFull returns the string representation of a complete url

func (*SetUserPrivateURL) WithBasePath added in v1.3.3

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

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 UserList

type UserList struct {
	Context *middleware.Context
	Handler UserListHandler
}
UserList swagger:route POST /user_list admin userList

Get User List

func NewUserList

func NewUserList(ctx *middleware.Context, handler UserListHandler) *UserList

NewUserList creates a new http.Handler for the user list operation

func (*UserList) ServeHTTP

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

type UserListBody

type UserListBody struct {

	// page info
	PageInfo *models.PageInfoRequest `json:"page_info,omitempty"`

	// query
	Query *models.UserQuery `json:"query,omitempty"`
}

UserListBody user list body

swagger:model UserListBody

func (*UserListBody) ContextValidate

func (o *UserListBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this user list body based on the context it is used

func (*UserListBody) MarshalBinary

func (o *UserListBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserListBody) UnmarshalBinary

func (o *UserListBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserListBody) Validate

func (o *UserListBody) Validate(formats strfmt.Registry) error

Validate validates this user list body

type UserListHandler

type UserListHandler interface {
	Handle(UserListParams, interface{}) middleware.Responder
}

UserListHandler interface for that can handle valid user list params

type UserListHandlerFunc

type UserListHandlerFunc func(UserListParams, interface{}) middleware.Responder

UserListHandlerFunc turns a function with the right signature into a user list handler

func (UserListHandlerFunc) Handle

func (fn UserListHandlerFunc) Handle(params UserListParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UserListOK

type UserListOK struct {

	/*
	  In: Body
	*/
	Payload *models.UserList `json:"body,omitempty"`
}

UserListOK Success

swagger:response userListOK

func NewUserListOK

func NewUserListOK() *UserListOK

NewUserListOK creates UserListOK with default headers values

func (*UserListOK) SetPayload

func (o *UserListOK) SetPayload(payload *models.UserList)

SetPayload sets the payload to the user list o k response

func (*UserListOK) WithPayload

func (o *UserListOK) WithPayload(payload *models.UserList) *UserListOK

WithPayload adds the payload to the user list o k response

func (*UserListOK) WriteResponse

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

WriteResponse to the client

type UserListParams

type UserListParams struct {

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

	/*Page Info
	  Required: true
	  In: body
	*/
	Body UserListBody
}

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

swagger:parameters user_list

func NewUserListParams

func NewUserListParams() UserListParams

NewUserListParams creates a new UserListParams object

There are no default values defined in the spec.

func (*UserListParams) BindRequest

func (o *UserListParams) 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 NewUserListParams() beforehand.

type UserListURL

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

UserListURL generates an URL for the user list operation

func (*UserListURL) Build

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

Build a url path and query string

func (*UserListURL) BuildFull

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

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

func (*UserListURL) Must

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

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

func (*UserListURL) SetBasePath

func (o *UserListURL) 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 (*UserListURL) String

func (o *UserListURL) String() string

String returns the string representation of the path with query string

func (*UserListURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UserListURL) WithBasePath

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

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