Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthLevel ¶
type AuthLevel uint
AuthLevel 权限等级 对于操作类权限 0 禁止执行 1 允许执行 对于资源类权限 0 相当于没有 1 有限读权限 2 读权限 3 创建权限 4 修改权限 5 删除权限 6 赋予其余人权限
type PayLoad ¶
type PayLoad struct { jwt.Payload ID uint Auth []*SimpleAuth }
PayLoad TODO:: roles 是否会造成token过大 ?
type SimpleAuth ¶
Click to show internal directories.
Click to hide internal directories.