Documentation ¶
Index ¶
- func AnyCallBack(c *gin.Context)
- func GetList(c *gin.Context)
- func GetMenu(c *gin.Context)
- func GetPage(c *gin.Context)
- func GetPhone(c *gin.Context)
- func GetQrCode(r *gin.Context)
- func GetUserToken(c *gin.Context)
- func Load(r *gin.RouterGroup)
- func PostSignIn(c *gin.Context)
- func PostSignUp(c *gin.Context)
- func PostTenantToken(c *gin.Context)
- func PutTenantToken(c *gin.Context)
- func PutUserToken(c *gin.Context)
- type EnterprisePk
- type KeyCode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetList ¶
GetList @Tags 登录鉴权 @summary 获取用户单位列表(UserAccessToken) @Accept json @Produce json @Security bearer @Router /open-apis/core/jwt/tenant/list [get]
func GetMenu ¶
GetMenu @Tags 登录鉴权 @summary 获取菜单(TenantAccessToken) @Accept json @Produce json @Security bearer @Router /open-apis/core/jwt/tenant/menu [get]
func GetPage ¶
GetPage @Tags 登录鉴权 @summary 获取页面(TenantAccessToken) @Accept json @Produce json @Security bearer @Router /open-apis/core/jwt/tenant/page [get]
func GetPhone ¶
GetPhone @Tags 登录鉴权 @summary 小程序获取用户绑定手机号 @Accept json @Produce json @Param key query string true "小程序code" @Router /open-apis/core/jwt/wechat/phone [get]
func GetQrCode ¶
GetQrCode @Tags 登录鉴权 @summary 后台扫码登录>获取微信登录二维码 @Accept json @Produce json @Router /open-apis/core/jwt/wechat/qrcode [get]
func GetUserToken ¶
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 ¶
PostSignIn @Tags 登录鉴权 @summary 小程序登录获取UserAccessToken @Accept json @Produce json @Param params body _Code true "请求参数体" @Router /open-apis/core/jwt/wechat/sign_in [post]
func PostSignUp ¶
PostSignUp @Tags 登录鉴权 @summary 小程序注册获取UserAccessToken @Accept json @Produce json @Param params body KeyCode true "请求参数体" @Router /open-apis/core/jwt/wechat/sign_up [post]
func PostTenantToken ¶
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 ¶
PutTenantToken @Tags 登录鉴权 @summary 刷新TenantAccessToken(TenantRefreshToken) @Accept json @Produce json @Security bearer @Router /open-apis/core/jwt/token/tenant_token [put]
func PutUserToken ¶
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"`
}