wip: rbac - 01

This commit is contained in:
loveuer
2024-11-04 18:09:39 +08:00
parent cef1775811
commit 0fabeb69d6
8 changed files with 322 additions and 102 deletions

View File

@ -2,6 +2,7 @@ package interfaces
import (
"context"
"gorm.io/gorm"
"time"
)
@ -20,3 +21,7 @@ type Cacher interface {
type Scanner interface {
Scan(model any) error
}
type Store interface {
Session(ctx ...context.Context) *gorm.DB
}