Files
online-backend/internal/identity/userbranch/storage.go
GuwandykA 1fd0abbcb2 Bind permissions to roles and scope operator access by branch.
Replace permission_user with permission_role, enforce RBAC on admin routes, and limit operators to their assigned branches.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-24 18:24:43 +05:00

10 lines
253 B
Go

package userbranch
import "context"
type Repository interface {
Create(ctx context.Context, dto CreateUserBranchDTO) (UserBranchDTO, error)
GetByID(ctx context.Context, id int64) (UserBranchDTO, error)
Delete(ctx context.Context, id int64) error
}