Files
company-ai-platform/app/modules/reports/schemas.py
JiuContinent 0a153b264a ```
refactor: 移除审批和回写功能模块

移除了整个审批(approvals)和官方回写(writebacks)功能模块,
包括相关模型、路由、服务和配置项。更新了数据库迁移文件,
删除了相关的审批请求表和官方回写运行表。同时从API路由器中
移除了相应的路由,并调整了安全常量和字段验证器以匹配变更。
```
2026-07-08 17:08:59 +08:00

31 lines
796 B
Python

from datetime import date
from pydantic import BaseModel
from app.core.constants import ActorValue
from app.modules.feishu.constants import FeishuReceiveIdType
from app.modules.reports.constants import ReportType
class ReportResponse(BaseModel):
title: str
content: str
lines: list[str]
class PushReportRequest(BaseModel):
receive_id: str | None = None
receive_id_type: str = FeishuReceiveIdType.CHAT_ID
actor: str = ActorValue.SYSTEM
class WorkReportGenerateRequest(BaseModel):
report_type: ReportType = ReportType.DAILY
reporter: str = ActorValue.SYSTEM
department: str | None = None
project_code: str | None = None
period_start: date | None = None
period_end: date | None = None
persist: bool = False
actor: str = ActorValue.API