Commit Graph

3 Commits

Author SHA1 Message Date
robinj0726
c8e9db4300 feat: remove deprecated regions from freight region data 2026-10-12 11:55:33 +08:00
robinj0726
dfabd4a382 feat: add new regions and economic development zones to the freight region data 2026-10-12 11:46:51 +08:00
robinj0726
eeb3efa996 feat: add region indexing and rules validation for freight templates
- Implemented RegionIndex to manage region codes and their relationships from embedded region.json.
- Added ValidateRulesJSON function to validate freight rules against specified criteria, including region code existence and overlap checks.
- Created unit tests for rules validation covering various scenarios including valid rules, overlap detection, and error handling for invalid inputs.
- Updated freight_template_server to integrate rules validation during freight template creation and updates, ensuring compliance with the new rules structure.
2026-10-10 18:54:45 +08:00