Add backups, currencies and dashboard APIs, and scope access by guard_name.
Web users may only CRUD their own records, operators stay in assigned branches, and admin/manager/superadmin keep full access. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
0d000f9af6
commit
28509eb4ca
65 files changed
+9132
-296
No files matched your search
@@ -0,0 +1,11 @@
|
||||
package currency
|
||||
|
||||
import "context"
|
||||
|
||||
type Repository interface {
|
||||
List(ctx context.Context, filter ListFilter) (ListCurrencyDTO, error)
|
||||
GetByID(ctx context.Context, id int64) (CurrencyDTO, error)
|
||||
Create(ctx context.Context, dto CreateCurrencyDTO) (CurrencyDTO, error)
|
||||
Update(ctx context.Context, id int64, dto UpdateCurrencyDTO) (CurrencyDTO, error)
|
||||
Delete(ctx context.Context, id int64) error
|
||||
}
|
||||
Reference in new issue
Block a user