svc

package
v0.0.0-...-83d3498 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCasbinSyncedEnforcer

func NewCasbinSyncedEnforcer(c config.Config, sqlxConn sqlx.SqlConn) (*casbin.SyncedEnforcer, error)

func ParamsMatch

func ParamsMatch(fullNameKey1 string, key2 string) bool

func ParamsMatchFunc

func ParamsMatchFunc(args ...interface{}) (interface{}, error)

Types

type ServiceContext

type ServiceContext struct {
	Config config.Config
	Redis  *redis.Redis

	SyncedEnforcer      *casbin.SyncedEnforcer
	CasbinRuleModel     model.CasbinRuleModel
	UserModel           model.UserModel
	UserRoleModel       model.UserRoleModel
	UserPageSetModel    model.UserPageSetModel
	UserMenuParamsModel model.UserMenuParamsModel
	RoleModel           model.RoleModel
	RoleMenuModel       model.RoleMenuModel
	MenuModel           model.MenuModel
	APIModel            model.ApiModel
}

func NewServiceContext

func NewServiceContext(c config.Config) *ServiceContext

Jump to

Keyboard shortcuts

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