Files
online-backend/internal/identity/permission/storage.go
GuwandykA d1a6fcaadc
Some checks failed
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled
ch some
2026-09-04 19:33:26 +05:00

13 lines
485 B
Go

package permission
import "context"
type Repository interface {
List(ctx context.Context, filter ListFilter) (ListPermissionDTO, error)
Tree(ctx context.Context, guardName string) (PermissionTreeDTO, error)
GetByID(ctx context.Context, id int64) (PermissionDTO, error)
Create(ctx context.Context, dto CreatePermissionDTO) (PermissionDTO, error)
Update(ctx context.Context, id int64, dto UpdatePermissionDTO) (PermissionDTO, error)
Delete(ctx context.Context, id int64) error
}