Files
django-vue3-admin-gd/chat/routers/ai_api_key.py
2025-07-17 10:59:48 +08:00

13 lines
441 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
from schemas.ai_api_key import AIApiKeyCreate, AIApiKeyUpdate, AIApiKeyRead
from crud.ai_api_key import ai_api_key_crud
from routers.base import GenericRouter
# 继承通用路由基类传入参数即可生成所有CRUD接口
router = GenericRouter(
crud=ai_api_key_crud,
create_schema=AIApiKeyCreate,
update_schema=AIApiKeyUpdate,
read_schema=AIApiKeyRead,
prefix="/chat/api/ai-api-keys",
tags=["AI API密钥"]
)