Documentation ¶
Index ¶
- type TokenOperationImpl
- type UserOperationImpl
- func (u *UserOperationImpl) CreateUser(params identity.CreateUserParams) middleware.Responder
- func (u *UserOperationImpl) GetUser(params identity.GetUserParams) middleware.Responder
- func (u *UserOperationImpl) KeyAuth(value string) (*models.AuthInfo, error)
- func (u *UserOperationImpl) Login(params identity.LoginParams) middleware.Responder
- func (u *UserOperationImpl) Logout(params identity.LogoutParams, principal *models.AuthInfo) middleware.Responder
- func (*UserOperationImpl) Whoami(params identity.WhoamiParams, principal *models.AuthInfo) middleware.Responder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenOperationImpl ¶
TokenOperationImpl impl restapi.UserOperation and restapi.Authable interface.
type UserOperationImpl ¶
UserOperationImpl impl restapi.UserOperation and restapi.Authable interface.
func (*UserOperationImpl) CreateUser ¶
func (u *UserOperationImpl) CreateUser(params identity.CreateUserParams) middleware.Responder
CreateUser Create user.
func (*UserOperationImpl) GetUser ¶
func (u *UserOperationImpl) GetUser(params identity.GetUserParams) middleware.Responder
GetUser Get User Info by id
func (*UserOperationImpl) KeyAuth ¶
func (u *UserOperationImpl) KeyAuth(value string) (*models.AuthInfo, error)
Applies when the "Cookie" header is set
func (*UserOperationImpl) Login ¶
func (u *UserOperationImpl) Login(params identity.LoginParams) middleware.Responder
Login 用户登录.
func (*UserOperationImpl) Logout ¶
func (u *UserOperationImpl) Logout(params identity.LogoutParams, principal *models.AuthInfo) middleware.Responder
Logout 用户登出.
func (*UserOperationImpl) Whoami ¶
func (*UserOperationImpl) Whoami(params identity.WhoamiParams, principal *models.AuthInfo) middleware.Responder
Whoami 获取当前登录用户信息.
Click to show internal directories.
Click to hide internal directories.