handler

package
v0.0.0-...-8edd1ee Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorize

func Authorize(c *gin.Context)

鉴权处理器,pri的接口都需要鉴权才能访问

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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