Documentation ¶ Index ¶ func CheckIsRootUser(ctx context.Context, userUUID string) bool func ExecTrans(ctx context.Context, transModel model.ITrans, fn TransFunc) error func ExecTransWithLock(ctx context.Context, transModel model.ITrans, fn TransFunc) error func GetRootUser() *schema.User type TransFunc Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CheckIsRootUser ¶ func CheckIsRootUser(ctx context.Context, userUUID string) bool CheckIsRootUser - Check if it is root user func ExecTrans ¶ func ExecTrans(ctx context.Context, transModel model.ITrans, fn TransFunc) error ExecTrans - Executive transaction func ExecTransWithLock ¶ func ExecTransWithLock(ctx context.Context, transModel model.ITrans, fn TransFunc) error ExecTransWithLock - Execution transaction (lock) func GetRootUser ¶ func GetRootUser() *schema.User GetRootUser - Get root user Types ¶ type TransFunc ¶ type TransFunc func(context.Context) error TransFunc - Defining transaction execution functions Source Files ¶ View all Source files common.go Directories ¶ Show internal Expand all Path Synopsis auth jwtauth jwtauth/store/buntdb jwtauth/store/redis boot config context entity errors ginplus logger hook hook/gorm middleware model schema util Click to show internal directories. Click to hide internal directories.