package
Version:
v1.4.0
Opens a new window with list of versions in this module.
Published: Oct 29, 2020
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Auth struct {
ID uint64 `xorm:"pk autoincr not null unique 'id'"`
Code int `xorm:"not null unique comment('auth code')"`
Feature string `xorm:"varchar(100) comment('auth function')"`
}
Auth 权限
type Role struct {
ID uint64 `xorm:"pk autoincr 'id'"`
UID uint64 `xorm:"not null 'user_id'"`
AuthID uint64 `xorm:"not null unique 'auth_id'"`
RoleName string `xorm:"varchar(18) not null comment('roles')"`
}
Role 角色控制
Source Files
¶
Click to show internal directories.
Click to hide internal directories.