Documentation ¶
Index ¶
- func CreateRole(role *models.SysRole)
- func DeleteMulti(o orm.Ormer, tableName, idName string, ids []string) (sql.Result, error)
- func DeleteRole(roleId string) error
- func EditRole(role *models.SysRole)
- func GrantRoleModule(mcRole *McRole, perms *[]*models.SysModule)
- func IncTableVer(ormer orm.Ormer, modelName string)
- func InitDb() error
- func InitDbTrigger()
- func InitRabc()
- func MemCacheDeleteMulti(modelName string, projectId string) error
- func MemCacheDeleteMulti2(modelName string) error
- func MemCacheGet(tkey string, ckey string) interface{}
- func MemCacheIsExist(tkey string, ckey string) bool
- func MemCachePut(modelName string, projectId string, ckey string, val interface{}) error
- func MemCachePutQuery(modelNames []string, projectId string, qkey string, ckey string, ...) error
- func NewOrm() orm.Ormer
- func RevokeRoleModule(mcRole *McRole, perms *[]*models.SysModule)
- func RoleIsGranted(roleIdStr string, permurl string) bool
- type McPermission
- type McRole
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRole ¶
func DeleteMulti ¶
func DeleteRole ¶
func GrantRoleModule ¶
func InitDbTrigger ¶
func InitDbTrigger()
func MemCacheDeleteMulti ¶
func MemCacheGet ¶
func MemCacheIsExist ¶
func MemCachePut ¶
func MemCachePutQuery ¶
func RevokeRoleModule ¶
func RoleIsGranted ¶
Types ¶
type McPermission ¶
func NewMcPermission ¶
func NewMcPermission(sysPerm *models.SysModule) *McPermission
Click to show internal directories.
Click to hide internal directories.