From 228d16a3fba9690d6d2a2b9686e96234ccc7f293 Mon Sep 17 00:00:00 2001 From: inter Date: Mon, 8 Sep 2025 16:36:12 +0800 Subject: [PATCH] Add File --- backend/apps/system/schemas/auth.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 backend/apps/system/schemas/auth.py diff --git a/backend/apps/system/schemas/auth.py b/backend/apps/system/schemas/auth.py new file mode 100644 index 0000000..f67b15f --- /dev/null +++ b/backend/apps/system/schemas/auth.py @@ -0,0 +1,19 @@ + +from pydantic import BaseModel +from enum import Enum + +class LocalLoginSchema(BaseModel): + account: str + password: str + +class CacheNamespace(Enum): + AUTH_INFO = "sqlbot:auth" + EMBEDDED_INFO = "sqlbot:embedded" + def __str__(self): + return self.value +class CacheName(Enum): + USER_INFO = "user:info" + ASSISTANT_INFO = "assistant:info" + ASSISTANT_DS = "assistant:ds" + def __str__(self): + return self.value \ No newline at end of file