Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVerificationCode ¶
func GetVerificationCode(ctx iris.Context)
@title user operation API @version 1.0 @contact.name user operation @contact.url http://www.niwofly.com @Description 用户登录,获取验证码,若是第一次登陆则自动注册 @Accept json @Produce json @Param param body UserController.GetVerificationCodeReq true "param" @Success 20000 {object} UserController.ResponseContent "" @Failure 50001 {object} UserController.ResponseContent "" @Router /v1/login/getVerificationCode [post] @BasePath /v1
func Login ¶
func Login(ctx iris.Context)
@Title user operation API @Version 1.0 @Contact.name user operation @contact.url http://www.niwofly.com @Description 获取到验证码后,通过验证码登录 @Accept json @Produce json @Param param body UserController.UserRegistrationOrLoginReq true "param" @Success 20000 {object} UserController.ResponseContent "" @Failure 50001 {object} UserController.ResponseContent "" @Router /v1/login [post] @BasePath /v1
func Logout ¶
func Logout(ctx iris.Context)
@title user operation API @version 1.0 @contact.name user operation @contact.url http://www.niwofly.com @Description 用户退出,清除所有登录状态 @Accept json @Produce json @Param param body UserController.LogoutReq true "param" @Success 20000 {object} UserController.ResponseContent "" @Failure 50001 {object} UserController.ResponseContent "" @Router /v1/logout [post] @BasePath /v1
func UpdateToken ¶
func UpdateToken(ctx iris.Context)
@title user operation API @version 1.0 @contact.name user operation @contact.url http://www.niwofly.com @Description 用户token过期,重复更新 @Accept json @Produce json @Param param body UserController.UpdateTokenReq true "param" @Success 20000 {object} UserController.ResponseContent "" @Failure 50001 {object} UserController.ResponseContent "" @Router /v1/login/updateToken [post] @host niwofly.com @BasePath /v1
func VerifyLogin ¶
func VerifyLogin(ctx iris.Context)
@title user operation API @version 1.0 @contact.name user operation @contact.url http://www.niwofly.com @Description 验证用户以前登陆所生成的token来验证登陆 @Accept json @Produce json @Param param body UserController.VerifyLoginReq true "param" @Success 20000 {object} UserController.ResponseContent "" @Failure 50001 {object} UserController.ResponseContent "" @Router /v1/login/verifyLogin [post] @host niwofly.com @BasePath /v1
Types ¶
This section is empty.