```
feat(ai_agent): 完善AI适配器和服务功能 - 添加OpenClaw和Hermes健康检查接口 - 实现OpenClaw工具调用功能 - 重构AI适配器使用常量定义 - 增加AI技能系统支持 - 更新配置文件中的默认模型提供者设置 refactor(scheduler): 使用常量替换硬编码值 - 将硬编码的actor值替换为ActorValue常量 - 将receive_id_type替换为FeishuReceiveIdType枚举 refactor(audit): 统一审计日志常量使用 - 将硬编码的actor、source、risk_level等值替换为对应常量 - 更新审核服务中的状态和操作常量引用 refactor(approvals): 标准化审批模块常量使用 - 将applicant默认值替换为ActorValue.API常量 - 使用ApprovalStatus常量替代硬编码状态值 - 更新审核操作常量引用 ```
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
from datetime import date
|
||||
from typing import Literal
|
||||
|
||||
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
|
||||
@@ -12,16 +15,16 @@ class ReportResponse(BaseModel):
|
||||
|
||||
class PushReportRequest(BaseModel):
|
||||
receive_id: str | None = None
|
||||
receive_id_type: str = "chat_id"
|
||||
actor: str = "system"
|
||||
receive_id_type: str = FeishuReceiveIdType.CHAT_ID
|
||||
actor: str = ActorValue.SYSTEM
|
||||
|
||||
|
||||
class WorkReportGenerateRequest(BaseModel):
|
||||
report_type: Literal["daily", "weekly"] = "daily"
|
||||
reporter: str = "system"
|
||||
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 = True
|
||||
actor: str = "api"
|
||||
actor: str = ActorValue.API
|
||||
|
||||
Reference in New Issue
Block a user