Files
online-backend/internal/org/province/storage.go
GuwandykA 1987d4f596 Add region and etrap APIs for branch create form.
Expose distinct regions and etraps-by-region under provinces and branches, and seed real etraps per welayat.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-11 12:12:07 +05:00

14 lines
570 B
Go

package province
import "context"
type Repository interface {
List(ctx context.Context, filter ListFilter) (ListProvinceDTO, error)
ListRegions(ctx context.Context, activeOnly bool) (ListRegionsDTO, error)
ListEtrapsByRegion(ctx context.Context, region string, activeOnly bool) (ListEtrapsDTO, error)
GetByID(ctx context.Context, id int64) (ProvinceDTO, error)
Create(ctx context.Context, dto CreateProvinceDTO) (ProvinceDTO, error)
Update(ctx context.Context, id int64, dto UpdateProvinceDTO) (ProvinceDTO, error)
Delete(ctx context.Context, id int64) error
}