Add new methods to vendor_service.py: - get_vendor_by_id(): Fetch vendor by ID with proper exception - get_vendor_by_identifier(): Fetch by ID or code - toggle_verification/set_verification(): Manage vendor verification - toggle_status/set_status(): Manage vendor active status Refactor vendors.py API endpoints: - Remove _get_vendor_by_identifier helper with direct DB queries - All endpoints now use vendor_service methods - Remove direct db.commit() calls from endpoints This fixes API-002 violations and improves architecture compliance. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
12 KiB
12 KiB