Commit Graph

5 Commits

Author SHA1 Message Date
Misaka_Company
f94a18fee7 feat: add config error handling on startup
Add error handling for configuration loading at application startup.
If the config file is missing or invalid, the app will exit with
a clear error message instead of crashing later.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-12 09:42:45 +08:00
Misaka_Company
c370ca36bc feat: add boxing module API — GET /box/info and POST /box
- Add box schemas (BoxInfoResponse, BoxSaveRequest, BoxSaveResponse)
- Add box service with ERP view query and save logic (supports many2one append)
- Add box router with GET /box/info and POST /box endpoints
- Register exception handlers for InvalidZongpaiError, ZongpaiNotFoundError, DuplicateBoxItemError
- Update RequestValidationError handler to cover INVALID_BOX_NO and INVALID_QUANTITY
- Add 7 integration tests for box API

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-11 18:04:13 +08:00
Misaka_Company
e9bb9d6be0 fix: unify error response format with error_code, message and domain fields
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-11 12:38:37 +08:00
Misaka_Company
d68d602411 feat: add POST /CargoTrace/location endpoint
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-11 11:12:33 +08:00
Misaka_Company
2cc476b314 Initial commit: Setup FastAPI project structure 2026-05-11 09:44:34 +08:00