Refactor: split memory API into gateway and service layers (#13111)

### What problem does this PR solve?

Decouple the memory API into a gateway layer (for routing/param parse)
and a service layer (for business logic).

### Type of change

- [x] Refactoring
This commit is contained in:
Lynn
2026-02-12 10:11:50 +08:00
committed by GitHub
parent 4b50b8c579
commit 30d5fc1a07
6 changed files with 413 additions and 292 deletions

View File

@ -16,3 +16,13 @@
class TaskCanceledException(Exception):
def __init__(self, msg):
self.msg = msg
class ArgumentException(Exception):
def __init__(self, msg):
self.msg = msg
class NotFoundException(Exception):
def __init__(self, msg):
self.msg = msg