refactor: 优化API路由和响应模型 feat(admin): 添加App用户管理接口 feat(sms): 实现阿里云短信服务集成 feat(email): 添加SMTP邮件发送功能 feat(upload): 支持文件上传接口 feat(rate-limiter): 实现手机号限流器 fix: 修复计算步骤入库问题 docs: 更新API文档和测试计划 chore: 更新依赖和配置
11 lines
226 B
Python
11 lines
226 B
Python
from pydantic import BaseModel
|
|
|
|
class ImageUploadResponse(BaseModel):
|
|
"""图片上传响应模型"""
|
|
url: str
|
|
filename: str
|
|
|
|
class FileUploadResponse(BaseModel):
|
|
url: str
|
|
filename: str
|
|
content_type: str |