dbase

package
v0.0.0-...-f2b1faa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRole

func CreateRole(role *models.SysRole)

func DeleteMulti

func DeleteMulti(o orm.Ormer, tableName, idName string, ids []string) (sql.Result, error)

func DeleteRole

func DeleteRole(roleId string) error

func EditRole

func EditRole(role *models.SysRole)

func GrantRoleModule

func GrantRoleModule(mcRole *McRole, perms *[]*models.SysModule)

func IncTableVer

func IncTableVer(ormer orm.Ormer, modelName string)

换成时间

func InitDb

func InitDb() error

func InitDbTrigger

func InitDbTrigger()

func InitRabc

func InitRabc()

func MemCacheDeleteMulti

func MemCacheDeleteMulti(modelName string, projectId string) error

func MemCacheDeleteMulti2

func MemCacheDeleteMulti2(modelName string) error

goble

func MemCacheGet

func MemCacheGet(tkey string, ckey string) interface{}

func MemCacheIsExist

func MemCacheIsExist(tkey string, ckey string) bool

func MemCachePut

func MemCachePut(modelName string, projectId string, ckey string, val interface{}) error

func MemCachePutQuery

func MemCachePutQuery(modelNames []string, projectId string, qkey string, ckey string, val interface{}) error

func NewOrm

func NewOrm() orm.Ormer

func RevokeRoleModule

func RevokeRoleModule(mcRole *McRole, perms *[]*models.SysModule)

func RoleIsGranted

func RoleIsGranted(roleIdStr string, permurl string) bool

Types

type McPermission

type McPermission struct {
	gorbac.StdPermission
	SysPerm *models.SysModule
}

func NewMcPermission

func NewMcPermission(sysPerm *models.SysModule) *McPermission

type McRole

type McRole struct {
	gorbac.StdRole
	SysRole *models.SysRole
}

func NewMcRole

func NewMcRole(sysRole *models.SysRole) *McRole

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL