feat: consolidate ticket domain baseline

This commit is contained in:
hailin
2026-07-27 18:57:51 +08:00
parent 5015e4407d
commit 96452934a3
25 changed files with 4236 additions and 218 deletions

View File

@@ -12,6 +12,10 @@ class SolutionIn(Schema):
solution: str
risk_note: str = ""
status: str = "draft"
allow_auto_resolve: bool = False
requires_human_action: bool = False
requires_external_confirmation: bool = False
requires_production_change: bool = False
class SolutionOut(Schema):
@@ -24,6 +28,10 @@ class SolutionOut(Schema):
solution: str
risk_note: str
status: str
allow_auto_resolve: bool
requires_human_action: bool
requires_external_confirmation: bool
requires_production_change: bool
usage_count: int
created_at: datetime
updated_at: datetime
@@ -37,8 +45,8 @@ class TicketSolutionLinkIn(Schema):
class AdoptSolutionIn(Schema):
ticket_id: int
remark: str = "采纳解决方案并关闭工单"
replied_to_customer: bool = True
remark: str = "采纳解决方案并标记工单已解决"
replied_to_customer: bool = False
class TicketSolutionLinkOut(Schema):