Back to godoc.org

Package handler

v0.0.0-...-8edd1ee
Latest Go to latest

The highest tagged major version is .

Published: Jun 13, 2020 | License: Apache-2.0 | Module: github.com/betterjun/starfire

Index

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

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

Jump to identifier

Keyboard shortcuts

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