Files
MemoryBear/api/app/services
Ke Sun 66c153f1ad refactor(api): improve memory service dependency injection and code organization
- Update ShortService and LongService constructors to accept db Session parameter for proper dependency injection instead of using module-level db instance
- Reorganize imports in memory_short_term_controller.py following PEP 8 conventions (stdlib, third-party, local imports)
- Add comprehensive docstrings with type hints to ShortService and LongService methods for better code documentation
- Fix import organization in memory_short_service.py to group related imports and improve readability
- Reorganize imports in user_memory_service.py to follow consistent import ordering patterns
- Update ShortService instantiation in analytics_memory_types to pass db parameter
- Remove module-level db instance initialization in favor of caller-managed database session lifecycle
- Add type annotations to method signatures (end_user_id: str, db: Session, return types)
- Improve code formatting and spacing consistency across memory service files
2026-03-03 16:48:34 +08:00
..
2025-12-29 14:51:23 +08:00
2026-01-23 10:50:24 +08:00
2026-02-03 10:33:39 +08:00
2026-01-28 16:07:53 +08:00
2026-02-05 14:22:52 +08:00
2026-02-09 10:02:34 +08:00
2026-02-03 10:33:39 +08:00
2025-12-24 20:35:04 +08:00
2026-02-09 18:22:11 +08:00
2025-12-15 14:09:43 +08:00