Back to

Package handler

Latest Go to latest

The highest tagged major version is .

Published: Jun 13, 2020 | License: Apache-2.0 | Module:


func Authorize

func Authorize(c *gin.Context)


func SignIn

func SignIn(c *gin.Context)

@Summary 用户登录 @Description 用户登录 @Tags 用户 @Accept json @Param signInParam body params.SigninReq true "登录参数" @Produce json @Success 200 {object} params.SigninRsp @Router /v1/pub/signin [POST] @ID SignIn

func SignOut

func SignOut(c *gin.Context)

@Summary 用户登出 @Description 用户登出 @Tags 用户 @Accept json @Produce json @Success 200 {string} string "{"code":200,"data":"ok"}" @Router /v1/pri/signout [POST] @ID SignOut

func SignUp

func SignUp(c *gin.Context)

@Summary 用户注册 @Description 用户注册 @Tags 用户 @Accept json @Param signUpParam body params.SignupReq true "注册参数" @Produce json @Success 200 {string} string "{"code":200,"data":"ok"}" @Router /v1/pub/signup [POST] @ID SignUp

func UserInfo

func UserInfo(c *gin.Context)

@Summary 获取用户信息 @Description 获取用户信息 @Tags 用户 @Accept json @Produce json @Success 200 {object} params.UserInfoRsp @Router /v1/pri/userinfo [GET] @ID UserInfo

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier