package
Version:
v0.0.0-...-d6b644b
Opens a new window with list of versions in this module.
Published: Apr 10, 2020
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
func CheckAdmin(c echo.Context) error
CheckAdmin 检查是否机构管理员
func CheckOwner(c echo.Context) error
CheckOwner 检查是否机构所有者
func GetOID(c echo.Context) string
GetOID 获得 org id
func GetUID(c echo.Context) string
GetUID 获得 user id
func ParseJWT(c echo.Context)
ParseJWT 在 echo 的 jwt 插件验证完成后,解析我们需要的数据存储到 context
TODO: 已经废弃这一部分,等到完全不被依赖后删除。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.