Commit Graph

2 Commits

Author SHA1 Message Date
robinj0726
604dfeb06c feat: implement store scope validation and enforce it in product repository
- Added StoreScope struct with TenantID and StoreID fields.
- Introduced ErrStoreScopeRequired to handle missing store scope.
- Implemented Valid method to check if both TenantID and StoreID are present.
- Created requireWriteScope function to validate store scope before write operations.
- Updated product repository methods to require store scope for various operations.
- Added tests for StoreScope validation and requirement enforcement.
2026-09-13 00:12:44 +08:00
robinj0726
a8a3464484 feat(store): implement StoreScope for multi-tenant support and update product methods to require store context 2026-09-12 19:02:07 +08:00