jwt

package
v0.0.0-...-ae394c8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyCallBack

func AnyCallBack(c *gin.Context)

AnyCallBack 服务号事件订阅消息

func GetList

func GetList(c *gin.Context)

GetList @Tags 登录鉴权 @summary 获取用户单位列表(UserAccessToken) @Accept json @Produce json @Security bearer @Router /open-apis/core/jwt/tenant/list [get]

func GetMenu

func GetMenu(c *gin.Context)

GetMenu @Tags 登录鉴权 @summary 获取菜单(TenantAccessToken) @Accept json @Produce json @Security bearer @Router /open-apis/core/jwt/tenant/menu [get]

func GetPage

func GetPage(c *gin.Context)

GetPage @Tags 登录鉴权 @summary 获取页面(TenantAccessToken) @Accept json @Produce json @Security bearer @Router /open-apis/core/jwt/tenant/page [get]

func GetPhone

func GetPhone(c *gin.Context)

GetPhone @Tags 登录鉴权 @summary 小程序获取用户绑定手机号 @Accept json @Produce json @Param key query string true "小程序code" @Router /open-apis/core/jwt/wechat/phone [get]

func GetQrCode

func GetQrCode(r *gin.Context)

GetQrCode @Tags 登录鉴权 @summary 后台扫码登录>获取微信登录二维码 @Accept json @Produce json @Router /open-apis/core/jwt/wechat/qrcode [get]

func GetUserToken

func GetUserToken(c *gin.Context)

GetUserToken @Tags 登录鉴权 @summary 后台扫码登录>获取用户UserAccessToken @Accept json @Produce json @Param key query string true "key" @Router /open-apis/core/jwt/token/user_token [get]

func Load

func Load(r *gin.RouterGroup)

func PostSignIn

func PostSignIn(c *gin.Context)

PostSignIn @Tags 登录鉴权 @summary 小程序登录获取UserAccessToken @Accept json @Produce json @Param params body _Code true "请求参数体" @Router /open-apis/core/jwt/wechat/sign_in [post]

func PostSignUp

func PostSignUp(c *gin.Context)

PostSignUp @Tags 登录鉴权 @summary 小程序注册获取UserAccessToken @Accept json @Produce json @Param params body KeyCode true "请求参数体" @Router /open-apis/core/jwt/wechat/sign_up [post]

func PostTenantToken

func PostTenantToken(c *gin.Context)

PostTenantToken @Tags 登录鉴权 @summary 生成TenantAccessToken(UserAccessToken) @Accept json @Produce json @Security bearer @Param param body EnterprisePk true "请求参数体" @Router /open-apis/core/jwt/token/tenant_token [post]

func PutTenantToken

func PutTenantToken(c *gin.Context)

PutTenantToken @Tags 登录鉴权 @summary 刷新TenantAccessToken(TenantRefreshToken) @Accept json @Produce json @Security bearer @Router /open-apis/core/jwt/token/tenant_token [put]

func PutUserToken

func PutUserToken(c *gin.Context)

PutUserToken @Tags 登录鉴权 @summary 刷新UserAccessToken(UserRefreshToken) @Accept json @Produce json @Security bearer @Router /open-apis/core/jwt/token/user_token [put]

Types

type EnterprisePk

type EnterprisePk struct {
	EnterprisePk string `json:"enterprise_pk"`
}

type KeyCode

type KeyCode struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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