util

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContextFunc = new(contextFunc)

Functions

This section is empty.

Types

type Checker

type Checker interface {
	AccountBelong(id uint, ctx *gin.Context) bool
	AccountBelongAndGet(accountId uint, ctx *gin.Context) (accountModel.Account, accountModel.User, bool)
	AccountPermission(accountId uint, permission accountModel.UserPermission, ctx *gin.Context) bool
	CategoryBelongAndGet(categoryId uint, accountId uint, ctx *gin.Context) (categoryModel.Category, bool)
	CategoryFatherBelongAndGet(fatherId uint, accountId uint, ctx *gin.Context) (categoryModel.Father, bool)
	TransactionCategoryBelongAndGet(id interface{}, ctx *gin.Context) (
		bool,
		categoryModel.Category,
		accountModel.Account)
	FriendInvitationBelongAndGet(id interface{}, ctx *gin.Context) (bool, userModel.FriendInvitation)
}
var CheckFunc Checker = new(checkFunc)

Jump to

Keyboard shortcuts

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