services

package
v0.0.0-...-7b661e0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BackendUserService = &backendUserService{
	mutex: &sync.Mutex{},
}
View Source
var ResourceService = &resourceService{
	mutex: &sync.Mutex{},
}
View Source
var RoleBackendUserRelService = &roleBackendUserRelService{
	mutex: &sync.Mutex{},
}
View Source
var RoleService = &roleService{
	mutex: &sync.Mutex{},
}

Functions

func ConnectDB

func ConnectDB()

connectDB from database

func DB

func DB() *gorm.DB

获取db

func DisconnectDB

func DisconnectDB()

DisconnectDB disconnects from the database.

func Tx

func Tx(db *gorm.DB, txFunc func(tx *gorm.DB) error) (err error)

事务环绕

Types

This section is empty.

Jump to

Keyboard shortcuts

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