{ "components": { "schemas": { "AICrossExamRequest": { "description": "AI 质证意见请求", "properties": { "cause_of_action": { "default": "", "title": "Cause Of Action", "type": "string" }, "content_summary": { "default": "", "title": "Content Summary", "type": "string" }, "evidence_name": { "default": "", "title": "Evidence Name", "type": "string" }, "our_claim": { "default": "", "title": "Our Claim", "type": "string" } }, "title": "AICrossExamRequest", "type": "object" }, "AICrossExamResponse": { "description": "AI 质证意见响应", "properties": { "cross_examination": { "additionalProperties": true, "title": "Cross Examination", "type": "object" } }, "required": [ "cross_examination" ], "title": "AICrossExamResponse", "type": "object" }, "AIPurposeRequest": { "description": "AI 证明目的建议请求", "properties": { "cause_of_action": { "default": "", "title": "Cause Of Action", "type": "string" }, "content_summary": { "default": "", "title": "Content Summary", "type": "string" }, "evidence_name": { "default": "", "title": "Evidence Name", "type": "string" }, "evidence_type": { "default": "", "title": "Evidence Type", "type": "string" } }, "title": "AIPurposeRequest", "type": "object" }, "AIPurposeResponse": { "description": "AI 证明目的建议响应", "properties": { "suggestions": { "items": { "type": "string" }, "title": "Suggestions", "type": "array" } }, "required": [ "suggestions" ], "title": "AIPurposeResponse", "type": "object" }, "AccountCredentialIn": { "properties": { "account": { "title": "Account", "type": "string" }, "lawyer_id": { "title": "Lawyer Id", "type": "integer" }, "password": { "title": "Password", "type": "string" }, "site_name": { "title": "Site Name", "type": "string" }, "url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Url" } }, "required": [ "lawyer_id", "site_name", "account", "password" ], "title": "AccountCredentialIn", "type": "object" }, "AccountCredentialOut": { "properties": { "account": { "maxLength": 255, "title": "账号", "type": "string" }, "created_at": { "format": "date-time", "title": "创建时间", "type": "string" }, "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "ID" }, "lawyer": { "title": "律师", "type": "integer" }, "site_name": { "maxLength": 255, "title": "网站名称", "type": "string" }, "updated_at": { "format": "date-time", "title": "更新时间", "type": "string" }, "url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "URL" } }, "required": [ "lawyer", "site_name", "account", "created_at", "updated_at" ], "title": "AccountCredentialOut", "type": "object" }, "AccountCredentialUpdateIn": { "properties": { "account": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Account" }, "password": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Password" }, "site_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Site Name" }, "url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Url" } }, "title": "AccountCredentialUpdateIn", "type": "object" }, "AddExecuteeRequest": { "description": "追加被执行人申请书请求", "properties": { "add_reason": { "title": "Add Reason", "type": "string" }, "added_respondent_address": { "title": "Added Respondent Address", "type": "string" }, "added_respondent_id_number": { "title": "Added Respondent Id Number", "type": "string" }, "added_respondent_name": { "title": "Added Respondent Name", "type": "string" }, "applicant_address": { "title": "Applicant Address", "type": "string" }, "applicant_name": { "title": "Applicant Name", "type": "string" }, "case_id": { "title": "Case Id", "type": "integer" }, "legal_basis": { "title": "Legal Basis", "type": "string" }, "original_respondent_address": { "title": "Original Respondent Address", "type": "string" }, "original_respondent_name": { "title": "Original Respondent Name", "type": "string" } }, "required": [ "case_id", "applicant_name", "applicant_address", "original_respondent_name", "original_respondent_address", "added_respondent_name", "added_respondent_address", "added_respondent_id_number", "add_reason", "legal_basis" ], "title": "AddExecuteeRequest", "type": "object" }, "AdvanceStageRequest": { "description": "推进阶段请求", "properties": { "description": { "default": "", "title": "Description", "type": "string" } }, "title": "AdvanceStageRequest", "type": "object" }, "AgentSearchBudgetIn": { "properties": { "max_candidates": { "default": 160, "description": "最大候选扫描数", "maximum": 200, "minimum": 5, "title": "Max Candidates", "type": "integer" }, "timeout_ms": { "default": 20000, "description": "总超时预算(毫秒)", "maximum": 120000, "minimum": 3000, "title": "Timeout Ms", "type": "integer" } }, "title": "AgentSearchBudgetIn", "type": "object" }, "AgentSearchCourtScopeIn": { "properties": { "court_name": { "default": "", "description": "法院名称", "maxLength": 255, "title": "Court Name", "type": "string" }, "mode": { "default": "same_court", "description": "法院范围模式", "enum": [ "same_court", "same_level", "region" ], "title": "Mode", "type": "string" }, "region_code": { "default": "", "description": "行政区划编码", "maxLength": 64, "title": "Region Code", "type": "string" } }, "title": "AgentSearchCourtScopeIn", "type": "object" }, "AgentSearchFiltersIn": { "properties": { "case_stage": { "description": "审级过滤", "items": { "type": "string" }, "title": "Case Stage", "type": "array" }, "doc_types": { "description": "文书类型过滤", "items": { "type": "string" }, "title": "Doc Types", "type": "array" } }, "title": "AgentSearchFiltersIn", "type": "object" }, "AgentSearchQueryTraceOut": { "properties": { "budget_used_ms": { "default": 0, "title": "Budget Used Ms", "type": "integer" }, "candidates_scanned": { "default": 0, "title": "Candidates Scanned", "type": "integer" }, "expansion_queries": { "items": { "type": "string" }, "title": "Expansion Queries", "type": "array" }, "feedback_queries": { "items": { "type": "string" }, "title": "Feedback Queries", "type": "array" }, "primary_queries": { "items": { "type": "string" }, "title": "Primary Queries", "type": "array" }, "query_type_metrics": { "additionalProperties": { "$ref": "#/components/schemas/QueryTypeMetric" }, "title": "Query Type Metrics", "type": "object" } }, "title": "AgentSearchQueryTraceOut", "type": "object" }, "AgentSearchRequestV1": { "properties": { "budget": { "allOf": [ { "$ref": "#/components/schemas/AgentSearchBudgetIn" } ], "description": "调用预算" }, "cause_type": { "default": "", "description": "案由", "maxLength": 255, "title": "Cause Type", "type": "string" }, "court_scope": { "allOf": [ { "$ref": "#/components/schemas/AgentSearchCourtScopeIn" } ], "description": "法院范围约束" }, "credential_id": { "description": "账号凭证ID", "exclusiveMinimum": 0, "title": "Credential Id", "type": "integer" }, "facts": { "description": "事实摘要", "maxLength": 8000, "minLength": 5, "title": "Facts", "type": "string" }, "filters": { "allOf": [ { "$ref": "#/components/schemas/AgentSearchFiltersIn" } ], "description": "扩展过滤项" }, "intent": { "default": "similar_case", "description": "检索意图", "enum": [ "similar_case", "same_court_precedent", "claim_style", "reasoning_style", "defense_risk" ], "title": "Intent", "type": "string" }, "legal_issue": { "default": "", "description": "争点摘要", "maxLength": 2000, "title": "Legal Issue", "type": "string" }, "search_mode": { "default": "expanded", "description": "检索模式:expanded 或 single", "enum": [ "expanded", "single" ], "title": "Search Mode", "type": "string" }, "target_count": { "default": 5, "description": "目标返回数量", "maximum": 20, "minimum": 1, "title": "Target Count", "type": "integer" }, "version": { "const": "v1", "default": "v1", "title": "Version", "type": "string" }, "year_range": { "allOf": [ { "$ref": "#/components/schemas/AgentSearchYearRangeIn" } ], "description": "年份约束" } }, "required": [ "credential_id", "facts" ], "title": "AgentSearchRequestV1", "type": "object" }, "AgentSearchResponseV1": { "properties": { "degradation_flags": { "items": { "type": "string" }, "title": "Degradation Flags", "type": "array" }, "query_trace": { "allOf": [ { "$ref": "#/components/schemas/AgentSearchQueryTraceOut" } ] }, "request_id": { "title": "Request Id", "type": "string" }, "results": { "items": { "$ref": "#/components/schemas/RetrievalHitV1" }, "title": "Results", "type": "array" }, "status": { "enum": [ "ok", "partial", "failed" ], "title": "Status", "type": "string" }, "version": { "const": "v1", "default": "v1", "title": "Version", "type": "string" } }, "required": [ "request_id", "status" ], "title": "AgentSearchResponseV1", "type": "object" }, "AgentSearchSnippetsOut": { "properties": { "claims": { "default": "", "title": "Claims", "type": "string" }, "findings": { "default": "", "title": "Findings", "type": "string" }, "holdings": { "default": "", "title": "Holdings", "type": "string" }, "reasoning": { "default": "", "title": "Reasoning", "type": "string" } }, "title": "AgentSearchSnippetsOut", "type": "object" }, "AgentSearchSubscoresOut": { "properties": { "damage_match": { "default": 0.0, "title": "Damage Match", "type": "number" }, "dispute_match": { "default": 0.0, "title": "Dispute Match", "type": "number" }, "facts_match": { "default": 0.0, "title": "Facts Match", "type": "number" }, "legal_relation_match": { "default": 0.0, "title": "Legal Relation Match", "type": "number" } }, "title": "AgentSearchSubscoresOut", "type": "object" }, "AgentSearchYearRangeIn": { "properties": { "from": { "anyOf": [ { "maximum": 2100, "minimum": 1980, "type": "integer" }, { "type": "null" } ], "description": "起始年份", "title": "From" }, "to": { "anyOf": [ { "maximum": 2100, "minimum": 1980, "type": "integer" }, { "type": "null" } ], "description": "结束年份", "title": "To" } }, "title": "AgentSearchYearRangeIn", "type": "object" }, "AssessmentRequest": { "description": "综合评估请求", "properties": { "agreed_court": { "default": "", "title": "Agreed Court", "type": "string" }, "case_id": { "title": "Case Id", "type": "integer" }, "contract_basis": { "title": "Contract Basis", "type": "string" }, "defendant_location": { "default": "", "title": "Defendant Location", "type": "string" }, "evidence_items": { "items": { "$ref": "#/components/schemas/EvidenceItemSchema" }, "title": "Evidence Items", "type": "array" }, "guarantee_debtor": { "default": false, "title": "Guarantee Debtor", "type": "boolean" }, "has_agreed_jurisdiction": { "default": false, "title": "Has Agreed Jurisdiction", "type": "boolean" }, "interruptions": { "items": { "$ref": "#/components/schemas/InterruptionEventSchema" }, "title": "Interruptions", "type": "array" }, "invalid_reason": { "default": "", "title": "Invalid Reason", "type": "string" }, "is_agreed_valid": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Is Agreed Valid" }, "last_claim_date": { "format": "date", "title": "Last Claim Date", "type": "string" }, "local_avg_salary": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Local Avg Salary" }, "plaintiff_location": { "default": "", "title": "Plaintiff Location", "type": "string" }, "principal_amount": { "title": "Principal Amount", "type": "number" }, "principal_due_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Principal Due Date" }, "remarks": { "default": "", "title": "Remarks", "type": "string" }, "solvency_rating": { "default": "unknown", "title": "Solvency Rating", "type": "string" }, "willing_to_mediate": { "default": false, "title": "Willing To Mediate", "type": "boolean" } }, "required": [ "case_id", "contract_basis", "principal_amount", "evidence_items", "last_claim_date", "interruptions" ], "title": "AssessmentRequest", "type": "object" }, "AssessmentResponse": { "description": "综合评估响应", "properties": { "assessment_grade": { "title": "Assessment Grade", "type": "string" }, "assessment_id": { "title": "Assessment Id", "type": "integer" }, "case_id": { "title": "Case Id", "type": "integer" }, "contract_basis": { "title": "Contract Basis", "type": "string" }, "evidence_details": { "items": { "$ref": "#/components/schemas/EvidenceItemResponse" }, "title": "Evidence Details", "type": "array" }, "evidence_grade": { "title": "Evidence Grade", "type": "string" }, "evidence_total_score": { "title": "Evidence Total Score", "type": "number" }, "guarantee_expiry_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Guarantee Expiry Date" }, "jurisdiction": { "$ref": "#/components/schemas/JurisdictionResponseSchema" }, "limitation_expiry_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Limitation Expiry Date" }, "limitation_status": { "title": "Limitation Status", "type": "string" }, "principal_amount": { "title": "Principal Amount", "type": "number" }, "remaining_days": { "title": "Remaining Days", "type": "integer" }, "remarks": { "title": "Remarks", "type": "string" }, "risk_warning": { "title": "Risk Warning", "type": "string" }, "solvency_rating": { "title": "Solvency Rating", "type": "string" }, "strategy": { "$ref": "#/components/schemas/StrategyResponseSchema" } }, "required": [ "assessment_id", "case_id", "contract_basis", "principal_amount", "evidence_total_score", "evidence_grade", "evidence_details", "limitation_status", "limitation_expiry_date", "remaining_days", "risk_warning", "solvency_rating", "assessment_grade", "jurisdiction", "strategy", "remarks" ], "title": "AssessmentResponse", "type": "object" }, "AttachmentMeta": { "description": "附件元信息。", "properties": { "content_type": { "title": "Content Type", "type": "string" }, "filename": { "title": "Filename", "type": "string" }, "part_index": { "title": "Part Index", "type": "integer" }, "size": { "title": "Size", "type": "integer" } }, "required": [ "filename", "size", "content_type", "part_index" ], "title": "AttachmentMeta", "type": "object" }, "AutoToolProcessIn": { "properties": { "file_path": { "title": "File Path", "type": "string" }, "limit": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Limit" }, "model": { "default": "qwen3:0.6b", "title": "Model", "type": "string" }, "preview_page": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Preview Page" }, "prompt": { "default": "请你作为一名专业的文件管理员,按照以下严格规则为我提供的法律文件命名。\n\n1. **命名结构**:`[文件核心类型]([案件双方])_[年月日]收`\n * 方括号 `[]` 中的内容为需要你填写的变量。\n * 书名号 `“”` 仅用于包裹文件标题,本身不是文件名的一部分。\n * 括号 `()` 和下划线 `_` 是文件名的固定组成部分。\n\n2. **文件核心类型**:\n * 从文件标题中提取最关键的法律文书类型。\n * 例如:`“交纳诉讼费用通知书”` -> `交纳诉讼费用通知书`;`“民事判决书(2023)粤01民终1234号”` -> `民事判决书`。\n * 常见类型包括但不限于:`传票`、`通知书`、`判决书`、`裁定书`、`调解书`、`决定书`、`支付令`、\n `交纳诉讼费用通知书`、`反驳意见`、`质证意见`、`应诉通知书`、`举证通知书`等。\n\n3. **案件双方**:\n * 格式为 `[甲方]与[乙方]案件`。\n * `甲方`和`乙方`是案件的核心当事人。通常是原告与被告、第三人,或申请人与被申请人,上诉人与被上诉人、原审第三人等。\n * 请从文件正文中提取完整、准确的姓名或单位全称。\n * 示例:文件中提到“原告:王开心;被告:汪猪猪;被告:大狗狗” -> `王开心与汪猪猪、大狗狗案件`。\n * 示例2:文件中提到“原告:王开心;被告:汪猪猪;第三人:小笨蛋” -> `王开心与汪猪猪、大笨蛋案件`。\n\n4. **年月日**:\n * 使用今天的系统日期,格式为8位数字 `YYYYMMDD`。\n * **当前日期:20260404**\n * 你必须使用上面提供的这个日期,无需自行更改或计算。\n\n5. **命名示例**:\n * 输入文件标题为“交纳诉讼费用通知书”,当事人为“王开心”与“汪猪猪” -> `交纳诉讼费用通知书(王开心与汪猪猪案件)_20251113收` # noqa: E501\n * 输入文件标题为“民事判决书”,当事人为“广州市西山咀百货有限公司”诉“佛山市浦满贸易有限公司、梁伟龙、张俊萱” -> `民事判决书(广州市西山咀百货有限公司与佛山市浦满贸易有限公司、梁伟龙、张俊萱案件)_20251111收` # noqa: E501\n\n6. **输出要求**:\n * 请严格按照上述规则生成一个唯一的文件名。\n * 直接返回最终的文件名字符串,不要添加任何额外的解释、说明、标点符号或代码块标记。\n * 请删除所有空格。", "title": "Prompt", "type": "string" } }, "required": [ "file_path" ], "title": "AutoToolProcessIn", "type": "object" }, "AutoToolProcessOut": { "properties": { "error": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Error" }, "ollama_response": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "Ollama Response" }, "text": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Text" } }, "title": "AutoToolProcessOut", "type": "object" }, "BatchDeliveryItem": { "description": "分批交货条目", "properties": { "amount": { "title": "Amount", "type": "number" }, "delivery_date": { "format": "date", "title": "Delivery Date", "type": "string" }, "payment_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Payment Date" } }, "required": [ "delivery_date", "amount" ], "title": "BatchDeliveryItem", "type": "object" }, "BindingResultSchema": { "description": "绑定结果", "properties": { "case_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "description": "案件ID", "title": "Case Id" }, "case_log_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "description": "日志ID", "title": "Case Log Id" }, "case_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "案件名称", "title": "Case Name" }, "error_code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "错误码", "title": "Error Code" }, "message": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "消息", "title": "Message" }, "success": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "description": "是否成功", "title": "Success" } }, "title": "BindingResultSchema", "type": "object" }, "BreakdownItemResponse": { "description": "分组项", "properties": { "case_count": { "title": "Case Count", "type": "integer" }, "group_label": { "title": "Group Label", "type": "string" }, "recovery_rate": { "title": "Recovery Rate", "type": "string" }, "total_recovery": { "title": "Total Recovery", "type": "string" } }, "required": [ "group_label", "total_recovery", "case_count", "recovery_rate" ], "title": "BreakdownItemResponse", "type": "object" }, "BreakdownQuery": { "description": "分组查询参数", "properties": { "end_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "End Date" }, "group_by": { "default": "case_type", "title": "Group By", "type": "string" }, "start_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Start Date" } }, "title": "BreakdownQuery", "type": "object" }, "BreakdownResponse": { "description": "分组响应", "properties": { "items": { "items": { "$ref": "#/components/schemas/BreakdownItemResponse" }, "title": "Items", "type": "array" }, "query_period": { "$ref": "#/components/schemas/QueryPeriodSchema" } }, "required": [ "items", "query_period" ], "title": "BreakdownResponse", "type": "object" }, "CalculationPeriodSchema": { "description": "计算分段明细Schema.", "properties": { "days": { "title": "Days", "type": "integer" }, "end_date": { "format": "date", "title": "End Date", "type": "string" }, "interest": { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "title": "Interest", "type": "string" }, "principal": { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "title": "Principal", "type": "string" }, "rate": { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "title": "Rate", "type": "string" }, "rate_unit": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "利率单位: percent/permille/permyriad", "title": "Rate Unit" }, "start_date": { "format": "date", "title": "Start Date", "type": "string" }, "year_days": { "title": "Year Days", "type": "integer" } }, "required": [ "start_date", "end_date", "principal", "rate", "days", "year_days", "interest" ], "title": "CalculationPeriodSchema", "type": "object" }, "CaptchaRecognizeIn": { "description": "验证码识别请求", "properties": { "image_base64": { "description": "Base64 编码的图片数据", "minLength": 1, "title": "Image Base64", "type": "string" } }, "required": [ "image_base64" ], "title": "CaptchaRecognizeIn", "type": "object" }, "CaptchaRecognizeOut": { "description": "验证码识别响应", "examples": [ { "error": null, "processing_time": 0.234, "success": true, "text": "AB12" }, { "error": "图片格式不支持", "processing_time": 0.012, "success": false, "text": null } ], "properties": { "error": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "错误信息", "title": "Error" }, "processing_time": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "description": "处理耗时(秒)", "title": "Processing Time" }, "success": { "description": "是否识别成功", "title": "Success", "type": "boolean" }, "text": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "识别出的验证码文本", "title": "Text" } }, "required": [ "success" ], "title": "CaptchaRecognizeOut", "type": "object" }, "CaseAccessGrantIn": { "properties": { "case_id": { "title": "Case Id", "type": "integer" }, "grantee_id": { "title": "Grantee Id", "type": "integer" } }, "required": [ "case_id", "grantee_id" ], "title": "CaseAccessGrantIn", "type": "object" }, "CaseAccessGrantOut": { "properties": { "case": { "title": "案件", "type": "integer" }, "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "grantee": { "title": "获授权律师", "type": "integer" }, "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "ID" } }, "required": [ "case", "grantee", "created_at" ], "title": "CaseAccessGrantOut", "type": "object" }, "CaseAccessGrantUpdate": { "properties": { "case_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Case Id" }, "grantee_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Grantee Id" } }, "title": "CaseAccessGrantUpdate", "type": "object" }, "CaseAssignmentCreate": { "properties": { "lawyer_id": { "title": "Lawyer Id", "type": "integer" } }, "required": [ "lawyer_id" ], "title": "CaseAssignmentCreate", "type": "object" }, "CaseAssignmentIn": { "properties": { "case_id": { "title": "Case Id", "type": "integer" }, "lawyer_id": { "title": "Lawyer Id", "type": "integer" } }, "required": [ "case_id", "lawyer_id" ], "title": "CaseAssignmentIn", "type": "object" }, "CaseAssignmentOut": { "properties": { "case": { "title": "案件", "type": "integer" }, "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "ID" }, "lawyer": { "title": "律师", "type": "integer" }, "lawyer_detail": { "$ref": "#/components/schemas/LawyerOutFromDTO" } }, "required": [ "lawyer_detail", "case", "lawyer" ], "title": "CaseAssignmentOut", "type": "object" }, "CaseAssignmentUpdate": { "properties": { "case_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Case Id" }, "lawyer_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Lawyer Id" } }, "title": "CaseAssignmentUpdate", "type": "object" }, "CaseCreateFull": { "properties": { "assignments": { "anyOf": [ { "items": { "$ref": "#/components/schemas/CaseAssignmentCreate" }, "type": "array" }, { "type": "null" } ], "title": "Assignments" }, "case": { "$ref": "#/components/schemas/CaseIn" }, "case_numbers": { "anyOf": [ { "items": { "$ref": "#/components/schemas/CaseNumberIn" }, "type": "array" }, { "type": "null" } ], "title": "Case Numbers" }, "logs": { "anyOf": [ { "items": { "$ref": "#/components/schemas/CaseLogCreate" }, "type": "array" }, { "type": "null" } ], "title": "Logs" }, "parties": { "anyOf": [ { "items": { "$ref": "#/components/schemas/CasePartyCreate" }, "type": "array" }, { "type": "null" } ], "title": "Parties" }, "supervising_authorities": { "anyOf": [ { "items": { "$ref": "#/components/schemas/SupervisingAuthorityIn" }, "type": "array" }, { "type": "null" } ], "title": "Supervising Authorities" } }, "required": [ "case" ], "title": "CaseCreateFull", "type": "object" }, "CaseFilingInfoOut": { "description": "案件立案信息", "properties": { "case_id": { "title": "Case Id", "type": "integer" }, "case_name": { "title": "Case Name", "type": "string" }, "cause_of_action": { "title": "Cause Of Action", "type": "string" }, "court_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Court Name" }, "default_filing_engine": { "default": "api", "title": "Default Filing Engine", "type": "string" }, "defendant_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Defendant Name" }, "has_court_credential": { "default": false, "title": "Has Court Credential", "type": "boolean" }, "has_http_plugin": { "default": false, "title": "Has Http Plugin", "type": "boolean" }, "our_party_is_plaintiff_side": { "default": false, "title": "Our Party Is Plaintiff Side", "type": "boolean" }, "plaintiff_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Plaintiff Name" }, "suggested_filing_type": { "default": "civil", "title": "Suggested Filing Type", "type": "string" }, "target_amount": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Target Amount" } }, "required": [ "case_id", "case_name", "cause_of_action", "court_name", "target_amount", "plaintiff_name", "defendant_name" ], "title": "CaseFilingInfoOut", "type": "object" }, "CaseFolderBindingCreateSchema": { "properties": { "folder_path": { "title": "Folder Path", "type": "string" } }, "required": [ "folder_path" ], "title": "CaseFolderBindingCreateSchema", "type": "object" }, "CaseFolderBindingResponseSchema": { "properties": { "case_id": { "title": "Case Id", "type": "integer" }, "created_at": { "title": "Created At", "type": "string" }, "folder_path": { "title": "Folder Path", "type": "string" }, "folder_path_display": { "title": "Folder Path Display", "type": "string" }, "id": { "title": "Id", "type": "integer" }, "is_accessible": { "title": "Is Accessible", "type": "boolean" }, "updated_at": { "title": "Updated At", "type": "string" } }, "required": [ "id", "case_id", "folder_path", "folder_path_display", "is_accessible", "created_at", "updated_at" ], "title": "CaseFolderBindingResponseSchema", "type": "object" }, "CaseFolderScanCandidateOut": { "properties": { "base_name": { "title": "Base Name", "type": "string" }, "confidence": { "default": 0.0, "title": "Confidence", "type": "number" }, "extract_method": { "title": "Extract Method", "type": "string" }, "file_size": { "title": "File Size", "type": "integer" }, "filename": { "title": "Filename", "type": "string" }, "modified_at": { "title": "Modified At", "type": "string" }, "reason": { "default": "", "title": "Reason", "type": "string" }, "selected": { "default": true, "title": "Selected", "type": "boolean" }, "source_path": { "title": "Source Path", "type": "string" }, "suggested_category": { "default": "unknown", "title": "Suggested Category", "type": "string" }, "suggested_party_ids": { "items": { "type": "integer" }, "title": "Suggested Party Ids", "type": "array" }, "suggested_side": { "default": "unknown", "title": "Suggested Side", "type": "string" }, "suggested_supervising_authority_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Suggested Supervising Authority Id" }, "text_excerpt": { "title": "Text Excerpt", "type": "string" }, "type_name_hint": { "default": "", "title": "Type Name Hint", "type": "string" }, "version_token": { "title": "Version Token", "type": "string" } }, "required": [ "source_path", "filename", "file_size", "modified_at", "base_name", "version_token", "extract_method", "text_excerpt" ], "title": "CaseFolderScanCandidateOut", "type": "object" }, "CaseFolderScanPrefillOut": { "properties": { "category": { "default": "", "title": "Category", "type": "string" }, "party_ids": { "items": { "type": "integer" }, "title": "Party Ids", "type": "array" }, "side": { "default": "", "title": "Side", "type": "string" }, "supervising_authority_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Supervising Authority Id" }, "type_name_hint": { "default": "", "title": "Type Name Hint", "type": "string" } }, "title": "CaseFolderScanPrefillOut", "type": "object" }, "CaseFolderScanStageIn": { "properties": { "items": { "items": { "$ref": "#/components/schemas/CaseFolderScanStageItemIn" }, "title": "Items", "type": "array" } }, "required": [ "items" ], "title": "CaseFolderScanStageIn", "type": "object" }, "CaseFolderScanStageItemIn": { "properties": { "category": { "default": "unknown", "title": "Category", "type": "string" }, "party_ids": { "items": { "type": "integer" }, "title": "Party Ids", "type": "array" }, "selected": { "default": true, "title": "Selected", "type": "boolean" }, "side": { "default": "unknown", "title": "Side", "type": "string" }, "source_path": { "title": "Source Path", "type": "string" }, "supervising_authority_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Supervising Authority Id" }, "type_name_hint": { "default": "", "title": "Type Name Hint", "type": "string" } }, "required": [ "source_path" ], "title": "CaseFolderScanStageItemIn", "type": "object" }, "CaseFolderScanStageOut": { "properties": { "attachment_ids": { "items": { "type": "integer" }, "title": "Attachment Ids", "type": "array" }, "log_id": { "title": "Log Id", "type": "integer" }, "materials_url": { "title": "Materials Url", "type": "string" }, "prefill_map": { "additionalProperties": { "$ref": "#/components/schemas/CaseFolderScanPrefillOut" }, "title": "Prefill Map", "type": "object" }, "session_id": { "title": "Session Id", "type": "string" }, "status": { "title": "Status", "type": "string" } }, "required": [ "session_id", "status", "log_id", "attachment_ids", "materials_url" ], "title": "CaseFolderScanStageOut", "type": "object" }, "CaseFolderScanStartIn": { "properties": { "enable_recognition": { "default": false, "title": "Enable Recognition", "type": "boolean" }, "rescan": { "default": false, "title": "Rescan", "type": "boolean" }, "scan_subfolder": { "default": "", "title": "Scan Subfolder", "type": "string" } }, "title": "CaseFolderScanStartIn", "type": "object" }, "CaseFolderScanStartOut": { "properties": { "session_id": { "title": "Session Id", "type": "string" }, "status": { "title": "Status", "type": "string" }, "task_id": { "default": "", "title": "Task Id", "type": "string" } }, "required": [ "session_id", "status" ], "title": "CaseFolderScanStartOut", "type": "object" }, "CaseFolderScanStatusOut": { "properties": { "candidates": { "items": { "$ref": "#/components/schemas/CaseFolderScanCandidateOut" }, "title": "Candidates", "type": "array" }, "current_file": { "default": "", "title": "Current File", "type": "string" }, "enable_recognition": { "default": false, "title": "Enable Recognition", "type": "boolean" }, "error_message": { "default": "", "title": "Error Message", "type": "string" }, "prefill_map": { "additionalProperties": { "$ref": "#/components/schemas/CaseFolderScanPrefillOut" }, "title": "Prefill Map", "type": "object" }, "progress": { "title": "Progress", "type": "integer" }, "scan_subfolder": { "default": "", "title": "Scan Subfolder", "type": "string" }, "session_id": { "title": "Session Id", "type": "string" }, "status": { "title": "Status", "type": "string" }, "summary": { "$ref": "#/components/schemas/CaseFolderScanSummaryOut" } }, "required": [ "session_id", "status", "progress", "summary", "candidates" ], "title": "CaseFolderScanStatusOut", "type": "object" }, "CaseFolderScanSubfolderListOut": { "properties": { "root_path": { "title": "Root Path", "type": "string" }, "subfolders": { "items": { "$ref": "#/components/schemas/CaseFolderScanSubfolderOptionOut" }, "title": "Subfolders", "type": "array" } }, "required": [ "root_path", "subfolders" ], "title": "CaseFolderScanSubfolderListOut", "type": "object" }, "CaseFolderScanSubfolderOptionOut": { "properties": { "display_name": { "title": "Display Name", "type": "string" }, "relative_path": { "title": "Relative Path", "type": "string" } }, "required": [ "relative_path", "display_name" ], "title": "CaseFolderScanSubfolderOptionOut", "type": "object" }, "CaseFolderScanSummaryOut": { "properties": { "classified_files": { "default": 0, "title": "Classified Files", "type": "integer" }, "deduped_files": { "default": 0, "title": "Deduped Files", "type": "integer" }, "total_files": { "default": 0, "title": "Total Files", "type": "integer" } }, "title": "CaseFolderScanSummaryOut", "type": "object" }, "CaseFullOut": { "properties": { "assignments": { "items": { "$ref": "#/components/schemas/CaseAssignmentOut" }, "title": "Assignments", "type": "array" }, "case": { "$ref": "#/components/schemas/CaseOut" }, "case_numbers": { "items": { "$ref": "#/components/schemas/CaseNumberOut" }, "title": "Case Numbers", "type": "array" }, "logs": { "items": { "$ref": "#/components/schemas/CaseLogOut" }, "title": "Logs", "type": "array" }, "parties": { "items": { "$ref": "#/components/schemas/CasePartyOut" }, "title": "Parties", "type": "array" }, "supervising_authorities": { "items": { "$ref": "#/components/schemas/SupervisingAuthorityOut" }, "title": "Supervising Authorities", "type": "array" } }, "required": [ "case", "parties", "assignments", "logs", "case_numbers", "supervising_authorities" ], "title": "CaseFullOut", "type": "object" }, "CaseImportSessionOut": { "description": "案件导入会话输出。", "properties": { "completed_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Completed At" }, "created_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Created At" }, "error_count": { "default": 0, "title": "Error Count", "type": "integer" }, "error_message": { "default": "", "title": "Error Message", "type": "string" }, "id": { "title": "Id", "type": "integer" }, "matched_count": { "default": 0, "title": "Matched Count", "type": "integer" }, "phase": { "title": "Phase", "type": "string" }, "progress_message": { "default": "", "title": "Progress Message", "type": "string" }, "result_data": { "additionalProperties": true, "default": {}, "title": "Result Data", "type": "object" }, "skip_count": { "default": 0, "title": "Skip Count", "type": "integer" }, "started_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Started At" }, "status": { "title": "Status", "type": "string" }, "success_count": { "default": 0, "title": "Success Count", "type": "integer" }, "total_count": { "default": 0, "title": "Total Count", "type": "integer" }, "unmatched_count": { "default": 0, "title": "Unmatched Count", "type": "integer" }, "updated_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Updated At" }, "uploaded_filename": { "default": "", "title": "Uploaded Filename", "type": "string" } }, "required": [ "id", "status", "phase" ], "title": "CaseImportSessionOut", "type": "object" }, "CaseIn": { "properties": { "case_type": { "anyOf": [ { "maxLength": 32, "type": "string" }, { "type": "null" } ], "default": "civil", "title": "案件类型" }, "cause_of_action": { "anyOf": [ { "maxLength": 128, "type": "string" }, { "type": "null" } ], "title": "案由" }, "current_stage": { "anyOf": [ { "maxLength": 64, "type": "string" }, { "type": "null" } ], "title": "当前阶段" }, "effective_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "生效日期" }, "is_archived": { "default": false, "title": "是否已建档", "type": "boolean" }, "name": { "maxLength": 255, "title": "案件名称", "type": "string" }, "preservation_amount": { "anyOf": [ { "type": "number" }, { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" }, { "type": "null" } ], "title": "财产保全金额" }, "status": { "default": "active", "maxLength": 32, "title": "案件状态", "type": "string" }, "target_amount": { "anyOf": [ { "type": "number" }, { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" }, { "type": "null" } ], "title": "涉案金额" } }, "required": [ "name" ], "title": "CaseIn", "type": "object" }, "CaseLogActorOut": { "properties": { "id": { "title": "Id", "type": "integer" }, "phone": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Phone" }, "real_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Real Name" }, "username": { "title": "Username", "type": "string" } }, "required": [ "id", "username" ], "title": "CaseLogActorOut", "type": "object" }, "CaseLogAttachmentOut": { "properties": { "file_path": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "File Path" }, "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "ID" }, "log": { "title": "日志", "type": "integer" }, "media_url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Media Url" }, "uploaded_at": { "format": "date-time", "title": "上传时间", "type": "string" } }, "required": [ "file_path", "media_url", "log", "uploaded_at" ], "title": "CaseLogAttachmentOut", "type": "object" }, "CaseLogCreate": { "properties": { "content": { "title": "Content", "type": "string" }, "reminder_time": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Reminder Time" }, "reminder_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Reminder Type" } }, "required": [ "content" ], "title": "CaseLogCreate", "type": "object" }, "CaseLogIn": { "properties": { "case_id": { "title": "Case Id", "type": "integer" }, "content": { "title": "Content", "type": "string" } }, "required": [ "case_id", "content" ], "title": "CaseLogIn", "type": "object" }, "CaseLogOut": { "properties": { "actor": { "title": "操作人", "type": "integer" }, "actor_detail": { "$ref": "#/components/schemas/CaseLogActorOut" }, "attachments": { "items": { "$ref": "#/components/schemas/CaseLogAttachmentOut" }, "title": "Attachments", "type": "array" }, "case": { "title": "案件", "type": "integer" }, "content": { "title": "日志内容", "type": "string" }, "created_at": { "format": "date-time", "title": "创建日期", "type": "string" }, "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "ID" }, "reminders": { "items": { "$ref": "#/components/schemas/ReminderLiteOut" }, "title": "Reminders", "type": "array" }, "updated_at": { "format": "date-time", "title": "修改日期", "type": "string" } }, "required": [ "attachments", "reminders", "actor_detail", "case", "content", "actor", "created_at", "updated_at" ], "title": "CaseLogOut", "type": "object" }, "CaseLogUpdate": { "properties": { "case_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Case Id" }, "content": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Content" } }, "title": "CaseLogUpdate", "type": "object" }, "CaseMaterialBindCandidateOut": { "properties": { "actor_name": { "title": "Actor Name", "type": "string" }, "attachment_id": { "title": "Attachment Id", "type": "integer" }, "file_name": { "title": "File Name", "type": "string" }, "file_url": { "title": "File Url", "type": "string" }, "log_created_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Log Created At" }, "log_id": { "title": "Log Id", "type": "integer" }, "material": { "anyOf": [ { "$ref": "#/components/schemas/CaseMaterialBindingOut" }, { "type": "null" } ] }, "uploaded_at": { "format": "date-time", "title": "Uploaded At", "type": "string" } }, "required": [ "attachment_id", "file_name", "file_url", "uploaded_at", "log_id", "actor_name" ], "title": "CaseMaterialBindCandidateOut", "type": "object" }, "CaseMaterialBindIn": { "properties": { "items": { "items": { "$ref": "#/components/schemas/CaseMaterialBindItemIn" }, "title": "Items", "type": "array" } }, "required": [ "items" ], "title": "CaseMaterialBindIn", "type": "object" }, "CaseMaterialBindItemIn": { "properties": { "attachment_id": { "title": "Attachment Id", "type": "integer" }, "category": { "title": "Category", "type": "string" }, "side": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Side" }, "supervising_authority_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Supervising Authority Id" }, "type_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Type Id" }, "type_name": { "title": "Type Name", "type": "string" } }, "required": [ "attachment_id", "category", "type_name" ], "title": "CaseMaterialBindItemIn", "type": "object" }, "CaseMaterialBindingOut": { "properties": { "category": { "title": "Category", "type": "string" }, "id": { "title": "Id", "type": "integer" }, "side": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Side" }, "supervising_authority_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Supervising Authority Id" }, "type_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Type Id" }, "type_name": { "title": "Type Name", "type": "string" } }, "required": [ "id", "category", "type_name" ], "title": "CaseMaterialBindingOut", "type": "object" }, "CaseMaterialGroupOrderIn": { "properties": { "category": { "title": "Category", "type": "string" }, "ordered_type_ids": { "items": { "type": "integer" }, "title": "Ordered Type Ids", "type": "array" }, "side": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Side" }, "supervising_authority_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Supervising Authority Id" } }, "required": [ "category", "ordered_type_ids" ], "title": "CaseMaterialGroupOrderIn", "type": "object" }, "CaseMaterialUploadOut": { "properties": { "attachment_ids": { "items": { "type": "integer" }, "title": "Attachment Ids", "type": "array" }, "log_id": { "title": "Log Id", "type": "integer" } }, "required": [ "log_id", "attachment_ids" ], "title": "CaseMaterialUploadOut", "type": "object" }, "CaseNumberIn": { "properties": { "case_id": { "title": "Case Id", "type": "integer" }, "number": { "title": "Number", "type": "string" }, "remarks": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Remarks" } }, "required": [ "case_id", "number" ], "title": "CaseNumberIn", "type": "object" }, "CaseNumberOut": { "properties": { "created_at": { "format": "date-time", "title": "创建时间", "type": "string" }, "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "ID" }, "number": { "maxLength": 128, "title": "案号", "type": "string" }, "remarks": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "备注" } }, "required": [ "number", "created_at" ], "title": "CaseNumberOut", "type": "object" }, "CaseNumberUpdate": { "properties": { "number": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Number" }, "remarks": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Remarks" } }, "title": "CaseNumberUpdate", "type": "object" }, "CaseOut": { "properties": { "case_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Case Type" }, "cause_of_action": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cause Of Action" }, "current_stage": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Current Stage" }, "current_stage_label": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Current Stage Label" }, "effective_date": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Effective Date" }, "id": { "title": "Id", "type": "integer" }, "name": { "title": "Name", "type": "string" }, "preservation_amount": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Preservation Amount" }, "start_date": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Start Date" }, "status": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Status" }, "status_label": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Status Label" }, "target_amount": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Target Amount" } }, "required": [ "id", "name" ], "title": "CaseOut", "type": "object" }, "CasePartyCreate": { "properties": { "client_id": { "title": "Client Id", "type": "integer" }, "legal_status": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Legal Status" } }, "required": [ "client_id" ], "title": "CasePartyCreate", "type": "object" }, "CasePartyIn": { "properties": { "case_id": { "title": "Case Id", "type": "integer" }, "client_id": { "title": "Client Id", "type": "integer" }, "legal_status": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Legal Status" } }, "required": [ "case_id", "client_id" ], "title": "CasePartyIn", "type": "object" }, "CasePartyOut": { "properties": { "case": { "title": "案件", "type": "integer" }, "client": { "title": "当事人", "type": "integer" }, "client_detail": { "$ref": "#/components/schemas/ClientLiteOut" }, "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "ID" }, "legal_status": { "anyOf": [ { "maxLength": 32, "type": "string" }, { "type": "null" } ], "title": "诉讼地位" } }, "required": [ "client_detail", "case", "client" ], "title": "CasePartyOut", "type": "object" }, "CasePartyUpdate": { "properties": { "case_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Case Id" }, "client_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Client Id" }, "legal_status": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Legal Status" } }, "title": "CasePartyUpdate", "type": "object" }, "CaseSearchResultSchema": { "description": "案件搜索结果", "properties": { "case_numbers": { "description": "案号列表", "items": { "type": "string" }, "title": "Case Numbers", "type": "array" }, "created_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "创建时间", "title": "Created At" }, "id": { "description": "案件ID", "title": "Id", "type": "integer" }, "name": { "description": "案件名称", "title": "Name", "type": "string" }, "parties": { "description": "当事人列表", "items": { "type": "string" }, "title": "Parties", "type": "array" } }, "required": [ "id", "name" ], "title": "CaseSearchResultSchema", "type": "object" }, "CaseStatsResponse": { "description": "案件统计响应", "properties": { "active_cases": { "title": "Active Cases", "type": "integer" }, "amount_distribution": { "items": { "$ref": "#/components/schemas/BreakdownItemResponse" }, "title": "Amount Distribution", "type": "array" }, "closed_cases": { "title": "Closed Cases", "type": "integer" }, "query_period": { "$ref": "#/components/schemas/QueryPeriodSchema" }, "stage_conversion_rates": { "items": { "$ref": "#/components/schemas/FactorGroupResponse" }, "title": "Stage Conversion Rates", "type": "array" }, "stage_distribution": { "items": { "$ref": "#/components/schemas/BreakdownItemResponse" }, "title": "Stage Distribution", "type": "array" }, "total_cases": { "title": "Total Cases", "type": "integer" } }, "required": [ "total_cases", "active_cases", "closed_cases", "stage_distribution", "amount_distribution", "stage_conversion_rates", "query_period" ], "title": "CaseStatsResponse", "type": "object" }, "CaseUpdate": { "properties": { "case_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Case Type" }, "cause_of_action": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cause Of Action" }, "current_stage": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Current Stage" }, "effective_date": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Effective Date" }, "is_archived": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Is Archived" }, "name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Name" }, "preservation_amount": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Preservation Amount" }, "status": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Status" }, "target_amount": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Target Amount" } }, "title": "CaseUpdate", "type": "object" }, "CauseSchema": { "description": "案由数据 Schema", "properties": { "code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Code" }, "id": { "title": "Id", "type": "string" }, "name": { "title": "Name", "type": "string" }, "raw_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Raw Name" } }, "required": [ "id", "name" ], "title": "CauseSchema", "type": "object" }, "CauseTreeNodeSchema": { "description": "案由树节点 Schema", "properties": { "case_type": { "title": "Case Type", "type": "string" }, "code": { "title": "Code", "type": "string" }, "full_path": { "title": "Full Path", "type": "string" }, "has_children": { "title": "Has Children", "type": "boolean" }, "id": { "title": "Id", "type": "integer" }, "level": { "title": "Level", "type": "integer" }, "name": { "title": "Name", "type": "string" } }, "required": [ "id", "code", "name", "case_type", "level", "has_children", "full_path" ], "title": "CauseTreeNodeSchema", "type": "object" }, "ChatRequest": { "description": "对话请求", "properties": { "message": { "title": "Message", "type": "string" }, "session_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Session Id" }, "system_prompt": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "System Prompt" }, "user_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "User Id" } }, "required": [ "message" ], "title": "ChatRequest", "type": "object" }, "ChatResponse": { "description": "对话响应", "properties": { "response": { "title": "Response", "type": "string" }, "session_id": { "title": "Session Id", "type": "string" } }, "required": [ "response", "session_id" ], "title": "ChatResponse", "type": "object" }, "ClientIdentityDocLiteOut": { "properties": { "doc_type": { "title": "Doc Type", "type": "string" }, "file_path": { "title": "File Path", "type": "string" }, "media_url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Media Url" }, "uploaded_at": { "format": "date-time", "title": "Uploaded At", "type": "string" } }, "required": [ "doc_type", "file_path", "uploaded_at" ], "title": "ClientIdentityDocLiteOut", "type": "object" }, "ClientIdentityDocOut": { "description": "客户证件文档输出 Schema", "properties": { "doc_type": { "title": "Doc Type", "type": "string" }, "file_path": { "title": "File Path", "type": "string" }, "media_url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Media Url" }, "uploaded_at": { "format": "date-time", "title": "Uploaded At", "type": "string" } }, "required": [ "doc_type", "file_path", "uploaded_at" ], "title": "ClientIdentityDocOut", "type": "object" }, "ClientImportSessionOut": { "description": "客户导入会话输出。", "properties": { "completed_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Completed At" }, "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "discovered_count": { "title": "Discovered Count", "type": "integer" }, "error_message": { "title": "Error Message", "type": "string" }, "id": { "title": "Id", "type": "integer" }, "phase": { "title": "Phase", "type": "string" }, "progress_message": { "title": "Progress Message", "type": "string" }, "skip_count": { "title": "Skip Count", "type": "integer" }, "started_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Started At" }, "status": { "title": "Status", "type": "string" }, "success_count": { "title": "Success Count", "type": "integer" }, "total_count": { "title": "Total Count", "type": "integer" } }, "required": [ "id", "status", "phase", "discovered_count", "total_count", "success_count", "skip_count", "error_message", "progress_message", "started_at", "completed_at", "created_at" ], "title": "ClientImportSessionOut", "type": "object" }, "ClientIn": { "description": "客户创建输入 Schema", "properties": { "address": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Address" }, "client_type": { "title": "Client Type", "type": "string" }, "id_number": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Id Number" }, "is_our_client": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": true, "title": "Is Our Client" }, "legal_representative": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Legal Representative" }, "name": { "title": "Name", "type": "string" }, "phone": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Phone" } }, "required": [ "name", "client_type" ], "title": "ClientIn", "type": "object" }, "ClientLiteOut": { "properties": { "address": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Address" }, "client_type": { "title": "Client Type", "type": "string" }, "client_type_label": { "title": "Client Type Label", "type": "string" }, "id": { "title": "Id", "type": "integer" }, "id_number": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Id Number" }, "identity_docs": { "items": { "$ref": "#/components/schemas/ClientIdentityDocLiteOut" }, "title": "Identity Docs", "type": "array" }, "is_our_client": { "title": "Is Our Client", "type": "boolean" }, "legal_representative": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Legal Representative" }, "legal_representative_id_number": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Legal Representative Id Number" }, "name": { "title": "Name", "type": "string" }, "phone": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Phone" } }, "required": [ "id", "name", "is_our_client", "client_type", "client_type_label", "identity_docs" ], "title": "ClientLiteOut", "type": "object" }, "ClientOut": { "description": "客户输出 Schema", "properties": { "address": { "anyOf": [ { "maxLength": 255, "type": "string" }, { "type": "null" } ], "default": "", "title": "住所地" }, "client_type": { "default": "legal", "maxLength": 16, "title": "主体类型", "type": "string" }, "client_type_label": { "title": "Client Type Label", "type": "string" }, "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "ID" }, "id_number": { "anyOf": [ { "maxLength": 64, "type": "string" }, { "type": "null" } ], "title": "身份证号码或统一社会信用代码" }, "identity_docs": { "items": { "$ref": "#/components/schemas/ClientIdentityDocOut" }, "title": "Identity Docs", "type": "array" }, "is_our_client": { "default": false, "title": "是否为我方当事人", "type": "boolean" }, "legal_representative": { "anyOf": [ { "maxLength": 255, "type": "string" }, { "type": "null" } ], "title": "法定代表人或负责人" }, "name": { "maxLength": 255, "title": "名称", "type": "string" }, "phone": { "anyOf": [ { "maxLength": 20, "type": "string" }, { "type": "null" } ], "title": "联系电话" } }, "required": [ "client_type_label", "identity_docs", "name" ], "title": "ClientOut", "type": "object" }, "ClientUpdateIn": { "description": "客户更新输入 Schema", "properties": { "address": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Address" }, "client_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Client Type" }, "id_number": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Id Number" }, "is_our_client": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Is Our Client" }, "legal_representative": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Legal Representative" }, "name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Name" }, "phone": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Phone" } }, "title": "ClientUpdateIn", "type": "object" }, "CollectionDetailResponse": { "description": "催收记录详情响应(含日志和时间线)", "properties": { "case_id": { "title": "Case Id", "type": "integer" }, "current_stage": { "title": "Current Stage", "type": "string" }, "days_elapsed": { "title": "Days Elapsed", "type": "integer" }, "is_overdue": { "title": "Is Overdue", "type": "boolean" }, "last_action_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Last Action Date" }, "logs": { "items": { "$ref": "#/components/schemas/CollectionLogSchema" }, "title": "Logs", "type": "array" }, "next_due_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Next Due Date" }, "record_id": { "title": "Record Id", "type": "integer" }, "remarks": { "title": "Remarks", "type": "string" }, "start_date": { "format": "date", "title": "Start Date", "type": "string" }, "timeline": { "items": { "$ref": "#/components/schemas/TimelineNodeSchema" }, "title": "Timeline", "type": "array" } }, "required": [ "record_id", "case_id", "current_stage", "start_date", "last_action_date", "next_due_date", "days_elapsed", "is_overdue", "remarks", "logs", "timeline" ], "title": "CollectionDetailResponse", "type": "object" }, "CollectionLogSchema": { "description": "催收操作日志", "properties": { "action_date": { "format": "date", "title": "Action Date", "type": "string" }, "action_type": { "title": "Action Type", "type": "string" }, "description": { "title": "Description", "type": "string" }, "document_filename": { "title": "Document Filename", "type": "string" }, "document_type": { "title": "Document Type", "type": "string" } }, "required": [ "action_type", "action_date", "description", "document_type", "document_filename" ], "title": "CollectionLogSchema", "type": "object" }, "CollectionRecordResponse": { "description": "催收记录响应", "properties": { "case_id": { "title": "Case Id", "type": "integer" }, "current_stage": { "title": "Current Stage", "type": "string" }, "days_elapsed": { "title": "Days Elapsed", "type": "integer" }, "is_overdue": { "title": "Is Overdue", "type": "boolean" }, "last_action_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Last Action Date" }, "next_due_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Next Due Date" }, "record_id": { "title": "Record Id", "type": "integer" }, "remarks": { "title": "Remarks", "type": "string" }, "start_date": { "format": "date", "title": "Start Date", "type": "string" } }, "required": [ "record_id", "case_id", "current_stage", "start_date", "last_action_date", "next_due_date", "days_elapsed", "is_overdue", "remarks" ], "title": "CollectionRecordResponse", "type": "object" }, "CombinedPowerOfAttorneyIn": { "properties": { "client_ids": { "items": { "type": "integer" }, "title": "Client Ids", "type": "array" } }, "required": [ "client_ids" ], "title": "CombinedPowerOfAttorneyIn", "type": "object" }, "ComplaintRequest": { "description": "起诉状生成请求", "properties": { "case_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Case Id" }, "cause_of_action": { "title": "Cause Of Action", "type": "string" }, "defendant": { "title": "Defendant", "type": "string" }, "facts_and_reasons": { "title": "Facts And Reasons", "type": "string" }, "litigation_request": { "title": "Litigation Request", "type": "string" }, "plaintiff": { "title": "Plaintiff", "type": "string" } }, "required": [ "cause_of_action", "plaintiff", "defendant", "litigation_request", "facts_and_reasons" ], "title": "ComplaintRequest", "type": "object" }, "ConfirmPartyIn": { "properties": { "represented_party": { "enum": [ "party_a", "party_b", "party_c", "party_d" ], "title": "Represented Party", "type": "string" }, "reviewer_name": { "default": "", "title": "Reviewer Name", "type": "string" }, "selected_steps": { "default": [], "items": { "type": "string" }, "title": "Selected Steps", "type": "array" } }, "required": [ "represented_party" ], "title": "ConfirmPartyIn", "type": "object" }, "ConfirmRequestIn": { "properties": { "segments": { "items": { "$ref": "#/components/schemas/ConfirmSegmentIn" }, "title": "Segments", "type": "array" } }, "required": [ "segments" ], "title": "ConfirmRequestIn", "type": "object" }, "ConfirmSegmentIn": { "properties": { "confidence": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": 0.0, "title": "Confidence" }, "filename": { "title": "Filename", "type": "string" }, "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Id" }, "order": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Order" }, "page_end": { "title": "Page End", "type": "integer" }, "page_start": { "title": "Page Start", "type": "integer" }, "review_flag": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Review Flag" }, "segment_type": { "title": "Segment Type", "type": "string" }, "source_method": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Source Method" } }, "required": [ "page_start", "page_end", "segment_type", "filename" ], "title": "ConfirmSegmentIn", "type": "object" }, "ContentTemplateOut": { "description": "内容模板输出 Schema", "properties": { "clue_type": { "title": "Clue Type", "type": "string" }, "template": { "title": "Template", "type": "string" } }, "required": [ "clue_type", "template" ], "title": "ContentTemplateOut", "type": "object" }, "ContractAssignmentOut": { "description": "合同律师指派输出 Schema", "properties": { "id": { "title": "Id", "type": "integer" }, "is_primary": { "title": "Is Primary", "type": "boolean" }, "lawyer_id": { "title": "Lawyer Id", "type": "integer" }, "lawyer_name": { "title": "Lawyer Name", "type": "string" }, "order": { "title": "Order", "type": "integer" } }, "required": [ "id", "lawyer_id", "lawyer_name", "is_primary", "order" ], "title": "ContractAssignmentOut", "type": "object" }, "ContractFolderScanCandidateOut": { "properties": { "base_name": { "title": "Base Name", "type": "string" }, "confidence": { "default": 0.0, "title": "Confidence", "type": "number" }, "extract_method": { "title": "Extract Method", "type": "string" }, "file_size": { "title": "File Size", "type": "integer" }, "filename": { "title": "Filename", "type": "string" }, "modified_at": { "title": "Modified At", "type": "string" }, "reason": { "default": "", "title": "Reason", "type": "string" }, "selected": { "default": true, "title": "Selected", "type": "boolean" }, "source_path": { "title": "Source Path", "type": "string" }, "suggested_category": { "default": "invoice", "title": "Suggested Category", "type": "string" }, "text_excerpt": { "title": "Text Excerpt", "type": "string" }, "version_token": { "title": "Version Token", "type": "string" } }, "required": [ "source_path", "filename", "file_size", "modified_at", "base_name", "version_token", "extract_method", "text_excerpt" ], "title": "ContractFolderScanCandidateOut", "type": "object" }, "ContractFolderScanConfirmIn": { "properties": { "items": { "items": { "$ref": "#/components/schemas/ContractFolderScanConfirmItemIn" }, "title": "Items", "type": "array" } }, "required": [ "items" ], "title": "ContractFolderScanConfirmIn", "type": "object" }, "ContractFolderScanConfirmItemIn": { "properties": { "category": { "title": "Category", "type": "string" }, "selected": { "default": true, "title": "Selected", "type": "boolean" }, "source_path": { "title": "Source Path", "type": "string" } }, "required": [ "source_path", "category" ], "title": "ContractFolderScanConfirmItemIn", "type": "object" }, "ContractFolderScanConfirmOut": { "properties": { "imported_count": { "title": "Imported Count", "type": "integer" }, "session_id": { "title": "Session Id", "type": "string" }, "status": { "title": "Status", "type": "string" } }, "required": [ "session_id", "status", "imported_count" ], "title": "ContractFolderScanConfirmOut", "type": "object" }, "ContractFolderScanStartIn": { "properties": { "rescan": { "default": false, "title": "Rescan", "type": "boolean" }, "scan_subfolder": { "default": "", "title": "Scan Subfolder", "type": "string" } }, "title": "ContractFolderScanStartIn", "type": "object" }, "ContractFolderScanStartOut": { "properties": { "session_id": { "title": "Session Id", "type": "string" }, "status": { "title": "Status", "type": "string" }, "task_id": { "default": "", "title": "Task Id", "type": "string" } }, "required": [ "session_id", "status" ], "title": "ContractFolderScanStartOut", "type": "object" }, "ContractFolderScanStatusOut": { "properties": { "candidates": { "items": { "$ref": "#/components/schemas/ContractFolderScanCandidateOut" }, "title": "Candidates", "type": "array" }, "current_file": { "default": "", "title": "Current File", "type": "string" }, "error_message": { "default": "", "title": "Error Message", "type": "string" }, "progress": { "title": "Progress", "type": "integer" }, "session_id": { "title": "Session Id", "type": "string" }, "status": { "title": "Status", "type": "string" }, "summary": { "$ref": "#/components/schemas/ContractFolderScanSummaryOut" } }, "required": [ "session_id", "status", "progress", "summary", "candidates" ], "title": "ContractFolderScanStatusOut", "type": "object" }, "ContractFolderScanSubfolderListOut": { "properties": { "root_path": { "title": "Root Path", "type": "string" }, "subfolders": { "items": { "$ref": "#/components/schemas/ContractFolderScanSubfolderOptionOut" }, "title": "Subfolders", "type": "array" } }, "required": [ "root_path", "subfolders" ], "title": "ContractFolderScanSubfolderListOut", "type": "object" }, "ContractFolderScanSubfolderOptionOut": { "properties": { "display_name": { "title": "Display Name", "type": "string" }, "relative_path": { "title": "Relative Path", "type": "string" } }, "required": [ "relative_path", "display_name" ], "title": "ContractFolderScanSubfolderOptionOut", "type": "object" }, "ContractFolderScanSummaryOut": { "properties": { "classified_files": { "default": 0, "title": "Classified Files", "type": "integer" }, "deduped_files": { "default": 0, "title": "Deduped Files", "type": "integer" }, "total_files": { "default": 0, "title": "Total Files", "type": "integer" } }, "title": "ContractFolderScanSummaryOut", "type": "object" }, "ContractIn": { "properties": { "case_type": { "maxLength": 32, "title": "合同类型", "type": "string" }, "custom_terms": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Custom Terms" }, "end_date": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "End Date" }, "fee_mode": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": "FIXED", "title": "Fee Mode" }, "fixed_amount": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Fixed Amount" }, "is_archived": { "default": false, "title": "是否已建档", "type": "boolean" }, "lawyer_ids": { "items": { "type": "integer" }, "title": "Lawyer Ids", "type": "array" }, "name": { "maxLength": 100, "title": "合同名称", "type": "string" }, "parties": { "anyOf": [ { "items": { "$ref": "#/components/schemas/ContractPartyIn" }, "type": "array" }, { "type": "null" } ], "title": "Parties" }, "representation_stages": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "title": "Representation Stages" }, "risk_rate": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Risk Rate" }, "specified_date": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Specified Date" }, "start_date": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Start Date" }, "status": { "default": "active", "maxLength": 32, "title": "合同状态", "type": "string" }, "supplementary_agreements": { "anyOf": [ { "items": { "$ref": "#/components/schemas/SupplementaryAgreementInput" }, "type": "array" }, { "type": "null" } ], "title": "Supplementary Agreements" } }, "required": [ "lawyer_ids", "name", "case_type" ], "title": "ContractIn", "type": "object" }, "ContractOut": { "properties": { "assignments": { "items": { "$ref": "#/components/schemas/ContractAssignmentOut" }, "title": "Assignments", "type": "array" }, "case_type": { "maxLength": 32, "title": "合同类型", "type": "string" }, "case_type_label": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Case Type Label" }, "cases": { "items": { "$ref": "#/components/schemas/CaseOut" }, "title": "Cases", "type": "array" }, "contract_parties": { "items": { "$ref": "#/components/schemas/ContractPartyOut" }, "title": "Contract Parties", "type": "array" }, "custom_terms": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "自定义收费条款" }, "end_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "结束日期" }, "fee_mode": { "default": "FIXED", "maxLength": 16, "title": "收费模式", "type": "string" }, "fixed_amount": { "anyOf": [ { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" }, { "type": "null" } ], "title": "固定/前期律师费" }, "has_matched_templates": { "default": false, "title": "Has Matched Templates", "type": "boolean" }, "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "ID" }, "is_archived": { "default": false, "title": "是否已建档", "type": "boolean" }, "matched_document_template": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Matched Document Template" }, "matched_folder_templates": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Matched Folder Templates" }, "name": { "maxLength": 100, "title": "合同名称", "type": "string" }, "payments": { "items": { "$ref": "#/components/schemas/ContractPaymentOut" }, "title": "Payments", "type": "array" }, "primary_lawyer": { "anyOf": [ { "$ref": "#/components/schemas/LawyerOut" }, { "type": "null" } ] }, "reminders": { "items": { "$ref": "#/components/schemas/ReminderLiteOut" }, "title": "Reminders", "type": "array" }, "representation_stages": { "anyOf": [ { "type": "object" }, { "type": "null" } ], "title": "代理阶段" }, "risk_rate": { "anyOf": [ { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" }, { "type": "null" } ], "title": "风险比例(%)" }, "specified_date": { "format": "date", "title": "指定日期", "type": "string" }, "start_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "开始日期" }, "status": { "default": "active", "maxLength": 32, "title": "合同状态", "type": "string" }, "status_label": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Status Label" }, "supplementary_agreements": { "items": { "$ref": "#/components/schemas/SupplementaryAgreementOut" }, "title": "Supplementary Agreements", "type": "array" }, "total_invoiced": { "title": "Total Invoiced", "type": "number" }, "total_received": { "title": "Total Received", "type": "number" }, "unpaid_amount": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Unpaid Amount" } }, "required": [ "cases", "contract_parties", "case_type_label", "status_label", "reminders", "payments", "supplementary_agreements", "total_received", "total_invoiced", "unpaid_amount", "assignments", "primary_lawyer", "name", "case_type" ], "title": "ContractOut", "type": "object" }, "ContractPartyIn": { "description": "合同当事人输入", "properties": { "client_id": { "title": "Client Id", "type": "integer" }, "role": { "default": "PRINCIPAL", "title": "Role", "type": "string" } }, "required": [ "client_id" ], "title": "ContractPartyIn", "type": "object" }, "ContractPartyOut": { "properties": { "client": { "title": "当事人", "type": "integer" }, "client_detail": { "$ref": "#/components/schemas/ClientLiteOut" }, "contract": { "title": "合同", "type": "integer" }, "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "ID" }, "role": { "default": "PRINCIPAL", "maxLength": 16, "title": "身份", "type": "string" }, "role_label": { "title": "Role Label", "type": "string" } }, "required": [ "client_detail", "role_label", "contract", "client" ], "title": "ContractPartyOut", "type": "object" }, "ContractPartySourceOut": { "description": "合同当事人(含来源)输出 Schema\n\n用于 API 端点 /contracts/{contract_id}/all-parties/\n返回合同及其补充协议的所有当事人\n\nRequirements: 5.2, 5.4", "properties": { "id": { "title": "Id", "type": "integer" }, "name": { "title": "Name", "type": "string" }, "role": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Role" }, "source": { "title": "Source", "type": "string" } }, "required": [ "id", "name", "source" ], "title": "ContractPartySourceOut", "type": "object" }, "ContractPaymentIn": { "properties": { "amount": { "title": "Amount", "type": "number" }, "confirm": { "default": false, "title": "Confirm", "type": "boolean" }, "contract_id": { "title": "Contract Id", "type": "integer" }, "invoice_status": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": "UNINVOICED", "title": "Invoice Status" }, "invoiced_amount": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": 0, "title": "Invoiced Amount" }, "note": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Note" }, "received_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Received At" } }, "required": [ "contract_id", "amount" ], "title": "ContractPaymentIn", "type": "object" }, "ContractPaymentOut": { "properties": { "amount": { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "title": "收款金额", "type": "string" }, "contract": { "title": "合同", "type": "integer" }, "created_at": { "format": "date-time", "title": "创建时间", "type": "string" }, "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "ID" }, "invoice_status": { "default": "UNINVOICED", "maxLength": 32, "title": "开票状态", "type": "string" }, "invoice_status_label": { "title": "Invoice Status Label", "type": "string" }, "invoiced_amount": { "default": 0, "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "title": "已开票金额", "type": "string" }, "note": { "anyOf": [ { "maxLength": 255, "type": "string" }, { "type": "null" } ], "title": "备注" }, "received_at": { "format": "date", "title": "收款日期", "type": "string" }, "updated_at": { "format": "date-time", "title": "更新时间", "type": "string" } }, "required": [ "invoice_status_label", "contract", "amount", "created_at", "updated_at" ], "title": "ContractPaymentOut", "type": "object" }, "ContractPaymentUpdate": { "properties": { "amount": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Amount" }, "confirm": { "default": false, "title": "Confirm", "type": "boolean" }, "invoice_status": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Invoice Status" }, "invoiced_amount": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Invoiced Amount" }, "note": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Note" }, "received_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Received At" } }, "title": "ContractPaymentUpdate", "type": "object" }, "ContractUpdate": { "properties": { "assigned_lawyer": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Assigned Lawyer" }, "case_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Case Type" }, "custom_terms": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Custom Terms" }, "end_date": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "End Date" }, "fee_mode": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Fee Mode" }, "fixed_amount": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Fixed Amount" }, "is_archived": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Is Archived" }, "name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Name" }, "parties": { "anyOf": [ { "items": { "$ref": "#/components/schemas/ContractPartyIn" }, "type": "array" }, { "type": "null" } ], "title": "Parties" }, "representation_stages": { "anyOf": [ { "items": {}, "type": "array" }, { "type": "null" } ], "title": "Representation Stages" }, "risk_rate": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Risk Rate" }, "specified_date": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Specified Date" }, "start_date": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Start Date" }, "status": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Status" }, "supplementary_agreements": { "anyOf": [ { "items": { "$ref": "#/components/schemas/SupplementaryAgreementInput" }, "type": "array" }, { "type": "null" } ], "title": "Supplementary Agreements" } }, "title": "ContractUpdate", "type": "object" }, "ContractWithCasesIn": { "properties": { "case_type": { "maxLength": 32, "title": "合同类型", "type": "string" }, "cases": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "title": "Cases" }, "custom_terms": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Custom Terms" }, "end_date": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "End Date" }, "fee_mode": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": "FIXED", "title": "Fee Mode" }, "fixed_amount": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Fixed Amount" }, "is_archived": { "default": false, "title": "是否已建档", "type": "boolean" }, "lawyer_ids": { "items": { "type": "integer" }, "title": "Lawyer Ids", "type": "array" }, "name": { "maxLength": 100, "title": "合同名称", "type": "string" }, "parties": { "anyOf": [ { "items": { "$ref": "#/components/schemas/ContractPartyIn" }, "type": "array" }, { "type": "null" } ], "title": "Parties" }, "representation_stages": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "title": "Representation Stages" }, "risk_rate": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Risk Rate" }, "specified_date": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Specified Date" }, "start_date": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Start Date" }, "status": { "default": "active", "maxLength": 32, "title": "合同状态", "type": "string" }, "supplementary_agreements": { "anyOf": [ { "items": { "$ref": "#/components/schemas/SupplementaryAgreementInput" }, "type": "array" }, { "type": "null" } ], "title": "Supplementary Agreements" } }, "required": [ "lawyer_ids", "name", "case_type" ], "title": "ContractWithCasesIn", "type": "object" }, "ConversationHistoryResponse": { "description": "对话历史响应", "properties": { "messages": { "items": { "$ref": "#/components/schemas/ConversationMessage" }, "title": "Messages", "type": "array" }, "session_id": { "title": "Session Id", "type": "string" } }, "required": [ "session_id", "messages" ], "title": "ConversationHistoryResponse", "type": "object" }, "ConversationMessage": { "description": "对话消息", "properties": { "content": { "title": "Content", "type": "string" }, "created_at": { "title": "Created At", "type": "string" }, "role": { "title": "Role", "type": "string" } }, "required": [ "role", "content", "created_at" ], "title": "ConversationMessage", "type": "object" }, "CostBenefitRequest": { "description": "成本收益分析请求", "properties": { "case_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Case Type" }, "cause_of_action": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cause Of Action" }, "fee_transfer_rate": { "default": 0.95, "title": "Fee Transfer Rate", "type": "number" }, "guarantee_rate": { "default": 0.015, "title": "Guarantee Rate", "type": "number" }, "interest_amount": { "title": "Interest Amount", "type": "number" }, "lawyer_fee": { "default": 0, "title": "Lawyer Fee", "type": "number" }, "lawyer_transfer_rate": { "default": 0.6, "title": "Lawyer Transfer Rate", "type": "number" }, "notary_fee": { "default": 0, "title": "Notary Fee", "type": "number" }, "preservation_amount": { "default": 0, "title": "Preservation Amount", "type": "number" }, "principal": { "title": "Principal", "type": "number" }, "recovery_rate": { "default": 0.7, "title": "Recovery Rate", "type": "number" }, "support_rate": { "default": 0.85, "title": "Support Rate", "type": "number" } }, "required": [ "principal", "interest_amount" ], "title": "CostBenefitRequest", "type": "object" }, "CostBenefitResponse": { "description": "成本收益分析响应", "properties": { "cost_details": { "additionalProperties": { "type": "number" }, "title": "Cost Details", "type": "object" }, "net_profit": { "title": "Net Profit", "type": "number" }, "revenue_details": { "additionalProperties": { "type": "number" }, "title": "Revenue Details", "type": "object" }, "risk_warning": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Risk Warning" }, "roi": { "title": "Roi", "type": "number" }, "total_cost": { "title": "Total Cost", "type": "number" }, "total_revenue": { "title": "Total Revenue", "type": "number" } }, "required": [ "total_cost", "total_revenue", "net_profit", "roi", "cost_details", "revenue_details" ], "title": "CostBenefitResponse", "type": "object" }, "CourtSMSAssignCaseIn": { "description": "手动指定案件请求", "properties": { "case_id": { "description": "案件ID", "example": 456, "exclusiveMinimum": 0, "title": "Case Id", "type": "integer" } }, "required": [ "case_id" ], "title": "CourtSMSAssignCaseIn", "type": "object" }, "CourtSMSAssignCaseOut": { "description": "手动指定案件响应", "example": { "data": { "case": { "id": 456, "name": "广州市鸡鸡百货有限公司诉..." }, "id": 123, "status": "matching" }, "success": true }, "properties": { "data": { "additionalProperties": true, "description": "更新后的短信信息", "title": "Data", "type": "object" }, "success": { "description": "是否成功", "title": "Success", "type": "boolean" } }, "required": [ "success", "data" ], "title": "CourtSMSAssignCaseOut", "type": "object" }, "CourtSMSDetailOut": { "description": "短信处理详情响应", "properties": { "case": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "description": "关联案件信息", "title": "Case" }, "case_numbers": { "description": "案号列表", "items": { "type": "string" }, "title": "Case Numbers", "type": "array" }, "content": { "description": "短信内容", "title": "Content", "type": "string" }, "created_at": { "description": "创建时间", "format": "date-time", "title": "Created At", "type": "string" }, "documents": { "description": "关联文书列表", "items": { "additionalProperties": true, "type": "object" }, "title": "Documents", "type": "array" }, "download_links": { "description": "下载链接列表", "items": { "type": "string" }, "title": "Download Links", "type": "array" }, "error_message": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "错误信息", "title": "Error Message" }, "feishu_error": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "飞书发送错误", "title": "Feishu Error" }, "feishu_sent_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "飞书发送时间", "title": "Feishu Sent At" }, "id": { "description": "短信记录ID", "title": "Id", "type": "integer" }, "party_names": { "description": "当事人名称列表", "items": { "type": "string" }, "title": "Party Names", "type": "array" }, "received_at": { "description": "收到时间", "format": "date-time", "title": "Received At", "type": "string" }, "retry_count": { "description": "重试次数", "title": "Retry Count", "type": "integer" }, "sender": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "发送方号码", "title": "Sender" }, "sms_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "短信类型", "title": "Sms Type" }, "status": { "description": "处理状态", "title": "Status", "type": "string" }, "updated_at": { "description": "更新时间", "format": "date-time", "title": "Updated At", "type": "string" } }, "required": [ "id", "content", "received_at", "status", "retry_count", "created_at", "updated_at" ], "title": "CourtSMSDetailOut", "type": "object" }, "CourtSMSListOut": { "description": "短信列表项响应", "properties": { "case_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "关联案件名称", "title": "Case Name" }, "content": { "description": "短信内容(截取前100字符)", "title": "Content", "type": "string" }, "created_at": { "description": "创建时间", "format": "date-time", "title": "Created At", "type": "string" }, "feishu_sent": { "description": "是否已发送飞书通知", "title": "Feishu Sent", "type": "boolean" }, "has_documents": { "description": "是否有关联文书", "title": "Has Documents", "type": "boolean" }, "id": { "description": "短信记录ID", "title": "Id", "type": "integer" }, "received_at": { "description": "收到时间", "format": "date-time", "title": "Received At", "type": "string" }, "sms_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "短信类型", "title": "Sms Type" }, "status": { "description": "处理状态", "title": "Status", "type": "string" } }, "required": [ "id", "content", "received_at", "status", "has_documents", "feishu_sent", "created_at" ], "title": "CourtSMSListOut", "type": "object" }, "CourtSMSSubmitIn": { "description": "提交法院短信请求", "properties": { "content": { "description": "短信内容", "minLength": 1, "title": "Content", "type": "string" }, "received_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "收到时间,默认为当前时间", "example": "2025-12-14T10:30:00Z", "title": "Received At" }, "sender": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "发送方号码", "example": "10690...", "title": "Sender" } }, "required": [ "content" ], "title": "CourtSMSSubmitIn", "type": "object" }, "CourtSMSSubmitOut": { "description": "提交法院短信响应", "example": { "data": { "created_at": "2025-12-14T10:30:05Z", "id": 123, "status": "pending" }, "success": true }, "properties": { "data": { "additionalProperties": true, "description": "短信记录信息", "title": "Data", "type": "object" }, "success": { "description": "是否成功", "title": "Success", "type": "boolean" } }, "required": [ "success", "data" ], "title": "CourtSMSSubmitOut", "type": "object" }, "CourtSchema": { "description": "法院数据 Schema", "properties": { "id": { "title": "Id", "type": "string" }, "name": { "title": "Name", "type": "string" } }, "required": [ "id", "name" ], "title": "CourtSchema", "type": "object" }, "DateRangeQuery": { "description": "日期范围查询参数", "properties": { "end_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "End Date" }, "start_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Start Date" } }, "title": "DateRangeQuery", "type": "object" }, "DefenseRequest": { "description": "答辩状生成请求", "properties": { "case_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Case Id" }, "cause_of_action": { "title": "Cause Of Action", "type": "string" }, "defendant": { "title": "Defendant", "type": "string" }, "defense_opinion": { "title": "Defense Opinion", "type": "string" }, "defense_reasons": { "title": "Defense Reasons", "type": "string" }, "plaintiff": { "title": "Plaintiff", "type": "string" } }, "required": [ "cause_of_action", "plaintiff", "defendant", "defense_opinion", "defense_reasons" ], "title": "DefenseRequest", "type": "object" }, "DocumentDeliveryQueryIn": { "description": "手动查询文书请求", "example": { "credential_id": 1, "cutoff_hours": 24, "tab": "pending" }, "properties": { "credential_id": { "description": "账号凭证ID", "example": 1, "exclusiveMinimum": 0, "title": "Credential Id", "type": "integer" }, "cutoff_hours": { "default": 24, "description": "截止时间(小时),只处理最近N小时内的文书", "example": 24, "maximum": 168, "minimum": 1, "title": "Cutoff Hours", "type": "integer" }, "tab": { "default": "pending", "description": "查询标签页:pending=待查阅,reviewed=已查阅", "example": "pending", "title": "Tab", "type": "string" } }, "required": [ "credential_id" ], "title": "DocumentDeliveryQueryIn", "type": "object" }, "DocumentDeliveryQueryOut": { "description": "手动查询文书响应", "example": { "data": { "case_log_ids": [ 101, 102, 103 ], "errors": [], "failed_count": 0, "processed_count": 3, "skipped_count": 2, "total_found": 5 }, "message": "查询完成,处理了3个文书", "success": true }, "properties": { "data": { "additionalProperties": true, "description": "查询结果", "title": "Data", "type": "object" }, "message": { "description": "响应消息", "title": "Message", "type": "string" }, "success": { "description": "是否成功", "title": "Success", "type": "boolean" } }, "required": [ "success", "data", "message" ], "title": "DocumentDeliveryQueryOut", "type": "object" }, "DocumentDeliveryScheduleCreateIn": { "description": "创建定时任务请求", "example": { "credential_id": 1, "cutoff_hours": 24, "hour_interval": 12, "is_active": true, "runs_per_day": 2 }, "properties": { "credential_id": { "description": "账号凭证ID", "example": 1, "exclusiveMinimum": 0, "title": "Credential Id", "type": "integer" }, "cutoff_hours": { "default": 24, "description": "截止时间(小时),只处理最近N小时内的文书", "example": 24, "maximum": 168, "minimum": 1, "title": "Cutoff Hours", "type": "integer" }, "hour_interval": { "default": 24, "description": "运行间隔(小时)", "example": 12, "maximum": 24, "minimum": 1, "title": "Hour Interval", "type": "integer" }, "is_active": { "default": true, "description": "是否启用", "example": true, "title": "Is Active", "type": "boolean" }, "runs_per_day": { "default": 1, "description": "每天运行次数", "example": 2, "maximum": 24, "minimum": 1, "title": "Runs Per Day", "type": "integer" } }, "required": [ "credential_id" ], "title": "DocumentDeliveryScheduleCreateIn", "type": "object" }, "DocumentDeliveryScheduleOut": { "description": "定时任务响应", "properties": { "created_at": { "description": "创建时间", "format": "date-time", "title": "Created At", "type": "string" }, "credential_id": { "description": "账号凭证ID", "title": "Credential Id", "type": "integer" }, "cutoff_hours": { "description": "截止时间(小时)", "title": "Cutoff Hours", "type": "integer" }, "hour_interval": { "description": "运行间隔(小时)", "title": "Hour Interval", "type": "integer" }, "id": { "description": "任务ID", "title": "Id", "type": "integer" }, "is_active": { "description": "是否启用", "title": "Is Active", "type": "boolean" }, "last_run_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "上次运行时间", "title": "Last Run At" }, "next_run_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "下次运行时间", "title": "Next Run At" }, "runs_per_day": { "description": "每天运行次数", "title": "Runs Per Day", "type": "integer" }, "updated_at": { "description": "更新时间", "format": "date-time", "title": "Updated At", "type": "string" } }, "required": [ "id", "credential_id", "runs_per_day", "hour_interval", "cutoff_hours", "is_active", "created_at", "updated_at" ], "title": "DocumentDeliveryScheduleOut", "type": "object" }, "DocumentDeliveryScheduleUpdateIn": { "description": "更新定时任务请求", "example": { "cutoff_hours": 48, "hour_interval": 8, "is_active": false, "runs_per_day": 3 }, "properties": { "cutoff_hours": { "anyOf": [ { "maximum": 168, "minimum": 1, "type": "integer" }, { "type": "null" } ], "description": "截止时间(小时)", "example": 48, "title": "Cutoff Hours" }, "hour_interval": { "anyOf": [ { "maximum": 24, "minimum": 1, "type": "integer" }, { "type": "null" } ], "description": "运行间隔(小时)", "example": 8, "title": "Hour Interval" }, "is_active": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "description": "是否启用", "example": false, "title": "Is Active" }, "runs_per_day": { "anyOf": [ { "maximum": 24, "minimum": 1, "type": "integer" }, { "type": "null" } ], "description": "每天运行次数", "example": 3, "title": "Runs Per Day" } }, "title": "DocumentDeliveryScheduleUpdateIn", "type": "object" }, "DocumentProcessIn": { "properties": { "file_path": { "title": "File Path", "type": "string" }, "kind": { "title": "Kind", "type": "string" }, "limit": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Limit" }, "preview_page": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Preview Page" } }, "required": [ "file_path", "kind" ], "title": "DocumentProcessIn", "type": "object" }, "DocumentProcessOut": { "properties": { "image_url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Image Url" }, "text_excerpt": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Text Excerpt" } }, "title": "DocumentProcessOut", "type": "object" }, "DocumentTemplateIn": { "description": "文书模板创建输入", "properties": { "case_stages": { "default": [], "items": { "type": "string" }, "title": "Case Stages", "type": "array" }, "case_types": { "default": [], "items": { "type": "string" }, "title": "Case Types", "type": "array" }, "contract_types": { "default": [], "items": { "type": "string" }, "title": "Contract Types", "type": "array" }, "file_path": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "File Path" }, "is_active": { "default": true, "title": "Is Active", "type": "boolean" }, "name": { "title": "Name", "type": "string" }, "template_type": { "default": "contract", "title": "Template Type", "type": "string" } }, "required": [ "name" ], "title": "DocumentTemplateIn", "type": "object" }, "DocumentTemplateOut": { "description": "文书模板输出", "properties": { "case_stages": { "description": "JSON 数组,如 ['first_trial', 'second_trial'],支持多选", "title": "案件阶段", "type": "object" }, "case_stages_display": { "title": "Case Stages Display", "type": "string" }, "case_types": { "description": "JSON 数组,如 ['civil', 'criminal'],支持多选", "title": "案件类型", "type": "object" }, "case_types_display": { "title": "Case Types Display", "type": "string" }, "contract_types": { "description": "JSON 数组,如 ['civil', 'criminal'],支持多选", "title": "合同类型", "type": "object" }, "contract_types_display": { "title": "Contract Types Display", "type": "string" }, "created_at": { "format": "date-time", "title": "创建时间", "type": "string" }, "file_location": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "File Location" }, "file_path": { "anyOf": [ { "maxLength": 500, "type": "string" }, { "type": "null" } ], "description": "相对于模板基础目录的路径", "title": "文件路径" }, "folder_bindings": { "default": [], "items": { "$ref": "#/components/schemas/FolderBindingOut" }, "title": "Folder Bindings", "type": "array" }, "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "ID" }, "is_active": { "default": true, "title": "是否启用", "type": "boolean" }, "name": { "maxLength": 200, "title": "模板名称", "type": "string" }, "template_type": { "default": "contract", "description": "选择此模板用于合同还是案件", "maxLength": 20, "title": "模板类型", "type": "string" }, "template_type_display": { "title": "Template Type Display", "type": "string" }, "updated_at": { "format": "date-time", "title": "更新时间", "type": "string" } }, "required": [ "template_type_display", "case_types_display", "case_stages_display", "contract_types_display", "name", "created_at", "updated_at" ], "title": "DocumentTemplateOut", "type": "object" }, "DocumentTemplateUpdate": { "description": "文书模板更新输入", "properties": { "case_stages": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "title": "Case Stages" }, "case_types": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "title": "Case Types" }, "contract_types": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "title": "Contract Types" }, "file_path": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "File Path" }, "is_active": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Is Active" }, "name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Name" }, "template_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Template Type" } }, "title": "DocumentTemplateUpdate", "type": "object" }, "EnforcementRequest": { "description": "强制执行申请书请求", "properties": { "applicant_address": { "title": "Applicant Address", "type": "string" }, "applicant_id_number": { "title": "Applicant Id Number", "type": "string" }, "applicant_name": { "title": "Applicant Name", "type": "string" }, "case_id": { "title": "Case Id", "type": "integer" }, "execution_amount": { "title": "Execution Amount", "type": "number" }, "execution_requests": { "title": "Execution Requests", "type": "string" }, "judgment_number": { "title": "Judgment Number", "type": "string" }, "respondent_address": { "title": "Respondent Address", "type": "string" }, "respondent_id_number": { "title": "Respondent Id Number", "type": "string" }, "respondent_name": { "title": "Respondent Name", "type": "string" } }, "required": [ "case_id", "applicant_name", "applicant_address", "applicant_id_number", "respondent_name", "respondent_address", "respondent_id_number", "judgment_number", "execution_amount", "execution_requests" ], "title": "EnforcementRequest", "type": "object" }, "EnterpriseClientPrefillDataOut": { "description": "企业信息映射后的当事人预填字段。", "properties": { "address": { "default": "", "title": "Address", "type": "string" }, "client_type": { "title": "Client Type", "type": "string" }, "id_number": { "default": "", "title": "Id Number", "type": "string" }, "legal_representative": { "default": "", "title": "Legal Representative", "type": "string" }, "name": { "title": "Name", "type": "string" }, "phone": { "default": "", "title": "Phone", "type": "string" } }, "required": [ "client_type", "name" ], "title": "EnterpriseClientPrefillDataOut", "type": "object" }, "EnterpriseClientPrefillOut": { "description": "企业信息预填结果。", "properties": { "existing_client": { "anyOf": [ { "$ref": "#/components/schemas/EnterpriseDuplicateClientOut" }, { "type": "null" } ] }, "prefill": { "$ref": "#/components/schemas/EnterpriseClientPrefillDataOut" }, "profile": { "$ref": "#/components/schemas/EnterpriseCompanyProfileOut" }, "provider": { "title": "Provider", "type": "string" } }, "required": [ "provider", "prefill", "profile" ], "title": "EnterpriseClientPrefillOut", "type": "object" }, "EnterpriseCompanyCandidateOut": { "description": "企业搜索候选项。", "properties": { "company_id": { "title": "Company Id", "type": "string" }, "company_name": { "title": "Company Name", "type": "string" }, "establish_date": { "default": "", "title": "Establish Date", "type": "string" }, "legal_person": { "default": "", "title": "Legal Person", "type": "string" }, "phone": { "default": "", "title": "Phone", "type": "string" }, "registered_capital": { "default": "", "title": "Registered Capital", "type": "string" }, "status": { "default": "", "title": "Status", "type": "string" } }, "required": [ "company_id", "company_name" ], "title": "EnterpriseCompanyCandidateOut", "type": "object" }, "EnterpriseCompanyProfileOut": { "description": "企业基础档案。", "properties": { "address": { "default": "", "title": "Address", "type": "string" }, "business_scope": { "default": "", "title": "Business Scope", "type": "string" }, "company_id": { "title": "Company Id", "type": "string" }, "company_name": { "default": "", "title": "Company Name", "type": "string" }, "establish_date": { "default": "", "title": "Establish Date", "type": "string" }, "legal_person": { "default": "", "title": "Legal Person", "type": "string" }, "phone": { "default": "", "title": "Phone", "type": "string" }, "registered_capital": { "default": "", "title": "Registered Capital", "type": "string" }, "status": { "default": "", "title": "Status", "type": "string" }, "unified_social_credit_code": { "default": "", "title": "Unified Social Credit Code", "type": "string" } }, "required": [ "company_id" ], "title": "EnterpriseCompanyProfileOut", "type": "object" }, "EnterpriseCompanySearchOut": { "description": "企业搜索结果。", "properties": { "items": { "items": { "$ref": "#/components/schemas/EnterpriseCompanyCandidateOut" }, "title": "Items", "type": "array" }, "keyword": { "title": "Keyword", "type": "string" }, "provider": { "title": "Provider", "type": "string" }, "total": { "title": "Total", "type": "integer" } }, "required": [ "keyword", "provider", "items", "total" ], "title": "EnterpriseCompanySearchOut", "type": "object" }, "EnterpriseDataMetaOut": { "properties": { "cached": { "default": false, "title": "Cached", "type": "boolean" }, "capability": { "title": "Capability", "type": "string" }, "fallback_used": { "default": false, "title": "Fallback Used", "type": "boolean" }, "provider": { "title": "Provider", "type": "string" }, "requested_transport": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Requested Transport" }, "tool": { "title": "Tool", "type": "string" }, "transport": { "title": "Transport", "type": "string" } }, "required": [ "provider", "transport", "tool", "capability" ], "title": "EnterpriseDataMetaOut", "type": "object" }, "EnterpriseDuplicateClientOut": { "description": "已存在的当事人信息。", "properties": { "id": { "title": "Id", "type": "integer" }, "name": { "title": "Name", "type": "string" } }, "required": [ "id", "name" ], "title": "EnterpriseDuplicateClientOut", "type": "object" }, "EnterpriseProvidersOut": { "properties": { "items": { "items": { "$ref": "#/components/schemas/ProviderInfoOut" }, "title": "Items", "type": "array" } }, "required": [ "items" ], "title": "EnterpriseProvidersOut", "type": "object" }, "EnterpriseQueryOut": { "properties": { "data": { "title": "Data" }, "meta": { "$ref": "#/components/schemas/EnterpriseDataMetaOut" }, "query": { "additionalProperties": true, "title": "Query", "type": "object" }, "raw": { "anyOf": [ {}, { "type": "null" } ], "title": "Raw" } }, "required": [ "query", "data", "meta" ], "title": "EnterpriseQueryOut", "type": "object" }, "EvidenceItemResponse": { "description": "证据评分明细响应", "properties": { "evidence_type": { "title": "Evidence Type", "type": "string" }, "has_evidence": { "title": "Has Evidence", "type": "boolean" }, "quality_score": { "title": "Quality Score", "type": "integer" }, "weight": { "title": "Weight", "type": "number" }, "weighted_score": { "title": "Weighted Score", "type": "number" } }, "required": [ "evidence_type", "has_evidence", "quality_score", "weight", "weighted_score" ], "title": "EvidenceItemResponse", "type": "object" }, "EvidenceItemSchema": { "description": "证据条目", "properties": { "evidence_type": { "title": "Evidence Type", "type": "string" }, "has_evidence": { "title": "Has Evidence", "type": "boolean" }, "quality_score": { "title": "Quality Score", "type": "integer" } }, "required": [ "evidence_type", "has_evidence", "quality_score" ], "title": "EvidenceItemSchema", "type": "object" }, "ExecuteCourtFilingIn": { "description": "执行立案请求", "properties": { "case_id": { "title": "Case Id", "type": "integer" }, "filing_engine": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Filing Engine" }, "filing_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Filing Type" } }, "required": [ "case_id" ], "title": "ExecuteCourtFilingIn", "type": "object" }, "ExecuteCourtFilingOut": { "description": "执行立案响应", "properties": { "message": { "title": "Message", "type": "string" }, "session_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Session Id" }, "status": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Status" }, "success": { "title": "Success", "type": "boolean" } }, "required": [ "success", "message" ], "title": "ExecuteCourtFilingOut", "type": "object" }, "ExecuteFilingIn": { "properties": { "case_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Case Id" }, "contract_id": { "title": "Contract Id", "type": "integer" }, "site_name": { "title": "Site Name", "type": "string" } }, "required": [ "site_name", "contract_id" ], "title": "ExecuteFilingIn", "type": "object" }, "ExecutionDocRequest": { "description": "执行文书生成请求(统一入口)", "properties": { "add_executee": { "anyOf": [ { "$ref": "#/components/schemas/AddExecuteeRequest" }, { "type": "null" } ] }, "doc_type": { "title": "Doc Type", "type": "string" }, "enforcement": { "anyOf": [ { "$ref": "#/components/schemas/EnforcementRequest" }, { "type": "null" } ] }, "property_investigation": { "anyOf": [ { "$ref": "#/components/schemas/PropertyInvestigationRequest" }, { "type": "null" } ] }, "spending_restriction": { "anyOf": [ { "$ref": "#/components/schemas/SpendingRestrictionRequest" }, { "type": "null" } ] } }, "required": [ "doc_type" ], "title": "ExecutionDocRequest", "type": "object" }, "ExportCreateIn": { "properties": { "export_type": { "title": "Export Type", "type": "string" }, "layout": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "Layout" } }, "required": [ "export_type" ], "title": "ExportCreateIn", "type": "object" }, "ExportTaskOut": { "properties": { "created_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Created At" }, "current": { "default": 0, "title": "当前项", "type": "integer" }, "download_url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Download Url" }, "error": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "错误信息" }, "export_type": { "maxLength": 16, "title": "导出类型", "type": "string" }, "export_type_label": { "title": "Export Type Label", "type": "string" }, "finished_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Finished At" }, "id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Id" }, "layout": { "anyOf": [ { "type": "object" }, { "type": "null" } ], "title": "版式配置" }, "message": { "anyOf": [ { "maxLength": 255, "type": "string" }, { "type": "null" } ], "title": "进度信息" }, "progress": { "default": 0, "title": "进度百分比", "type": "integer" }, "project": { "title": "项目", "type": "integer" }, "started_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Started At" }, "status": { "default": "pending", "maxLength": 16, "title": "状态", "type": "string" }, "status_label": { "title": "Status Label", "type": "string" }, "total": { "default": 0, "title": "总项", "type": "integer" }, "updated_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Updated At" } }, "required": [ "status_label", "export_type_label", "started_at", "finished_at", "created_at", "updated_at", "download_url", "project", "export_type" ], "title": "ExportTaskOut", "type": "object" }, "FactorGroupResponse": { "description": "因素分组", "properties": { "case_count": { "title": "Case Count", "type": "integer" }, "group_label": { "title": "Group Label", "type": "string" }, "recovery_rate": { "title": "Recovery Rate", "type": "string" }, "total_recovery": { "title": "Total Recovery", "type": "string" } }, "required": [ "group_label", "case_count", "total_recovery", "recovery_rate" ], "title": "FactorGroupResponse", "type": "object" }, "FactorsResponse": { "description": "影响因素响应", "properties": { "amount_range": { "items": { "$ref": "#/components/schemas/FactorGroupResponse" }, "title": "Amount Range", "type": "array" }, "contract_basis": { "items": { "$ref": "#/components/schemas/FactorGroupResponse" }, "title": "Contract Basis", "type": "array" }, "debt_age": { "items": { "$ref": "#/components/schemas/FactorGroupResponse" }, "title": "Debt Age", "type": "array" }, "preservation": { "items": { "$ref": "#/components/schemas/FactorGroupResponse" }, "title": "Preservation", "type": "array" }, "query_period": { "$ref": "#/components/schemas/QueryPeriodSchema" } }, "required": [ "debt_age", "contract_basis", "preservation", "amount_range", "query_period" ], "title": "FactorsResponse", "type": "object" }, "FeeCalculationRequest": { "description": "费用计算请求", "properties": { "case_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Case Type" }, "cause_of_action": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cause Of Action" }, "cause_of_action_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Cause Of Action Id" }, "preservation_amount": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Preservation Amount" }, "target_amount": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Target Amount" } }, "title": "FeeCalculationRequest", "type": "object" }, "FeeCalculationResponse": { "description": "费用计算响应", "properties": { "acceptance_fee": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Acceptance Fee" }, "acceptance_fee_half": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Acceptance Fee Half" }, "bankruptcy_fee": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Bankruptcy Fee" }, "divorce_fee": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Divorce Fee" }, "execution_fee": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Execution Fee" }, "fee_display_text": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Fee Display Text" }, "fee_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Fee Name" }, "fee_range_max": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Fee Range Max" }, "fee_range_min": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Fee Range Min" }, "fixed_fee": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Fixed Fee" }, "ip_fee": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Ip Fee" }, "payment_order_fee": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Payment Order Fee" }, "personality_rights_fee": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Personality Rights Fee" }, "preservation_fee": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Preservation Fee" }, "show_acceptance_fee": { "default": true, "title": "Show Acceptance Fee", "type": "boolean" }, "show_half_fee": { "default": true, "title": "Show Half Fee", "type": "boolean" }, "show_payment_order_fee": { "default": false, "title": "Show Payment Order Fee", "type": "boolean" }, "special_case_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Special Case Type" } }, "title": "FeeCalculationResponse", "type": "object" }, "FeeCompareIn": { "description": "Fee comparison request payload.", "properties": { "case_id": { "title": "Case Id", "type": "integer" }, "extracted_acceptance_fee": { "anyOf": [ { "type": "number" }, { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" }, { "type": "null" } ], "title": "Extracted Acceptance Fee" }, "extracted_preservation_fee": { "anyOf": [ { "type": "number" }, { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" }, { "type": "null" } ], "title": "Extracted Preservation Fee" } }, "required": [ "case_id" ], "title": "FeeCompareIn", "type": "object" }, "FillRequestSchema": { "description": "填充请求体", "properties": { "case_id": { "title": "Case Id", "type": "integer" }, "custom_values": { "anyOf": [ { "additionalProperties": { "additionalProperties": { "type": "string" }, "type": "object" }, "type": "object" }, { "type": "null" } ], "title": "Custom Values" }, "party_ids": { "anyOf": [ { "items": { "type": "integer" }, "type": "array" }, { "type": "null" } ], "title": "Party Ids" }, "template_ids": { "items": { "type": "integer" }, "title": "Template Ids", "type": "array" } }, "required": [ "template_ids", "case_id" ], "title": "FillRequestSchema", "type": "object" }, "FinanceStatsItem": { "properties": { "contract_id": { "title": "Contract Id", "type": "integer" }, "total_invoiced": { "title": "Total Invoiced", "type": "number" }, "total_received": { "title": "Total Received", "type": "number" }, "unpaid_amount": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Unpaid Amount" } }, "required": [ "contract_id", "total_received", "total_invoiced", "unpaid_amount" ], "title": "FinanceStatsItem", "type": "object" }, "FinanceStatsOut": { "properties": { "items": { "items": { "$ref": "#/components/schemas/FinanceStatsItem" }, "title": "Items", "type": "array" }, "total_invoiced_all": { "title": "Total Invoiced All", "type": "number" }, "total_received_all": { "title": "Total Received All", "type": "number" } }, "required": [ "items", "total_received_all", "total_invoiced_all" ], "title": "FinanceStatsOut", "type": "object" }, "FolderBindingCreateSchema": { "description": "创建文件夹绑定请求 Schema", "properties": { "folder_path": { "title": "Folder Path", "type": "string" } }, "required": [ "folder_path" ], "title": "FolderBindingCreateSchema", "type": "object" }, "FolderBindingOut": { "description": "文件夹绑定输出", "properties": { "folder_node_id": { "title": "Folder Node Id", "type": "string" }, "folder_node_path": { "title": "Folder Node Path", "type": "string" }, "folder_template_id": { "title": "Folder Template Id", "type": "integer" }, "folder_template_name": { "title": "Folder Template Name", "type": "string" }, "id": { "title": "Id", "type": "integer" }, "is_active": { "title": "Is Active", "type": "boolean" } }, "required": [ "id", "folder_template_id", "folder_template_name", "folder_node_id", "folder_node_path", "is_active" ], "title": "FolderBindingOut", "type": "object" }, "FolderBindingResponseSchema": { "description": "文件夹绑定响应 Schema", "properties": { "contract_id": { "title": "Contract Id", "type": "integer" }, "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "folder_path": { "title": "Folder Path", "type": "string" }, "folder_path_display": { "title": "Folder Path Display", "type": "string" }, "id": { "title": "Id", "type": "integer" }, "is_accessible": { "title": "Is Accessible", "type": "boolean" }, "updated_at": { "format": "date-time", "title": "Updated At", "type": "string" } }, "required": [ "id", "contract_id", "folder_path", "folder_path_display", "created_at", "updated_at", "is_accessible" ], "title": "FolderBindingResponseSchema", "type": "object" }, "FolderBrowseEntrySchema": { "properties": { "name": { "title": "Name", "type": "string" }, "path": { "title": "Path", "type": "string" } }, "required": [ "name", "path" ], "title": "FolderBrowseEntrySchema", "type": "object" }, "FolderBrowseResponseSchema": { "properties": { "browsable": { "title": "Browsable", "type": "boolean" }, "entries": { "items": { "$ref": "#/components/schemas/FolderBrowseEntrySchema" }, "title": "Entries", "type": "array" }, "message": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Message" }, "parent_path": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Parent Path" }, "path": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Path" } }, "required": [ "browsable", "entries" ], "title": "FolderBrowseResponseSchema", "type": "object" }, "FolderTemplateIn": { "description": "文件夹模板创建输入", "properties": { "case_stages": { "default": [], "items": { "type": "string" }, "title": "Case Stages", "type": "array" }, "case_types": { "default": [], "items": { "type": "string" }, "title": "Case Types", "type": "array" }, "contract_types": { "default": [], "items": { "type": "string" }, "title": "Contract Types", "type": "array" }, "is_active": { "default": true, "title": "Is Active", "type": "boolean" }, "is_default": { "default": false, "title": "Is Default", "type": "boolean" }, "name": { "title": "Name", "type": "string" }, "structure": { "additionalProperties": true, "default": {}, "title": "Structure", "type": "object" }, "template_type": { "default": "contract", "title": "Template Type", "type": "string" } }, "required": [ "name" ], "title": "FolderTemplateIn", "type": "object" }, "FolderTemplateOut": { "description": "文件夹模板输出", "properties": { "case_stages": { "description": "JSON 数组,如 ['first_trial', 'second_trial'],支持多选", "title": "案件阶段", "type": "object" }, "case_stages_display": { "title": "Case Stages Display", "type": "string" }, "case_types": { "description": "JSON 数组,如 ['civil', 'criminal'],支持多选", "title": "案件类型", "type": "object" }, "case_types_display": { "title": "Case Types Display", "type": "string" }, "contract_types": { "description": "JSON 数组,如 ['civil', 'criminal'],支持多选", "title": "合同类型", "type": "object" }, "contract_types_display": { "title": "Contract Types Display", "type": "string" }, "created_at": { "format": "date-time", "title": "创建时间", "type": "string" }, "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "ID" }, "is_active": { "default": true, "title": "是否启用", "type": "boolean" }, "is_default": { "default": false, "title": "是否默认模板", "type": "boolean" }, "name": { "maxLength": 100, "title": "模板名称", "type": "string" }, "structure": { "description": "JSON 格式的文件夹层级结构", "title": "文件夹结构", "type": "object" }, "template_type": { "description": "选择此模板用于合同还是案件", "maxLength": 20, "title": "模板类型", "type": "string" }, "template_type_display": { "title": "Template Type Display", "type": "string" }, "updated_at": { "format": "date-time", "title": "更新时间", "type": "string" } }, "required": [ "template_type_display", "case_types_display", "case_stages_display", "contract_types_display", "name", "template_type", "created_at", "updated_at" ], "title": "FolderTemplateOut", "type": "object" }, "FolderTemplateUpdate": { "description": "文件夹模板更新输入", "properties": { "case_stages": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "title": "Case Stages" }, "case_types": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "title": "Case Types" }, "contract_types": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "title": "Contract Types" }, "is_active": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Is Active" }, "is_default": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Is Default" }, "name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Name" }, "structure": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "Structure" }, "template_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Template Type" } }, "title": "FolderTemplateUpdate", "type": "object" }, "IdentityDocDetailOut": { "description": "证件文档详情输出 Schema", "properties": { "client_id": { "title": "Client Id", "type": "integer" }, "doc_type": { "title": "Doc Type", "type": "string" }, "file_path": { "title": "File Path", "type": "string" }, "id": { "title": "Id", "type": "integer" }, "media_url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Media Url" }, "uploaded_at": { "format": "date-time", "title": "Uploaded At", "type": "string" } }, "required": [ "id", "client_id", "doc_type", "file_path", "uploaded_at" ], "title": "IdentityDocDetailOut", "type": "object" }, "IdentityRecognizeOut": { "description": "证件识别输出 Schema", "properties": { "confidence": { "title": "Confidence", "type": "number" }, "doc_type": { "title": "Doc Type", "type": "string" }, "error": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Error" }, "extracted_data": { "additionalProperties": { "anyOf": [ { "type": "string" }, { "type": "null" } ] }, "title": "Extracted Data", "type": "object" }, "success": { "title": "Success", "type": "boolean" } }, "required": [ "success", "doc_type", "extracted_data", "confidence" ], "title": "IdentityRecognizeOut", "type": "object" }, "InboxMessageDetailOut": { "description": "收件箱消息详情(含正文和附件详情)。", "properties": { "attachment_count": { "title": "Attachment Count", "type": "integer" }, "attachments": { "items": { "$ref": "#/components/schemas/AttachmentMeta" }, "title": "Attachments", "type": "array" }, "body_html": { "title": "Body Html", "type": "string" }, "body_text": { "title": "Body Text", "type": "string" }, "created_at": { "title": "Created At", "type": "string" }, "has_attachments": { "title": "Has Attachments", "type": "boolean" }, "id": { "title": "Id", "type": "integer" }, "received_at": { "title": "Received At", "type": "string" }, "recipient": { "title": "Recipient", "type": "string" }, "sender": { "title": "Sender", "type": "string" }, "source_name": { "title": "Source Name", "type": "string" }, "source_type": { "title": "Source Type", "type": "string" }, "subject": { "title": "Subject", "type": "string" } }, "required": [ "id", "source_name", "source_type", "subject", "sender", "recipient", "received_at", "has_attachments", "attachment_count", "created_at", "body_text", "body_html", "attachments" ], "title": "InboxMessageDetailOut", "type": "object" }, "InboxMessageOut": { "description": "收件箱消息列表项。", "properties": { "attachment_count": { "title": "Attachment Count", "type": "integer" }, "created_at": { "title": "Created At", "type": "string" }, "has_attachments": { "title": "Has Attachments", "type": "boolean" }, "id": { "title": "Id", "type": "integer" }, "received_at": { "title": "Received At", "type": "string" }, "recipient": { "title": "Recipient", "type": "string" }, "sender": { "title": "Sender", "type": "string" }, "source_name": { "title": "Source Name", "type": "string" }, "source_type": { "title": "Source Type", "type": "string" }, "subject": { "title": "Subject", "type": "string" } }, "required": [ "id", "source_name", "source_type", "subject", "sender", "recipient", "received_at", "has_attachments", "attachment_count", "created_at" ], "title": "InboxMessageOut", "type": "object" }, "Input": { "properties": { "page": { "default": 1, "minimum": 1, "title": "Page", "type": "integer" }, "page_size": { "anyOf": [ { "minimum": 1, "type": "integer" }, { "type": "null" } ], "title": "Page Size" } }, "title": "Input", "type": "object" }, "InstallmentPlanSchema": { "description": "分期还款计划", "properties": { "amount": { "title": "Amount", "type": "number" }, "due_date": { "format": "date", "title": "Due Date", "type": "string" } }, "required": [ "due_date", "amount" ], "title": "InstallmentPlanSchema", "type": "object" }, "InsuranceQuoteSchema": { "description": "保险公司报价输出 Schema", "properties": { "company_code": { "description": "保险公司编码", "title": "Company Code", "type": "string" }, "company_id": { "description": "保险公司ID", "title": "Company Id", "type": "string" }, "company_name": { "description": "保险公司名称", "title": "Company Name", "type": "string" }, "created_at": { "description": "创建时间", "format": "date-time", "title": "Created At", "type": "string" }, "error_message": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "错误信息", "title": "Error Message" }, "id": { "description": "报价记录ID", "title": "Id", "type": "integer" }, "max_rate": { "anyOf": [ { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" }, { "type": "null" } ], "description": "最高费率", "title": "Max Rate" }, "min_rate": { "anyOf": [ { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" }, { "type": "null" } ], "description": "最低费率", "title": "Min Rate" }, "premium": { "anyOf": [ { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" }, { "type": "null" } ], "description": "报价金额", "title": "Premium" }, "preservation_quote_id": { "description": "询价任务ID", "title": "Preservation Quote Id", "type": "integer" }, "response_data": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "description": "完整响应数据", "title": "Response Data" }, "status": { "description": "查询状态 (success/failed)", "title": "Status", "type": "string" } }, "required": [ "id", "preservation_quote_id", "company_id", "company_code", "company_name", "status", "created_at" ], "title": "InsuranceQuoteSchema", "type": "object" }, "InterestCalcRequest": { "description": "利息计算请求", "properties": { "agreed_payment_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Agreed Payment Date" }, "agreed_rate": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Agreed Rate" }, "batch_deliveries": { "anyOf": [ { "items": { "$ref": "#/components/schemas/BatchDeliveryItem" }, "type": "array" }, { "type": "null" } ], "title": "Batch Deliveries" }, "demand_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Demand Date" }, "end_date": { "format": "date", "title": "End Date", "type": "string" }, "interest_start_type": { "default": "agreed_date", "title": "Interest Start Type", "type": "string" }, "lpr_markup": { "default": 0.0, "title": "Lpr Markup", "type": "number" }, "penalty_amount": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Penalty Amount" }, "penalty_daily_rate": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Penalty Daily Rate" }, "principal": { "title": "Principal", "type": "number" }, "rate_type": { "default": "lpr", "title": "Rate Type", "type": "string" }, "reasonable_period_days": { "default": 30, "title": "Reasonable Period Days", "type": "integer" }, "start_date": { "format": "date", "title": "Start Date", "type": "string" } }, "required": [ "principal", "start_date", "end_date" ], "title": "InterestCalcRequest", "type": "object" }, "InterestCalcResponse": { "description": "利息计算响应", "properties": { "segments": { "items": { "$ref": "#/components/schemas/SegmentDetailResponse" }, "title": "Segments", "type": "array" }, "total_interest": { "title": "Total Interest", "type": "number" }, "warnings": { "items": { "type": "string" }, "title": "Warnings", "type": "array" } }, "required": [ "total_interest", "segments", "warnings" ], "title": "InterestCalcResponse", "type": "object" }, "InterestCalculateRequest": { "description": "利息计算请求.", "properties": { "custom_rate_unit": { "default": "percent", "description": "自定义利率单位: percent=百分之, permille=千分之, permyriad=万分之", "enum": [ "percent", "permille", "permyriad" ], "title": "Custom Rate Unit", "type": "string" }, "custom_rate_value": { "anyOf": [ { "type": "number" }, { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" }, { "type": "null" } ], "description": "自定义利率数值(如5表示千分之5)", "title": "Custom Rate Value" }, "date_inclusion": { "default": "both", "description": "日期计算方式: both=均计算在内, start_only=仅起始日期, end_only=仅截止日期, neither=均不计算", "enum": [ "both", "start_only", "end_only", "neither" ], "title": "Date Inclusion", "type": "string" }, "end_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "description": "结束日期(固定本金模式必填)", "title": "End Date" }, "multiplier": { "anyOf": [ { "type": "number" }, { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" } ], "default": "1", "description": "利率倍数(LPR模式)", "title": "Multiplier" }, "principal": { "anyOf": [ { "type": "number" }, { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" }, { "type": "null" } ], "description": "本金(固定本金模式必填)", "title": "Principal" }, "principal_changes": { "anyOf": [ { "items": { "$ref": "#/components/schemas/PrincipalChangeSchema" }, "type": "array" }, { "type": "null" } ], "description": "本金变动列表(如提供则使用变动本金计算,此时不需要start_date/end_date/principal)", "title": "Principal Changes" }, "rate_mode": { "default": "lpr", "description": "利率模式: lpr=LPR利率, custom=自定义利率", "enum": [ "lpr", "custom" ], "title": "Rate Mode", "type": "string" }, "rate_type": { "default": "1y", "description": "利率类型(LPR模式)", "enum": [ "1y", "5y" ], "title": "Rate Type", "type": "string" }, "start_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "description": "开始日期(固定本金模式必填)", "title": "Start Date" }, "year_days": { "default": 360, "description": "年基准天数(360/365/0实际天数)", "title": "Year Days", "type": "integer" } }, "title": "InterestCalculateRequest", "type": "object" }, "InterestCalculateResponse": { "description": "利息计算响应.", "properties": { "code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Code" }, "end_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "End Date" }, "message": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Message" }, "periods": { "anyOf": [ { "items": { "$ref": "#/components/schemas/CalculationPeriodSchema" }, "type": "array" }, { "type": "null" } ], "title": "Periods" }, "start_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Start Date" }, "success": { "title": "Success", "type": "boolean" }, "total_days": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Total Days" }, "total_interest": { "anyOf": [ { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" }, { "type": "null" } ], "title": "Total Interest" }, "total_principal": { "anyOf": [ { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" }, { "type": "null" } ], "title": "Total Principal" } }, "required": [ "success" ], "title": "InterestCalculateResponse", "type": "object" }, "InterruptionEventSchema": { "description": "时效中断事由", "properties": { "event_date": { "format": "date", "title": "Event Date", "type": "string" }, "event_type": { "title": "Event Type", "type": "string" } }, "required": [ "event_type", "event_date" ], "title": "InterruptionEventSchema", "type": "object" }, "JobOut": { "properties": { "current_page": { "title": "Current Page", "type": "integer" }, "download_url": { "default": "", "title": "Download Url", "type": "string" }, "error_message": { "default": "", "title": "Error Message", "type": "string" }, "job_id": { "title": "Job Id", "type": "string" }, "ocr_profile": { "title": "Ocr Profile", "type": "string" }, "pdf_url": { "default": "", "title": "Pdf Url", "type": "string" }, "processed_pages": { "title": "Processed Pages", "type": "integer" }, "progress": { "title": "Progress", "type": "integer" }, "segments": { "items": { "$ref": "#/components/schemas/SegmentOut" }, "title": "Segments", "type": "array" }, "split_mode": { "title": "Split Mode", "type": "string" }, "status": { "title": "Status", "type": "string" }, "summary": { "additionalProperties": true, "title": "Summary", "type": "object" }, "total_pages": { "title": "Total Pages", "type": "integer" } }, "required": [ "job_id", "status", "split_mode", "ocr_profile", "progress", "total_pages", "processed_pages", "current_page", "summary", "segments" ], "title": "JobOut", "type": "object" }, "JobSubmitOut": { "properties": { "job_id": { "description": "任务ID", "title": "Job Id", "type": "string" }, "status": { "description": "状态", "title": "Status", "type": "string" } }, "required": [ "job_id", "status" ], "title": "JobSubmitOut", "type": "object" }, "JurisdictionRequest": { "description": "管辖权分析请求", "properties": { "agreed_court": { "default": "", "title": "Agreed Court", "type": "string" }, "defendant_location": { "default": "", "title": "Defendant Location", "type": "string" }, "has_agreed_jurisdiction": { "default": false, "title": "Has Agreed Jurisdiction", "type": "boolean" }, "invalid_reason": { "default": "", "title": "Invalid Reason", "type": "string" }, "is_agreed_valid": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Is Agreed Valid" }, "plaintiff_location": { "default": "", "title": "Plaintiff Location", "type": "string" } }, "title": "JurisdictionRequest", "type": "object" }, "JurisdictionResponseSchema": { "description": "管辖权分析响应", "properties": { "agreed_court": { "title": "Agreed Court", "type": "string" }, "alternative_court": { "title": "Alternative Court", "type": "string" }, "defendant_location": { "title": "Defendant Location", "type": "string" }, "has_agreed_jurisdiction": { "title": "Has Agreed Jurisdiction", "type": "boolean" }, "invalid_reason": { "title": "Invalid Reason", "type": "string" }, "is_agreed_valid": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Is Agreed Valid" }, "legal_basis": { "title": "Legal Basis", "type": "string" }, "plaintiff_location": { "title": "Plaintiff Location", "type": "string" }, "recommendation_reason": { "title": "Recommendation Reason", "type": "string" }, "recommended_court": { "title": "Recommended Court", "type": "string" } }, "required": [ "has_agreed_jurisdiction", "agreed_court", "is_agreed_valid", "invalid_reason", "plaintiff_location", "defendant_location", "recommended_court", "recommendation_reason", "alternative_court", "legal_basis" ], "title": "JurisdictionResponseSchema", "type": "object" }, "LPRRateListResponse": { "description": "LPR利率列表响应.", "properties": { "items": { "items": { "$ref": "#/components/schemas/LPRRateSchema" }, "title": "Items", "type": "array" }, "total": { "title": "Total", "type": "integer" } }, "required": [ "items", "total" ], "title": "LPRRateListResponse", "type": "object" }, "LPRRateResponse": { "description": "LPR利率响应", "properties": { "effective_date": { "format": "date", "title": "Effective Date", "type": "string" }, "rate_1y": { "title": "Rate 1Y", "type": "number" }, "rate_5y": { "title": "Rate 5Y", "type": "number" } }, "required": [ "effective_date", "rate_1y", "rate_5y" ], "title": "LPRRateResponse", "type": "object" }, "LPRRateSchema": { "description": "LPR利率数据Schema.", "properties": { "created_at": { "title": "Created At", "type": "string" }, "effective_date": { "format": "date", "title": "Effective Date", "type": "string" }, "id": { "title": "Id", "type": "integer" }, "is_auto_synced": { "default": false, "description": "是否自动同步", "title": "Is Auto Synced", "type": "boolean" }, "rate_1y": { "description": "一年期LPR(%)", "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "title": "Rate 1Y", "type": "string" }, "rate_5y": { "description": "五年期LPR(%)", "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "title": "Rate 5Y", "type": "string" }, "source": { "default": "", "description": "数据来源", "title": "Source", "type": "string" }, "updated_at": { "title": "Updated At", "type": "string" } }, "required": [ "id", "effective_date", "rate_1y", "rate_5y", "created_at", "updated_at" ], "title": "LPRRateSchema", "type": "object" }, "LPRSyncRequest": { "description": "LPR同步请求.", "properties": { "force": { "default": false, "description": "强制同步,忽略缓存", "title": "Force", "type": "boolean" } }, "title": "LPRSyncRequest", "type": "object" }, "LPRSyncResponse": { "description": "LPR同步响应.", "properties": { "created": { "default": 0, "description": "新增记录数", "title": "Created", "type": "integer" }, "message": { "title": "Message", "type": "string" }, "skipped": { "default": 0, "description": "跳过记录数", "title": "Skipped", "type": "integer" }, "success": { "title": "Success", "type": "boolean" }, "updated": { "default": 0, "description": "更新记录数", "title": "Updated", "type": "integer" } }, "required": [ "success", "message" ], "title": "LPRSyncResponse", "type": "object" }, "LPRSyncStatusResponse": { "description": "LPR同步状态响应.", "properties": { "auto_synced_records": { "title": "Auto Synced Records", "type": "integer" }, "latest_rate_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Latest Rate Date" }, "manual_records": { "title": "Manual Records", "type": "integer" }, "total_records": { "title": "Total Records", "type": "integer" } }, "required": [ "latest_rate_date", "total_records", "auto_synced_records", "manual_records" ], "title": "LPRSyncStatusResponse", "type": "object" }, "LanguageItemSchema": { "properties": { "code": { "title": "Code", "type": "string" }, "name": { "title": "Name", "type": "string" } }, "required": [ "code", "name" ], "title": "LanguageItemSchema", "type": "object" }, "LanguageSchema": { "properties": { "language": { "title": "Language", "type": "string" } }, "required": [ "language" ], "title": "LanguageSchema", "type": "object" }, "LawFirmIn": { "properties": { "address": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Address" }, "name": { "title": "Name", "type": "string" }, "phone": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Phone" }, "social_credit_code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Social Credit Code" } }, "required": [ "name" ], "title": "LawFirmIn", "type": "object" }, "LawFirmOut": { "properties": { "address": { "anyOf": [ { "maxLength": 255, "type": "string" }, { "type": "null" } ], "title": "地址" }, "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "ID" }, "name": { "maxLength": 255, "title": "律所名称", "type": "string" }, "phone": { "anyOf": [ { "maxLength": 20, "type": "string" }, { "type": "null" } ], "title": "联系电话" }, "social_credit_code": { "anyOf": [ { "maxLength": 18, "type": "string" }, { "type": "null" } ], "title": "统一社会信用代码" } }, "required": [ "name" ], "title": "LawFirmOut", "type": "object" }, "LawFirmUpdateIn": { "properties": { "address": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Address" }, "name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Name" }, "phone": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Phone" }, "social_credit_code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Social Credit Code" } }, "title": "LawFirmUpdateIn", "type": "object" }, "LawyerCreateIn": { "properties": { "biz_team_ids": { "anyOf": [ { "items": { "type": "integer" }, "type": "array" }, { "type": "null" } ], "title": "Biz Team Ids" }, "id_card": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Id Card" }, "is_admin": { "default": false, "title": "Is Admin", "type": "boolean" }, "law_firm_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Law Firm Id" }, "lawyer_team_ids": { "anyOf": [ { "items": { "type": "integer" }, "type": "array" }, { "type": "null" } ], "title": "Lawyer Team Ids" }, "license_no": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "License No" }, "password": { "title": "Password", "type": "string" }, "phone": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Phone" }, "real_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Real Name" }, "username": { "title": "Username", "type": "string" } }, "required": [ "username", "password" ], "title": "LawyerCreateIn", "type": "object" }, "LawyerLetterRequest": { "description": "律师函生成请求", "properties": { "case_id": { "title": "Case Id", "type": "integer" }, "contract_no": { "default": "", "title": "Contract No", "type": "string" }, "creditor_name": { "title": "Creditor Name", "type": "string" }, "deadline_days": { "default": 7, "title": "Deadline Days", "type": "integer" }, "debtor_name": { "title": "Debtor Name", "type": "string" }, "interest_amount": { "title": "Interest Amount", "type": "number" }, "principal": { "title": "Principal", "type": "number" }, "tone": { "title": "Tone", "type": "string" } }, "required": [ "case_id", "tone", "creditor_name", "debtor_name", "principal", "interest_amount" ], "title": "LawyerLetterRequest", "type": "object" }, "LawyerOut": { "properties": { "id": { "title": "Id", "type": "integer" }, "is_active": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Is Active" }, "is_admin": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Is Admin" }, "law_firm": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Law Firm" }, "law_firm_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Law Firm Name" }, "phone": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Phone" }, "real_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Real Name" }, "username": { "title": "Username", "type": "string" } }, "required": [ "id", "username" ], "title": "LawyerOut", "type": "object" }, "LawyerOutFromDTO": { "properties": { "id": { "title": "Id", "type": "integer" }, "phone": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Phone" }, "real_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Real Name" }, "username": { "title": "Username", "type": "string" } }, "required": [ "id", "username" ], "title": "LawyerOutFromDTO", "type": "object" }, "LawyerPerformanceItemResponse": { "description": "律师绩效项", "properties": { "avg_recovery_cycle": { "title": "Avg Recovery Cycle", "type": "integer" }, "case_count": { "title": "Case Count", "type": "integer" }, "closed_rate": { "title": "Closed Rate", "type": "string" }, "lawyer_id": { "title": "Lawyer Id", "type": "integer" }, "lawyer_name": { "title": "Lawyer Name", "type": "string" }, "recovery_rate": { "title": "Recovery Rate", "type": "string" }, "total_recovery": { "title": "Total Recovery", "type": "string" } }, "required": [ "lawyer_id", "lawyer_name", "case_count", "total_recovery", "recovery_rate", "avg_recovery_cycle", "closed_rate" ], "title": "LawyerPerformanceItemResponse", "type": "object" }, "LawyerPerformanceQuery": { "description": "律师绩效查询参数", "properties": { "end_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "End Date" }, "sort_by": { "default": "total_recovery", "title": "Sort By", "type": "string" }, "start_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Start Date" } }, "title": "LawyerPerformanceQuery", "type": "object" }, "LawyerPerformanceResponse": { "description": "律师绩效响应", "properties": { "items": { "items": { "$ref": "#/components/schemas/LawyerPerformanceItemResponse" }, "title": "Items", "type": "array" }, "query_period": { "$ref": "#/components/schemas/QueryPeriodSchema" } }, "required": [ "items", "query_period" ], "title": "LawyerPerformanceResponse", "type": "object" }, "LawyerUpdateIn": { "properties": { "biz_team_ids": { "anyOf": [ { "items": { "type": "integer" }, "type": "array" }, { "type": "null" } ], "title": "Biz Team Ids" }, "id_card": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Id Card" }, "is_admin": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Is Admin" }, "law_firm_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Law Firm Id" }, "lawyer_team_ids": { "anyOf": [ { "items": { "type": "integer" }, "type": "array" }, { "type": "null" } ], "title": "Lawyer Team Ids" }, "license_no": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "License No" }, "password": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Password" }, "phone": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Phone" }, "real_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Real Name" } }, "title": "LawyerUpdateIn", "type": "object" }, "LegalResearchCreateOut": { "properties": { "status": { "title": "Status", "type": "string" }, "task_id": { "title": "Task Id", "type": "integer" } }, "required": [ "task_id", "status" ], "title": "LegalResearchCreateOut", "type": "object" }, "LegalResearchResultOut": { "properties": { "case_digest": { "title": "Case Digest", "type": "string" }, "court_text": { "title": "Court Text", "type": "string" }, "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "document_number": { "title": "Document Number", "type": "string" }, "has_pdf": { "title": "Has Pdf", "type": "boolean" }, "id": { "title": "Id", "type": "integer" }, "judgment_date": { "title": "Judgment Date", "type": "string" }, "match_reason": { "title": "Match Reason", "type": "string" }, "rank": { "title": "Rank", "type": "integer" }, "similarity_score": { "title": "Similarity Score", "type": "number" }, "source_doc_id": { "title": "Source Doc Id", "type": "string" }, "source_url": { "title": "Source Url", "type": "string" }, "task_id": { "title": "Task Id", "type": "integer" }, "title": { "title": "Title", "type": "string" } }, "required": [ "id", "task_id", "rank", "source_doc_id", "source_url", "title", "court_text", "document_number", "judgment_date", "case_digest", "similarity_score", "match_reason", "has_pdf", "created_at" ], "title": "LegalResearchResultOut", "type": "object" }, "LegalResearchTaskCreateIn": { "properties": { "case_summary": { "description": "案情简述", "maxLength": 8000, "minLength": 10, "title": "Case Summary", "type": "string" }, "credential_id": { "description": "wkxx账号凭证ID", "exclusiveMinimum": 0, "title": "Credential Id", "type": "integer" }, "keyword": { "description": "检索关键词;支持空格、逗号、分号、换行分隔多个关键词", "maxLength": 255, "minLength": 1, "title": "Keyword", "type": "string" }, "llm_model": { "anyOf": [ { "maxLength": 128, "minLength": 1, "type": "string" }, { "type": "null" } ], "description": "硅基流动模型ID", "title": "Llm Model" }, "max_candidates": { "default": 100, "description": "最大扫描案例数", "maximum": 200, "minimum": 5, "title": "Max Candidates", "type": "integer" }, "min_similarity_score": { "default": 0.9, "description": "最低相似度阈值", "maximum": 1.0, "minimum": 0.0, "title": "Min Similarity Score", "type": "number" }, "search_mode": { "default": "expanded", "description": "检索模式:expanded(扩展检索) 或 single(单检索)", "enum": [ "expanded", "single" ], "title": "Search Mode", "type": "string" }, "target_count": { "default": 3, "description": "目标相似案例数量", "maximum": 20, "minimum": 1, "title": "Target Count", "type": "integer" } }, "required": [ "credential_id", "keyword", "case_summary" ], "title": "LegalResearchTaskCreateIn", "type": "object" }, "LegalResearchTaskOut": { "properties": { "candidate_count": { "title": "Candidate Count", "type": "integer" }, "case_summary": { "title": "Case Summary", "type": "string" }, "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "credential_id": { "title": "Credential Id", "type": "integer" }, "error": { "title": "Error", "type": "string" }, "finished_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Finished At" }, "id": { "title": "Id", "type": "integer" }, "keyword": { "title": "Keyword", "type": "string" }, "llm_backend": { "title": "Llm Backend", "type": "string" }, "llm_model": { "title": "Llm Model", "type": "string" }, "matched_count": { "title": "Matched Count", "type": "integer" }, "max_candidates": { "title": "Max Candidates", "type": "integer" }, "message": { "title": "Message", "type": "string" }, "min_similarity_score": { "title": "Min Similarity Score", "type": "number" }, "progress": { "title": "Progress", "type": "integer" }, "q_task_id": { "title": "Q Task Id", "type": "string" }, "scanned_count": { "title": "Scanned Count", "type": "integer" }, "search_mode": { "enum": [ "expanded", "single" ], "title": "Search Mode", "type": "string" }, "started_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Started At" }, "status": { "title": "Status", "type": "string" }, "target_count": { "title": "Target Count", "type": "integer" }, "updated_at": { "format": "date-time", "title": "Updated At", "type": "string" } }, "required": [ "id", "credential_id", "keyword", "case_summary", "search_mode", "target_count", "max_candidates", "min_similarity_score", "status", "progress", "scanned_count", "matched_count", "candidate_count", "message", "error", "llm_backend", "llm_model", "q_task_id", "started_at", "finished_at", "created_at", "updated_at" ], "title": "LegalResearchTaskOut", "type": "object" }, "LimitationRequest": { "description": "时效计算请求", "properties": { "guarantee_debtor": { "default": false, "title": "Guarantee Debtor", "type": "boolean" }, "interruptions": { "items": { "$ref": "#/components/schemas/InterruptionEventSchema" }, "title": "Interruptions", "type": "array" }, "last_claim_date": { "format": "date", "title": "Last Claim Date", "type": "string" }, "principal_due_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Principal Due Date" } }, "required": [ "last_claim_date", "interruptions" ], "title": "LimitationRequest", "type": "object" }, "LimitationResponse": { "description": "时效计算响应", "properties": { "base_date": { "format": "date", "title": "Base Date", "type": "string" }, "expiry_date": { "format": "date", "title": "Expiry Date", "type": "string" }, "guarantee_expiry_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Guarantee Expiry Date" }, "remaining_days": { "title": "Remaining Days", "type": "integer" }, "risk_warning": { "title": "Risk Warning", "type": "string" }, "status": { "title": "Status", "type": "string" } }, "required": [ "status", "expiry_date", "remaining_days", "base_date", "risk_warning" ], "title": "LimitationResponse", "type": "object" }, "LoginIn": { "properties": { "password": { "title": "Password", "type": "string" }, "username": { "title": "Username", "type": "string" } }, "required": [ "username", "password" ], "title": "LoginIn", "type": "object" }, "LoginOut": { "properties": { "success": { "title": "Success", "type": "boolean" }, "user": { "anyOf": [ { "$ref": "#/components/schemas/LawyerOut" }, { "type": "null" } ] } }, "required": [ "success" ], "title": "LoginOut", "type": "object" }, "ManualBindingRequestSchema": { "description": "手动绑定请求", "properties": { "case_id": { "description": "案件ID", "exclusiveMinimum": 0, "title": "Case Id", "type": "integer" } }, "required": [ "case_id" ], "title": "ManualBindingRequestSchema", "type": "object" }, "ManualBindingResponseSchema": { "description": "手动绑定响应", "properties": { "case_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "description": "案件ID", "title": "Case Id" }, "case_log_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "description": "日志ID", "title": "Case Log Id" }, "case_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "案件名称", "title": "Case Name" }, "error_code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "错误码", "title": "Error Code" }, "message": { "description": "消息", "title": "Message", "type": "string" }, "success": { "description": "是否成功", "title": "Success", "type": "boolean" } }, "required": [ "success", "message" ], "title": "ManualBindingResponseSchema", "type": "object" }, "MappingCreateSchema": { "description": "映射创建请求体", "properties": { "fill_type": { "default": "text", "title": "Fill Type", "type": "string" }, "position_description": { "default": "", "title": "Position Description", "type": "string" }, "position_locator": { "additionalProperties": true, "title": "Position Locator", "type": "object" }, "semantic_label": { "title": "Semantic Label", "type": "string" } }, "required": [ "position_locator", "semantic_label" ], "title": "MappingCreateSchema", "type": "object" }, "MappingUpdateSchema": { "description": "映射更新请求体", "properties": { "fill_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Fill Type" }, "position_description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Position Description" }, "semantic_label": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Semantic Label" } }, "title": "MappingUpdateSchema", "type": "object" }, "MbidCategoryOut": { "description": "文书类型分类。", "properties": { "category": { "title": "Category", "type": "string" }, "items": { "items": { "$ref": "#/components/schemas/MbidItem" }, "title": "Items", "type": "array" } }, "required": [ "category", "items" ], "title": "MbidCategoryOut", "type": "object" }, "MbidItem": { "description": "单个文书类型。", "properties": { "mbid": { "title": "Mbid", "type": "string" }, "name": { "title": "Name", "type": "string" } }, "required": [ "mbid", "name" ], "title": "MbidItem", "type": "object" }, "MbidListResponse": { "description": "文书类型列表响应。", "properties": { "categories": { "items": { "$ref": "#/components/schemas/MbidCategoryOut" }, "title": "Categories", "type": "array" } }, "required": [ "categories" ], "title": "MbidListResponse", "type": "object" }, "MergeIdCardManualIn": { "description": "手动合并身份证请求体", "properties": { "back_corners": { "items": { "items": { "type": "integer" }, "type": "array" }, "title": "Back Corners", "type": "array" }, "back_image_path": { "title": "Back Image Path", "type": "string" }, "front_corners": { "items": { "items": { "type": "integer" }, "type": "array" }, "title": "Front Corners", "type": "array" }, "front_image_path": { "title": "Front Image Path", "type": "string" } }, "required": [ "front_image_path", "back_image_path", "front_corners", "back_corners" ], "title": "MergeIdCardManualIn", "type": "object" }, "OAConfigOut": { "properties": { "has_credential": { "title": "Has Credential", "type": "boolean" }, "id": { "title": "Id", "type": "string" }, "oa_system_name": { "title": "Oa System Name", "type": "string" } }, "required": [ "id", "oa_system_name", "has_credential" ], "title": "OAConfigOut", "type": "object" }, "OACredentialCheckOut": { "description": "检查 OA 凭证结果", "properties": { "has_credential": { "title": "Has Credential", "type": "boolean" } }, "required": [ "has_credential" ], "title": "OACredentialCheckOut", "type": "object" }, "OllamaChatIn": { "properties": { "model": { "title": "Model", "type": "string" }, "prompt": { "title": "Prompt", "type": "string" }, "text": { "title": "Text", "type": "string" } }, "required": [ "model", "prompt", "text" ], "title": "OllamaChatIn", "type": "object" }, "OllamaChatOut": { "properties": { "data": { "additionalProperties": true, "title": "Data", "type": "object" } }, "required": [ "data" ], "title": "OllamaChatOut", "type": "object" }, "PagedCourtSMSListOut": { "properties": { "count": { "title": "Count", "type": "integer" }, "items": { "items": { "$ref": "#/components/schemas/CourtSMSListOut" }, "title": "Items", "type": "array" } }, "required": [ "items", "count" ], "title": "PagedCourtSMSListOut", "type": "object" }, "PagedDocumentDeliveryScheduleOut": { "properties": { "count": { "title": "Count", "type": "integer" }, "items": { "items": { "$ref": "#/components/schemas/DocumentDeliveryScheduleOut" }, "title": "Items", "type": "array" } }, "required": [ "items", "count" ], "title": "PagedDocumentDeliveryScheduleOut", "type": "object" }, "ParseTextRequest": { "properties": { "parse_multiple": { "default": false, "title": "Parse Multiple", "type": "boolean" }, "text": { "title": "Text", "type": "string" } }, "required": [ "text" ], "title": "ParseTextRequest", "type": "object" }, "PerformanceMetricsOut": { "description": "性能指标输出Schema", "properties": { "avg_duration": { "description": "平均耗时(秒)", "title": "Avg Duration", "type": "number" }, "avg_login_duration": { "description": "平均登录耗时(秒)", "title": "Avg Login Duration", "type": "number" }, "cache_hit_rate": { "description": "缓存命中率(百分比)", "title": "Cache Hit Rate", "type": "number" }, "captcha_error_count": { "description": "验证码错误次数", "title": "Captcha Error Count", "type": "integer" }, "concurrent_acquisitions": { "description": "当前并发获取数", "title": "Concurrent Acquisitions", "type": "integer" }, "credential_error_count": { "description": "凭证错误次数", "title": "Credential Error Count", "type": "integer" }, "failed_acquisitions": { "description": "失败获取次数", "title": "Failed Acquisitions", "type": "integer" }, "network_error_count": { "description": "网络错误次数", "title": "Network Error Count", "type": "integer" }, "success_rate": { "description": "成功率(百分比)", "title": "Success Rate", "type": "number" }, "successful_acquisitions": { "description": "成功获取次数", "title": "Successful Acquisitions", "type": "integer" }, "timeout_count": { "description": "超时次数", "title": "Timeout Count", "type": "integer" }, "total_acquisitions": { "description": "总获取次数", "title": "Total Acquisitions", "type": "integer" } }, "required": [ "total_acquisitions", "successful_acquisitions", "failed_acquisitions", "success_rate", "avg_duration", "avg_login_duration", "timeout_count", "network_error_count", "captcha_error_count", "credential_error_count", "concurrent_acquisitions", "cache_hit_rate" ], "title": "PerformanceMetricsOut", "type": "object" }, "PlaceholderIn": { "description": "替换词创建输入", "properties": { "description": { "default": "", "title": "Description", "type": "string" }, "display_name": { "title": "Display Name", "type": "string" }, "example_value": { "default": "", "title": "Example Value", "type": "string" }, "is_active": { "default": true, "title": "Is Active", "type": "boolean" }, "key": { "title": "Key", "type": "string" } }, "required": [ "key", "display_name" ], "title": "PlaceholderIn", "type": "object" }, "PlaceholderOut": { "description": "替换词输出", "properties": { "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "说明" }, "display_name": { "description": "用于界面显示的友好名称", "maxLength": 200, "title": "显示名称", "type": "string" }, "example_value": { "anyOf": [ { "maxLength": 200, "type": "string" }, { "type": "null" } ], "description": "占位符的示例值,用于说明用途", "title": "示例值" }, "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "ID" }, "is_active": { "default": true, "title": "是否启用", "type": "boolean" }, "key": { "description": "模板中使用的占位符名称,如 case_name", "maxLength": 100, "title": "占位符键", "type": "string" } }, "required": [ "key", "display_name" ], "title": "PlaceholderOut", "type": "object" }, "PlaceholderPreviewOut": { "properties": { "contract_id": { "title": "Contract Id", "type": "integer" }, "missing_keys": { "default": [], "items": { "type": "string" }, "title": "Missing Keys", "type": "array" }, "values": { "additionalProperties": true, "title": "Values", "type": "object" } }, "required": [ "contract_id", "values" ], "title": "PlaceholderPreviewOut", "type": "object" }, "PlaceholderUpdate": { "description": "替换词更新输入", "properties": { "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Description" }, "display_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Display Name" }, "example_value": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Example Value" }, "is_active": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Is Active" }, "key": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Key" } }, "title": "PlaceholderUpdate", "type": "object" }, "PreservationQuoteCreateSchema": { "description": "创建询价任务的输入 Schema", "properties": { "category_id": { "description": "分类ID (cPid)", "example": "1", "maxLength": 32, "minLength": 1, "title": "Category Id", "type": "string" }, "corp_id": { "description": "企业/法院ID", "example": "440100", "maxLength": 32, "minLength": 1, "title": "Corp Id", "type": "string" }, "credential_id": { "description": "账号凭证ID", "example": 1, "exclusiveMinimum": 0, "title": "Credential Id", "type": "integer" }, "preserve_amount": { "anyOf": [ { "exclusiveMinimum": 0.0, "type": "number" }, { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" } ], "description": "保全金额,必须为正数", "example": 100000.0, "title": "Preserve Amount" } }, "required": [ "preserve_amount", "corp_id", "category_id", "credential_id" ], "title": "PreservationQuoteCreateSchema", "type": "object" }, "PreservationQuoteSchema": { "description": "询价任务输出 Schema", "properties": { "category_id": { "description": "分类ID", "title": "Category Id", "type": "string" }, "corp_id": { "description": "企业/法院ID", "title": "Corp Id", "type": "string" }, "created_at": { "description": "创建时间", "format": "date-time", "title": "Created At", "type": "string" }, "credential_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "description": "凭证ID", "title": "Credential Id" }, "error_message": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "错误信息", "title": "Error Message" }, "failed_count": { "description": "失败查询数", "title": "Failed Count", "type": "integer" }, "finished_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "完成时间", "title": "Finished At" }, "id": { "description": "任务ID", "title": "Id", "type": "integer" }, "preserve_amount": { "description": "保全金额", "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "title": "Preserve Amount", "type": "string" }, "quotes": { "description": "保险公司报价列表", "items": { "$ref": "#/components/schemas/InsuranceQuoteSchema" }, "title": "Quotes", "type": "array" }, "started_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "开始时间", "title": "Started At" }, "status": { "description": "任务状态", "title": "Status", "type": "string" }, "success_count": { "description": "成功查询数", "title": "Success Count", "type": "integer" }, "total_companies": { "description": "保险公司总数", "title": "Total Companies", "type": "integer" } }, "required": [ "id", "preserve_amount", "corp_id", "category_id", "status", "total_companies", "success_count", "failed_count", "created_at" ], "title": "PreservationQuoteSchema", "type": "object" }, "PrincipalChangeSchema": { "description": "本金变动Schema.", "properties": { "end_date": { "description": "结束日期", "format": "date", "title": "End Date", "type": "string" }, "principal": { "anyOf": [ { "type": "number" }, { "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "type": "string" } ], "description": "本金金额", "title": "Principal" }, "start_date": { "description": "开始日期", "format": "date", "title": "Start Date", "type": "string" } }, "required": [ "start_date", "end_date", "principal" ], "title": "PrincipalChangeSchema", "type": "object" }, "ProjectIn": { "properties": { "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": "", "title": "Description" }, "name": { "title": "Name", "type": "string" } }, "required": [ "name" ], "title": "ProjectIn", "type": "object" }, "ProjectOut": { "properties": { "created_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Created At" }, "created_by": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "创建人" }, "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "说明" }, "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "ID" }, "name": { "maxLength": 255, "title": "项目名称", "type": "string" }, "updated_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Updated At" } }, "required": [ "created_at", "updated_at", "name" ], "title": "ProjectOut", "type": "object" }, "PromptTemplateSyncResponse": { "description": "Prompt 模板同步响应", "properties": { "synced_count": { "title": "Synced Count", "type": "integer" } }, "required": [ "synced_count" ], "title": "PromptTemplateSyncResponse", "type": "object" }, "PropertyClueAttachmentOut": { "description": "财产线索附件输出 Schema", "properties": { "file_name": { "title": "File Name", "type": "string" }, "file_path": { "title": "File Path", "type": "string" }, "id": { "title": "Id", "type": "integer" }, "media_url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Media Url" }, "uploaded_at": { "format": "date-time", "title": "Uploaded At", "type": "string" } }, "required": [ "id", "file_path", "file_name", "uploaded_at" ], "title": "PropertyClueAttachmentOut", "type": "object" }, "PropertyClueIn": { "description": "财产线索创建输入 Schema", "properties": { "clue_type": { "default": "bank", "title": "Clue Type", "type": "string" }, "content": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Content" } }, "title": "PropertyClueIn", "type": "object" }, "PropertyClueOut": { "description": "财产线索输出 Schema", "properties": { "attachments": { "items": { "$ref": "#/components/schemas/PropertyClueAttachmentOut" }, "title": "Attachments", "type": "array" }, "client_id": { "title": "Client Id", "type": "integer" }, "clue_type": { "title": "Clue Type", "type": "string" }, "clue_type_label": { "title": "Clue Type Label", "type": "string" }, "content": { "title": "Content", "type": "string" }, "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "id": { "title": "Id", "type": "integer" }, "updated_at": { "format": "date-time", "title": "Updated At", "type": "string" } }, "required": [ "id", "client_id", "clue_type", "clue_type_label", "content", "attachments", "created_at", "updated_at" ], "title": "PropertyClueOut", "type": "object" }, "PropertyClueUpdateIn": { "description": "财产线索更新输入 Schema", "properties": { "clue_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Clue Type" }, "content": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Content" } }, "title": "PropertyClueUpdateIn", "type": "object" }, "PropertyInvestigationRequest": { "description": "财产调查申请书请求", "properties": { "applicant_address": { "title": "Applicant Address", "type": "string" }, "applicant_name": { "title": "Applicant Name", "type": "string" }, "case_id": { "title": "Case Id", "type": "integer" }, "execution_case_number": { "title": "Execution Case Number", "type": "string" }, "property_types": { "items": { "type": "string" }, "title": "Property Types", "type": "array" }, "respondent_address": { "title": "Respondent Address", "type": "string" }, "respondent_name": { "title": "Respondent Name", "type": "string" } }, "required": [ "case_id", "applicant_name", "applicant_address", "respondent_name", "respondent_address", "execution_case_number", "property_types" ], "title": "PropertyInvestigationRequest", "type": "object" }, "ProviderInfoOut": { "properties": { "capabilities": { "items": { "type": "string" }, "title": "Capabilities", "type": "array" }, "enabled": { "title": "Enabled", "type": "boolean" }, "is_default": { "title": "Is Default", "type": "boolean" }, "name": { "title": "Name", "type": "string" }, "note": { "default": "", "title": "Note", "type": "string" }, "tools": { "items": { "type": "string" }, "title": "Tools", "type": "array" }, "transport": { "title": "Transport", "type": "string" } }, "required": [ "name", "enabled", "is_default", "transport", "capabilities" ], "title": "ProviderInfoOut", "type": "object" }, "QueryPeriodSchema": { "description": "查询时间范围", "properties": { "end_date": { "format": "date", "title": "End Date", "type": "string" }, "start_date": { "format": "date", "title": "Start Date", "type": "string" } }, "required": [ "start_date", "end_date" ], "title": "QueryPeriodSchema", "type": "object" }, "QueryTypeMetric": { "properties": { "contribution_rate": { "default": 0.0, "title": "Contribution Rate", "type": "number" }, "matched": { "default": 0, "title": "Matched", "type": "integer" }, "scanned": { "default": 0, "title": "Scanned", "type": "integer" } }, "title": "QueryTypeMetric", "type": "object" }, "QuoteExecuteResponseSchema": { "description": "执行询价任务响应 Schema", "properties": { "data": { "anyOf": [ { "$ref": "#/components/schemas/PreservationQuoteSchema" }, { "type": "null" } ], "description": "询价结果" }, "message": { "description": "响应消息", "title": "Message", "type": "string" }, "success": { "description": "是否成功", "title": "Success", "type": "boolean" } }, "required": [ "success", "message" ], "title": "QuoteExecuteResponseSchema", "type": "object" }, "QuoteListItemSchema": { "description": "询价任务列表项 Schema(不包含详细报价)", "properties": { "category_id": { "description": "分类ID", "title": "Category Id", "type": "string" }, "corp_id": { "description": "企业/法院ID", "title": "Corp Id", "type": "string" }, "created_at": { "description": "创建时间", "format": "date-time", "title": "Created At", "type": "string" }, "failed_count": { "description": "失败查询数", "title": "Failed Count", "type": "integer" }, "finished_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "完成时间", "title": "Finished At" }, "id": { "description": "任务ID", "title": "Id", "type": "integer" }, "preserve_amount": { "description": "保全金额", "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$", "title": "Preserve Amount", "type": "string" }, "started_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "description": "开始时间", "title": "Started At" }, "status": { "description": "任务状态", "title": "Status", "type": "string" }, "success_count": { "description": "成功查询数", "title": "Success Count", "type": "integer" }, "success_rate": { "description": "成功率(百分比)", "title": "Success Rate", "type": "number" }, "total_companies": { "description": "保险公司总数", "title": "Total Companies", "type": "integer" } }, "required": [ "id", "preserve_amount", "corp_id", "category_id", "status", "total_companies", "success_count", "failed_count", "success_rate", "created_at" ], "title": "QuoteListItemSchema", "type": "object" }, "QuoteListSchema": { "description": "询价任务分页列表响应 Schema", "properties": { "items": { "description": "任务列表", "items": { "$ref": "#/components/schemas/QuoteListItemSchema" }, "title": "Items", "type": "array" }, "page": { "description": "当前页码", "title": "Page", "type": "integer" }, "page_size": { "description": "每页记录数", "title": "Page Size", "type": "integer" }, "total": { "description": "总记录数", "title": "Total", "type": "integer" }, "total_pages": { "description": "总页数", "title": "Total Pages", "type": "integer" } }, "required": [ "total", "page", "page_size", "total_pages", "items" ], "title": "QuoteListSchema", "type": "object" }, "RecognitionResultSchema": { "description": "识别结果", "properties": { "case_number": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "案号", "title": "Case Number" }, "confidence": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "description": "置信度", "title": "Confidence" }, "document_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "文书类型", "title": "Document Type" }, "extraction_method": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "提取方式", "title": "Extraction Method" }, "key_time": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "关键时间", "title": "Key Time" } }, "title": "RecognitionResultSchema", "type": "object" }, "ReconciliationRequest": { "description": "对账函生成请求", "properties": { "case_id": { "title": "Case Id", "type": "integer" }, "creditor_name": { "title": "Creditor Name", "type": "string" }, "debtor_name": { "title": "Debtor Name", "type": "string" }, "outstanding_amount": { "title": "Outstanding Amount", "type": "number" }, "paid_amount": { "title": "Paid Amount", "type": "number" }, "transactions": { "items": { "$ref": "#/components/schemas/TransactionItemSchema" }, "title": "Transactions", "type": "array" } }, "required": [ "case_id", "creditor_name", "debtor_name", "transactions", "paid_amount", "outstanding_amount" ], "title": "ReconciliationRequest", "type": "object" }, "RecordingOut": { "properties": { "created_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Created At" }, "duration_seconds": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "时长(秒)" }, "extract_current": { "default": 0, "title": "抽帧当前项", "type": "integer" }, "extract_error": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "抽帧错误信息" }, "extract_finished_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Extract Finished At" }, "extract_message": { "anyOf": [ { "maxLength": 255, "type": "string" }, { "type": "null" } ], "title": "抽帧进度信息" }, "extract_progress": { "default": 0, "title": "抽帧进度百分比", "type": "integer" }, "extract_started_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Extract Started At" }, "extract_status": { "default": "pending", "maxLength": 16, "title": "抽帧状态", "type": "string" }, "extract_status_label": { "title": "Extract Status Label", "type": "string" }, "extract_total": { "default": 0, "title": "抽帧总项", "type": "integer" }, "id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Id" }, "original_name": { "anyOf": [ { "maxLength": 255, "type": "string" }, { "type": "null" } ], "title": "原始文件名" }, "project": { "title": "项目", "type": "integer" }, "size_bytes": { "default": 0, "title": "文件大小(字节)", "type": "integer" }, "stream_url": { "title": "Stream Url", "type": "string" }, "updated_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Updated At" }, "video_url": { "title": "Video Url", "type": "string" } }, "required": [ "video_url", "stream_url", "extract_status_label", "created_at", "updated_at", "extract_started_at", "extract_finished_at", "project" ], "title": "RecordingOut", "type": "object" }, "RecordingUpdate": { "properties": { "duration_seconds": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Duration Seconds" } }, "title": "RecordingUpdate", "type": "object" }, "ReminderIn": { "properties": { "case_log_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Case Log Id" }, "content": { "maxLength": 255, "title": "Content", "type": "string" }, "contract_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Contract Id" }, "due_at": { "format": "date-time", "title": "Due At", "type": "string" }, "metadata": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "Metadata" }, "reminder_type": { "$ref": "#/components/schemas/ReminderType" } }, "required": [ "reminder_type", "content", "due_at" ], "title": "ReminderIn", "type": "object" }, "ReminderItemSchema": { "description": "到期提醒项", "properties": { "case_id": { "title": "Case Id", "type": "integer" }, "case_name": { "title": "Case Name", "type": "string" }, "current_stage": { "title": "Current Stage", "type": "string" }, "days_until_due": { "title": "Days Until Due", "type": "integer" }, "next_due_date": { "format": "date", "title": "Next Due Date", "type": "string" }, "record_id": { "title": "Record Id", "type": "integer" } }, "required": [ "record_id", "case_id", "case_name", "current_stage", "next_due_date", "days_until_due" ], "title": "ReminderItemSchema", "type": "object" }, "ReminderLiteOut": { "properties": { "case_log_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Case Log Id" }, "content": { "title": "Content", "type": "string" }, "contract_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Contract Id" }, "created_at": { "title": "Created At", "type": "string" }, "due_at": { "title": "Due At", "type": "string" }, "id": { "title": "Id", "type": "integer" }, "metadata": { "additionalProperties": true, "title": "Metadata", "type": "object" }, "reminder_type": { "title": "Reminder Type", "type": "string" }, "reminder_type_label": { "title": "Reminder Type Label", "type": "string" }, "updated_at": { "title": "Updated At", "type": "string" } }, "required": [ "id", "reminder_type", "reminder_type_label", "content", "due_at", "created_at", "updated_at" ], "title": "ReminderLiteOut", "type": "object" }, "ReminderOut": { "properties": { "case_log_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Case Log Id" }, "content": { "title": "Content", "type": "string" }, "contract_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Contract Id" }, "created_at": { "title": "Created At", "type": "string" }, "due_at": { "title": "Due At", "type": "string" }, "id": { "title": "Id", "type": "integer" }, "metadata": { "additionalProperties": true, "title": "Metadata", "type": "object" }, "reminder_type": { "title": "Reminder Type", "type": "string" }, "reminder_type_label": { "title": "Reminder Type Label", "type": "string" }, "updated_at": { "title": "Updated At", "type": "string" } }, "required": [ "id", "reminder_type", "reminder_type_label", "content", "due_at", "created_at", "updated_at" ], "title": "ReminderOut", "type": "object" }, "ReminderType": { "enum": [ "hearing", "asset_preservation_expires", "evidence_deadline", "appeal_deadline", "statute_limitations", "payment_deadline", "submission_deadline", "other" ], "title": "ReminderType", "type": "string" }, "ReminderTypeItem": { "properties": { "label": { "title": "Label", "type": "string" }, "value": { "title": "Value", "type": "string" } }, "required": [ "value", "label" ], "title": "ReminderTypeItem", "type": "object" }, "ReminderUpdate": { "properties": { "case_log_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Case Log Id" }, "content": { "anyOf": [ { "maxLength": 255, "type": "string" }, { "type": "null" } ], "title": "Content" }, "contract_id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Contract Id" }, "due_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Due At" }, "metadata": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "Metadata" }, "reminder_type": { "anyOf": [ { "$ref": "#/components/schemas/ReminderType" }, { "type": "null" } ] } }, "title": "ReminderUpdate", "type": "object" }, "ReorderItemsRequest": { "description": "重新排序请求", "properties": { "item_ids": { "items": { "type": "integer" }, "title": "Item Ids", "type": "array" } }, "required": [ "item_ids" ], "title": "ReorderItemsRequest", "type": "object" }, "ReorderItemsResponse": { "description": "重新排序响应", "properties": { "message": { "default": "", "title": "Message", "type": "string" }, "success": { "title": "Success", "type": "boolean" } }, "required": [ "success" ], "title": "ReorderItemsResponse", "type": "object" }, "RetrievalHitV1": { "properties": { "conflicts": { "items": { "type": "string" }, "title": "Conflicts", "type": "array" }, "court": { "title": "Court", "type": "string" }, "decision": { "enum": [ "accept", "review", "reject" ], "title": "Decision", "type": "string" }, "doc_id": { "title": "Doc Id", "type": "string" }, "judgment_date": { "title": "Judgment Date", "type": "string" }, "score": { "title": "Score", "type": "number" }, "snippets": { "allOf": [ { "$ref": "#/components/schemas/AgentSearchSnippetsOut" } ] }, "source_url": { "title": "Source Url", "type": "string" }, "subscores": { "$ref": "#/components/schemas/AgentSearchSubscoresOut" }, "title": { "title": "Title", "type": "string" }, "why_selected": { "title": "Why Selected", "type": "string" } }, "required": [ "doc_id", "title", "court", "judgment_date", "score", "decision", "subscores", "why_selected", "source_url" ], "title": "RetrievalHitV1", "type": "object" }, "Schema": { "properties": {}, "title": "Schema", "type": "object" }, "ScreenshotOut": { "properties": { "capture_time_seconds": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Capture Time Seconds" }, "created_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Created At" }, "id": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Id" }, "image_url": { "title": "Image Url", "type": "string" }, "note": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "备注" }, "ordering": { "default": 0, "title": "顺序", "type": "integer" }, "project": { "title": "项目", "type": "integer" }, "sha256": { "anyOf": [ { "maxLength": 64, "type": "string" }, { "type": "null" } ], "title": "内容哈希" }, "title": { "anyOf": [ { "maxLength": 255, "type": "string" }, { "type": "null" } ], "title": "标题" } }, "required": [ "image_url", "capture_time_seconds", "created_at", "project" ], "title": "ScreenshotOut", "type": "object" }, "ScreenshotReorderIn": { "properties": { "screenshot_ids": { "items": { "type": "string" }, "title": "Screenshot Ids", "type": "array" } }, "required": [ "screenshot_ids" ], "title": "ScreenshotReorderIn", "type": "object" }, "ScreenshotUpdate": { "properties": { "note": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Note" }, "title": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Title" } }, "title": "ScreenshotUpdate", "type": "object" }, "SegmentDetailResponse": { "description": "利息分段明细", "properties": { "days": { "title": "Days", "type": "integer" }, "end_date": { "format": "date", "title": "End Date", "type": "string" }, "interest": { "title": "Interest", "type": "number" }, "rate": { "title": "Rate", "type": "number" }, "start_date": { "format": "date", "title": "Start Date", "type": "string" } }, "required": [ "start_date", "end_date", "days", "rate", "interest" ], "title": "SegmentDetailResponse", "type": "object" }, "SegmentOut": { "properties": { "confidence": { "title": "Confidence", "type": "number" }, "filename": { "title": "Filename", "type": "string" }, "id": { "title": "Id", "type": "integer" }, "order": { "title": "Order", "type": "integer" }, "page_end": { "title": "Page End", "type": "integer" }, "page_start": { "title": "Page Start", "type": "integer" }, "review_flag": { "title": "Review Flag", "type": "string" }, "review_flag_label": { "title": "Review Flag Label", "type": "string" }, "segment_label": { "title": "Segment Label", "type": "string" }, "segment_type": { "title": "Segment Type", "type": "string" }, "source_method": { "title": "Source Method", "type": "string" } }, "required": [ "id", "order", "page_start", "page_end", "segment_type", "segment_label", "filename", "confidence", "review_flag", "review_flag_label", "source_method" ], "title": "SegmentOut", "type": "object" }, "SessionOut": { "properties": { "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "error_message": { "title": "Error Message", "type": "string" }, "id": { "title": "Id", "type": "integer" }, "status": { "title": "Status", "type": "string" } }, "required": [ "id", "status", "error_message", "created_at" ], "title": "SessionOut", "type": "object" }, "SettlementRequest": { "description": "和解协议生成请求", "properties": { "acceleration_clause": { "title": "Acceleration Clause", "type": "string" }, "arbitration_institution": { "default": "", "title": "Arbitration Institution", "type": "string" }, "case_id": { "title": "Case Id", "type": "integer" }, "creditor_address": { "title": "Creditor Address", "type": "string" }, "creditor_id_number": { "title": "Creditor Id Number", "type": "string" }, "creditor_name": { "title": "Creditor Name", "type": "string" }, "debtor_address": { "title": "Debtor Address", "type": "string" }, "debtor_id_number": { "title": "Debtor Id Number", "type": "string" }, "debtor_name": { "title": "Debtor Name", "type": "string" }, "dispute_resolution": { "title": "Dispute Resolution", "type": "string" }, "installments": { "items": { "$ref": "#/components/schemas/InstallmentPlanSchema" }, "title": "Installments", "type": "array" }, "penalty_rate": { "title": "Penalty Rate", "type": "number" }, "total_debt": { "title": "Total Debt", "type": "number" } }, "required": [ "case_id", "creditor_name", "creditor_address", "creditor_id_number", "debtor_name", "debtor_address", "debtor_id_number", "total_debt", "installments", "acceleration_clause", "penalty_rate", "dispute_resolution" ], "title": "SettlementRequest", "type": "object" }, "SpendingRestrictionRequest": { "description": "限制高消费申请书请求", "properties": { "applicant_address": { "title": "Applicant Address", "type": "string" }, "applicant_name": { "title": "Applicant Name", "type": "string" }, "case_id": { "title": "Case Id", "type": "integer" }, "execution_case_number": { "title": "Execution Case Number", "type": "string" }, "legal_representative": { "title": "Legal Representative", "type": "string" }, "outstanding_amount": { "title": "Outstanding Amount", "type": "number" }, "respondent_address": { "title": "Respondent Address", "type": "string" }, "respondent_name": { "title": "Respondent Name", "type": "string" } }, "required": [ "case_id", "applicant_name", "applicant_address", "respondent_name", "respondent_address", "legal_representative", "execution_case_number", "outstanding_amount" ], "title": "SpendingRestrictionRequest", "type": "object" }, "StartCollectionRequest": { "description": "启动催收请求", "properties": { "case_id": { "title": "Case Id", "type": "integer" }, "remarks": { "default": "", "title": "Remarks", "type": "string" }, "start_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Start Date" } }, "required": [ "case_id" ], "title": "StartCollectionRequest", "type": "object" }, "StatisticsReportOut": { "description": "统计报告输出Schema", "properties": { "account_breakdown": { "description": "按账号分组统计", "items": { "additionalProperties": true, "type": "object" }, "title": "Account Breakdown", "type": "array" }, "daily_trend": { "description": "每日趋势", "items": { "additionalProperties": true, "type": "object" }, "title": "Daily Trend", "type": "array" }, "period": { "additionalProperties": true, "description": "统计周期信息", "title": "Period", "type": "object" }, "real_time_metrics": { "additionalProperties": true, "description": "实时指标", "title": "Real Time Metrics", "type": "object" }, "site_breakdown": { "description": "按网站分组统计", "items": { "additionalProperties": true, "type": "object" }, "title": "Site Breakdown", "type": "array" }, "status_breakdown": { "description": "按状态分组统计", "items": { "additionalProperties": true, "type": "object" }, "title": "Status Breakdown", "type": "array" }, "summary": { "additionalProperties": true, "description": "汇总统计", "title": "Summary", "type": "object" } }, "required": [ "period", "summary", "status_breakdown", "site_breakdown", "account_breakdown", "daily_trend", "real_time_metrics" ], "title": "StatisticsReportOut", "type": "object" }, "StrategyRequest": { "description": "策略推荐请求", "properties": { "evidence_score": { "title": "Evidence Score", "type": "number" }, "local_avg_salary": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Local Avg Salary" }, "principal_amount": { "title": "Principal Amount", "type": "number" }, "solvency_rating": { "default": "unknown", "title": "Solvency Rating", "type": "string" }, "willing_to_mediate": { "default": false, "title": "Willing To Mediate", "type": "boolean" } }, "required": [ "principal_amount", "evidence_score" ], "title": "StrategyRequest", "type": "object" }, "StrategyResponseSchema": { "description": "策略推荐响应", "properties": { "applicable_conditions": { "title": "Applicable Conditions", "type": "string" }, "estimated_duration": { "title": "Estimated Duration", "type": "string" }, "preservation_reason": { "title": "Preservation Reason", "type": "string" }, "recommendation_reason": { "title": "Recommendation Reason", "type": "string" }, "strategy_type": { "title": "Strategy Type", "type": "string" }, "suggest_preservation": { "title": "Suggest Preservation", "type": "boolean" } }, "required": [ "strategy_type", "recommendation_reason", "estimated_duration", "applicable_conditions", "suggest_preservation", "preservation_reason" ], "title": "StrategyResponseSchema", "type": "object" }, "SummaryResponse": { "description": "核心指标响应", "properties": { "avg_recovery_cycle": { "title": "Avg Recovery Cycle", "type": "integer" }, "query_period": { "$ref": "#/components/schemas/QueryPeriodSchema" }, "recovered_case_count": { "title": "Recovered Case Count", "type": "integer" }, "recovery_rate": { "title": "Recovery Rate", "type": "string" }, "total_recovery": { "title": "Total Recovery", "type": "string" }, "unrecovered_case_count": { "title": "Unrecovered Case Count", "type": "integer" } }, "required": [ "total_recovery", "recovery_rate", "avg_recovery_cycle", "recovered_case_count", "unrecovered_case_count", "query_period" ], "title": "SummaryResponse", "type": "object" }, "SupervisingAuthorityIn": { "properties": { "authority_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authority Type" }, "name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Name" } }, "title": "SupervisingAuthorityIn", "type": "object" }, "SupervisingAuthorityOut": { "properties": { "authority_type": { "anyOf": [ { "maxLength": 32, "type": "string" }, { "type": "null" } ], "default": "trial", "title": "性质" }, "authority_type_display": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authority Type Display" }, "created_at": { "format": "date-time", "title": "创建时间", "type": "string" }, "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "ID" }, "name": { "anyOf": [ { "maxLength": 255, "type": "string" }, { "type": "null" } ], "title": "名称" } }, "required": [ "authority_type_display", "created_at" ], "title": "SupervisingAuthorityOut", "type": "object" }, "SupplementaryAgreementIn": { "description": "补充协议创建输入 Schema", "properties": { "contract_id": { "title": "Contract Id", "type": "integer" }, "name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Name" }, "parties": { "anyOf": [ { "items": { "$ref": "#/components/schemas/SupplementaryAgreementPartyInput" }, "type": "array" }, { "type": "null" } ], "title": "Parties" }, "party_ids": { "anyOf": [ { "items": { "type": "integer" }, "type": "array" }, { "type": "null" } ], "title": "Party Ids" } }, "required": [ "contract_id" ], "title": "SupplementaryAgreementIn", "type": "object" }, "SupplementaryAgreementInput": { "description": "补充协议输入(用于嵌套在合同创建/更新中)", "properties": { "name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Name" }, "parties": { "anyOf": [ { "items": { "$ref": "#/components/schemas/SupplementaryAgreementPartyInput" }, "type": "array" }, { "type": "null" } ], "title": "Parties" }, "party_ids": { "anyOf": [ { "items": { "type": "integer" }, "type": "array" }, { "type": "null" } ], "title": "Party Ids" } }, "title": "SupplementaryAgreementInput", "type": "object" }, "SupplementaryAgreementOut": { "description": "补充协议输出 Schema", "properties": { "contract": { "title": "合同", "type": "integer" }, "created_at": { "format": "date-time", "title": "创建时间", "type": "string" }, "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "ID" }, "name": { "anyOf": [ { "maxLength": 200, "type": "string" }, { "type": "null" } ], "title": "补充协议名称" }, "parties": { "items": { "$ref": "#/components/schemas/SupplementaryAgreementPartyOut" }, "title": "Parties", "type": "array" }, "updated_at": { "format": "date-time", "title": "修改时间", "type": "string" } }, "required": [ "parties", "contract", "created_at", "updated_at" ], "title": "SupplementaryAgreementOut", "type": "object" }, "SupplementaryAgreementPartyInput": { "description": "补充协议当事人输入(用于嵌套)", "properties": { "client_id": { "title": "Client Id", "type": "integer" }, "role": { "default": "PRINCIPAL", "title": "Role", "type": "string" } }, "required": [ "client_id" ], "title": "SupplementaryAgreementPartyInput", "type": "object" }, "SupplementaryAgreementPartyOut": { "description": "补充协议当事人输出 Schema", "properties": { "client": { "title": "当事人", "type": "integer" }, "client_detail": { "$ref": "#/components/schemas/ClientLiteOut" }, "client_name": { "title": "Client Name", "type": "string" }, "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "ID" }, "is_our_client": { "title": "Is Our Client", "type": "boolean" }, "role": { "default": "PRINCIPAL", "maxLength": 16, "title": "身份", "type": "string" }, "role_label": { "title": "Role Label", "type": "string" } }, "required": [ "client_detail", "client_name", "is_our_client", "role_label", "client" ], "title": "SupplementaryAgreementPartyOut", "type": "object" }, "SupplementaryAgreementUpdate": { "description": "补充协议更新输入 Schema", "properties": { "name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Name" }, "parties": { "anyOf": [ { "items": { "$ref": "#/components/schemas/SupplementaryAgreementPartyInput" }, "type": "array" }, { "type": "null" } ], "title": "Parties" }, "party_ids": { "anyOf": [ { "items": { "type": "integer" }, "type": "array" }, { "type": "null" } ], "title": "Party Ids" } }, "title": "SupplementaryAgreementUpdate", "type": "object" }, "TaskCreatedOut": { "properties": { "contract_title": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Contract Title" }, "parties": { "additionalProperties": { "type": "string" }, "default": {}, "title": "Parties", "type": "object" }, "status": { "title": "Status", "type": "string" }, "task_id": { "format": "uuid", "title": "Task Id", "type": "string" } }, "required": [ "task_id", "status" ], "title": "TaskCreatedOut", "type": "object" }, "TaskStatusOut": { "properties": { "current_step": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Current Step" }, "error_message": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Error Message" }, "output_filename": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Output Filename" }, "status": { "title": "Status", "type": "string" }, "task_id": { "format": "uuid", "title": "Task Id", "type": "string" } }, "required": [ "task_id", "status" ], "title": "TaskStatusOut", "type": "object" }, "TaskStatusResponseSchema": { "description": "任务状态响应", "properties": { "binding": { "anyOf": [ { "$ref": "#/components/schemas/BindingResultSchema" }, { "type": "null" } ] }, "created_at": { "title": "Created At", "type": "string" }, "error_message": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Error Message" }, "file_path": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "File Path" }, "finished_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Finished At" }, "recognition": { "anyOf": [ { "$ref": "#/components/schemas/RecognitionResultSchema" }, { "type": "null" } ] }, "status": { "title": "Status", "type": "string" }, "task_id": { "title": "Task Id", "type": "integer" } }, "required": [ "task_id", "status", "created_at" ], "title": "TaskStatusResponseSchema", "type": "object" }, "TaskSubmitResponseSchema": { "description": "任务提交响应", "properties": { "message": { "description": "提示消息", "title": "Message", "type": "string" }, "status": { "description": "任务状态", "title": "Status", "type": "string" }, "task_id": { "description": "任务ID", "title": "Task Id", "type": "integer" } }, "required": [ "task_id", "status", "message" ], "title": "TaskSubmitResponseSchema", "type": "object" }, "TeamIn": { "properties": { "law_firm_id": { "title": "Law Firm Id", "type": "integer" }, "name": { "title": "Name", "type": "string" }, "team_type": { "title": "Team Type", "type": "string" } }, "required": [ "name", "team_type", "law_firm_id" ], "title": "TeamIn", "type": "object" }, "TeamOut": { "properties": { "id": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "ID" }, "law_firm": { "title": "所属律所", "type": "integer" }, "name": { "maxLength": 255, "title": "团队名称", "type": "string" }, "team_type": { "maxLength": 16, "title": "团队类型", "type": "string" } }, "required": [ "name", "team_type", "law_firm" ], "title": "TeamOut", "type": "object" }, "TimelineNodeSchema": { "description": "时间线节点", "properties": { "is_completed": { "title": "Is Completed", "type": "boolean" }, "planned_date": { "format": "date", "title": "Planned Date", "type": "string" }, "stage": { "title": "Stage", "type": "string" }, "stage_display": { "title": "Stage Display", "type": "string" } }, "required": [ "stage", "stage_display", "planned_date", "is_completed" ], "title": "TimelineNodeSchema", "type": "object" }, "TokenObtainPairInputSchema": { "properties": { "password": { "format": "password", "title": "Password", "type": "string", "writeOnly": true }, "username": { "description": "必填;长度为150个字符或以下;只能包含字母、数字、特殊字符“@”、“.”、“-”和“_”。", "maxLength": 150, "title": "用户名", "type": "string" } }, "required": [ "password", "username" ], "title": "TokenObtainPairInputSchema", "type": "object" }, "TokenObtainPairOutputSchema": { "properties": { "access": { "title": "Access", "type": "string" }, "refresh": { "title": "Refresh", "type": "string" }, "username": { "description": "必填;长度为150个字符或以下;只能包含字母、数字、特殊字符“@”、“.”、“-”和“_”。", "maxLength": 150, "title": "用户名", "type": "string" } }, "required": [ "username", "refresh", "access" ], "title": "TokenObtainPairOutputSchema", "type": "object" }, "TokenRefreshInputSchema": { "properties": { "refresh": { "title": "Refresh", "type": "string" } }, "required": [ "refresh" ], "title": "TokenRefreshInputSchema", "type": "object" }, "TokenRefreshOutputSchema": { "properties": { "access": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Access" }, "refresh": { "title": "Refresh", "type": "string" } }, "required": [ "refresh", "access" ], "title": "TokenRefreshOutputSchema", "type": "object" }, "TokenVerifyInputSchema": { "properties": { "token": { "title": "Token", "type": "string" } }, "required": [ "token" ], "title": "TokenVerifyInputSchema", "type": "object" }, "TransactionItemSchema": { "description": "交易明细项", "properties": { "amount": { "title": "Amount", "type": "number" }, "description": { "title": "Description", "type": "string" }, "transaction_date": { "format": "date", "title": "Transaction Date", "type": "string" } }, "required": [ "transaction_date", "description", "amount" ], "title": "TransactionItemSchema", "type": "object" }, "TrendItemResponse": { "description": "趋势项", "properties": { "amount": { "title": "Amount", "type": "string" }, "count": { "title": "Count", "type": "integer" }, "label": { "title": "Label", "type": "string" }, "recovery_rate": { "title": "Recovery Rate", "type": "string" } }, "required": [ "label", "amount", "count", "recovery_rate" ], "title": "TrendItemResponse", "type": "object" }, "TrendQuery": { "description": "趋势查询参数", "properties": { "dimension": { "default": "month", "title": "Dimension", "type": "string" }, "end_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "End Date" }, "start_date": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Start Date" } }, "title": "TrendQuery", "type": "object" }, "TrendResponse": { "description": "趋势响应", "properties": { "items": { "items": { "$ref": "#/components/schemas/TrendItemResponse" }, "title": "Items", "type": "array" }, "query_period": { "$ref": "#/components/schemas/QueryPeriodSchema" } }, "required": [ "items", "query_period" ], "title": "TrendResponse", "type": "object" }, "UpdateInfoRequestSchema": { "description": "更新识别信息请求", "properties": { "case_number": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "案号", "title": "Case Number" }, "key_time": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "关键时间(ISO格式)", "title": "Key Time" } }, "title": "UpdateInfoRequestSchema", "type": "object" }, "UpdateInfoResponseSchema": { "description": "更新识别信息响应", "properties": { "case_number": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "更新后的案号", "title": "Case Number" }, "key_time": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "更新后的关键时间", "title": "Key Time" }, "message": { "description": "消息", "title": "Message", "type": "string" }, "success": { "description": "是否成功", "title": "Success", "type": "boolean" } }, "required": [ "success", "message" ], "title": "UpdateInfoResponseSchema", "type": "object" }, "UpdateLawyersIn": { "description": "更新合同律师指派输入 Schema", "properties": { "lawyer_ids": { "items": { "type": "integer" }, "title": "Lawyer Ids", "type": "array" } }, "required": [ "lawyer_ids" ], "title": "UpdateLawyersIn", "type": "object" } }, "securitySchemes": { "JWTAuth": { "scheme": "bearer", "type": "http" }, "JWTOrSessionAuth": { "scheme": "bearer", "type": "http" } } }, "info": { "description": "律师事务所案件、合同、客户管理系统", "title": "法穿AI案件管理系统 API", "version": "1.0.0" }, "openapi": "3.1.0", "paths": { "/api/v1/": { "get": { "description": "API 根路径,返回基本信息", "operationId": "apiSystem_api_api_root", "parameters": [], "responses": { "200": { "description": "OK" } }, "summary": "Api Root", "tags": [ "系统" ] } }, "/api/v1/automation/ai/ollama": { "post": { "description": "Ollama AI接口", "operationId": "apps_automation_api_main_api_ai_ollama", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OllamaChatIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OllamaChatOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Ai Ollama", "tags": [ "AI工具" ] } }, "/api/v1/automation/auto-namer/process": { "post": { "description": "自动命名工具API", "operationId": "apps_automation_api_auto_namer_api_auto_namer_process", "parameters": [ { "in": "query", "name": "prompt", "required": false, "schema": { "default": "请你作为一名专业的文件管理员,按照以下严格规则为我提供的法律文件命名。\n\n1. **命名结构**:`[文件核心类型]([案件双方])_[年月日]收`\n * 方括号 `[]` 中的内容为需要你填写的变量。\n * 书名号 `“”` 仅用于包裹文件标题,本身不是文件名的一部分。\n * 括号 `()` 和下划线 `_` 是文件名的固定组成部分。\n\n2. **文件核心类型**:\n * 从文件标题中提取最关键的法律文书类型。\n * 例如:`“交纳诉讼费用通知书”` -> `交纳诉讼费用通知书`;`“民事判决书(2023)粤01民终1234号”` -> `民事判决书`。\n * 常见类型包括但不限于:`传票`、`通知书`、`判决书`、`裁定书`、`调解书`、`决定书`、`支付令`、\n `交纳诉讼费用通知书`、`反驳意见`、`质证意见`、`应诉通知书`、`举证通知书`等。\n\n3. **案件双方**:\n * 格式为 `[甲方]与[乙方]案件`。\n * `甲方`和`乙方`是案件的核心当事人。通常是原告与被告、第三人,或申请人与被申请人,上诉人与被上诉人、原审第三人等。\n * 请从文件正文中提取完整、准确的姓名或单位全称。\n * 示例:文件中提到“原告:王开心;被告:汪猪猪;被告:大狗狗” -> `王开心与汪猪猪、大狗狗案件`。\n * 示例2:文件中提到“原告:王开心;被告:汪猪猪;第三人:小笨蛋” -> `王开心与汪猪猪、大笨蛋案件`。\n\n4. **年月日**:\n * 使用今天的系统日期,格式为8位数字 `YYYYMMDD`。\n * **当前日期:20260404**\n * 你必须使用上面提供的这个日期,无需自行更改或计算。\n\n5. **命名示例**:\n * 输入文件标题为“交纳诉讼费用通知书”,当事人为“王开心”与“汪猪猪” -> `交纳诉讼费用通知书(王开心与汪猪猪案件)_20251113收` # noqa: E501\n * 输入文件标题为“民事判决书”,当事人为“广州市西山咀百货有限公司”诉“佛山市浦满贸易有限公司、梁伟龙、张俊萱” -> `民事判决书(广州市西山咀百货有限公司与佛山市浦满贸易有限公司、梁伟龙、张俊萱案件)_20251111收` # noqa: E501\n\n6. **输出要求**:\n * 请严格按照上述规则生成一个唯一的文件名。\n * 直接返回最终的文件名字符串,不要添加任何额外的解释、说明、标点符号或代码块标记。\n * 请删除所有空格。", "title": "Prompt", "type": "string" } }, { "in": "query", "name": "model", "required": false, "schema": { "default": "qwen3:0.6b", "title": "Model", "type": "string" } }, { "in": "query", "name": "limit", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Limit" } }, { "in": "query", "name": "preview_page", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Preview Page" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "properties": { "file": { "format": "binary", "title": "File", "type": "string" } }, "required": [ "file" ], "title": "FileParams", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AutoToolProcessOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Auto Namer Process", "tags": [ "自动命名" ] } }, "/api/v1/automation/auto-namer/process-by-path": { "post": { "description": "通过路径处理自动命名工具", "operationId": "apps_automation_api_auto_namer_api_auto_namer_process_by_path", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AutoToolProcessIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AutoToolProcessOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Auto Namer Process By Path", "tags": [ "自动命名" ] } }, "/api/v1/automation/captcha/recognize": { "post": { "description": "识别验证码\n\n接收 Base64 编码的图片,返回识别结果。\n\n**支持的图片格式**: PNG, JPEG, GIF, BMP\n\n**图片大小限制**: 最大 5MB\n\n**请求示例**:\n```json\n{\n \"image_base64\": \"iVBORw0KGgoAAAANSUhEUgAAAAUA...\"\n}\n```\n\n**成功响应示例**:\n```json\n{\n \"success\": true,\n \"text\": \"AB12\",\n \"processing_time\": 0.234,\n \"error\": null\n}\n```\n\n**失败响应示例**:\n```json\n{\n \"success\": false,\n \"text\": null,\n \"processing_time\": 0.012,\n \"error\": \"图片格式不支持\"\n}\n```\n\nArgs:\n request: HTTP 请求对象\n payload: 验证码识别请求数据\n\nReturns:\n CaptchaRecognizeOut: 识别结果,包含成功状态、文本、处理时间和错误信息", "operationId": "apps_automation_api_captcha_recognition_api_recognize_captcha", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaptchaRecognizeIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaptchaRecognizeOut" } } }, "description": "OK" } }, "summary": "Recognize Captcha", "tags": [ "验证码识别" ] } }, "/api/v1/automation/config": { "get": { "description": "获取当前配置信息", "operationId": "apps_automation_api_main_api_get_config", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Config", "tags": [ "AI工具" ] } }, "/api/v1/automation/court-sms": { "get": { "description": "查询短信列表\n\n支持按状态、类型、是否关联案件、日期范围筛选", "operationId": "apps_automation_api_court_sms_api_list_sms", "parameters": [ { "in": "query", "name": "status", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Status" } }, { "in": "query", "name": "sms_type", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Sms Type" } }, { "in": "query", "name": "has_case", "required": false, "schema": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Has Case" } }, { "in": "query", "name": "date_from", "required": false, "schema": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Date From" } }, { "in": "query", "name": "date_to", "required": false, "schema": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Date To" } }, { "in": "query", "name": "page", "required": false, "schema": { "default": 1, "minimum": 1, "title": "Page", "type": "integer" } }, { "in": "query", "name": "page_size", "required": false, "schema": { "anyOf": [ { "minimum": 1, "type": "integer" }, { "type": "null" } ], "title": "Page Size" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PagedCourtSMSListOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Sms", "tags": [ "法院短信处理" ] }, "post": { "description": "提交法院短信\n\n支持短信转发器直接调用,创建记录并触发异步处理", "operationId": "apps_automation_api_court_sms_api_submit_sms", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CourtSMSSubmitIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CourtSMSSubmitOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Submit Sms", "tags": [ "法院短信处理" ] } }, "/api/v1/automation/court-sms/form": { "post": { "description": "提交法院短信(表单格式)\n\n支持 form-data 格式提交,便于简单的 HTTP 客户端调用", "operationId": "apps_automation_api_court_sms_api_submit_sms_form", "parameters": [], "requestBody": { "content": { "application/x-www-form-urlencoded": { "schema": { "properties": { "content": { "title": "Content", "type": "string" }, "received_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Received At" }, "sender": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Sender" } }, "required": [ "content" ], "title": "FormParams", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CourtSMSSubmitOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Submit Sms Form", "tags": [ "法院短信处理" ] } }, "/api/v1/automation/court-sms/{sms_id}": { "get": { "description": "查询短信处理详情\n\n返回短信的完整处理状态和关联信息", "operationId": "apps_automation_api_court_sms_api_get_sms_detail", "parameters": [ { "in": "path", "name": "sms_id", "required": true, "schema": { "title": "Sms Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CourtSMSDetailOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Sms Detail", "tags": [ "法院短信处理" ] } }, "/api/v1/automation/court-sms/{sms_id}/assign-case": { "post": { "description": "手动指定案件\n\n当自动匹配失败时,管理员可以手动指定案件", "operationId": "apps_automation_api_court_sms_api_assign_case", "parameters": [ { "in": "path", "name": "sms_id", "required": true, "schema": { "title": "Sms Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CourtSMSAssignCaseIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CourtSMSAssignCaseOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Assign Case", "tags": [ "法院短信处理" ] } }, "/api/v1/automation/court-sms/{sms_id}/retry": { "post": { "description": "重新处理短信\n\n重置状态并重新执行完整处理流程", "operationId": "apps_automation_api_court_sms_api_retry_processing", "parameters": [ { "in": "path", "name": "sms_id", "required": true, "schema": { "title": "Sms Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CourtSMSSubmitOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Retry Processing", "tags": [ "法院短信处理" ] } }, "/api/v1/automation/document-delivery/query": { "post": { "description": "手动触发文书查询\n\n立即执行文书查询和下载,返回处理结果", "operationId": "apps_automation_api_document_delivery_api_manual_query", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentDeliveryQueryIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentDeliveryQueryOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Manual Query", "tags": [ "文书送达自动下载" ] } }, "/api/v1/automation/document-delivery/schedules": { "get": { "description": "查询定时任务列表\n\n支持按凭证ID和启用状态筛选", "operationId": "apps_automation_api_document_delivery_api_list_schedules", "parameters": [ { "in": "query", "name": "credential_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Credential Id" } }, { "in": "query", "name": "is_active", "required": false, "schema": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Is Active" } }, { "in": "query", "name": "page", "required": false, "schema": { "default": 1, "minimum": 1, "title": "Page", "type": "integer" } }, { "in": "query", "name": "page_size", "required": false, "schema": { "anyOf": [ { "minimum": 1, "type": "integer" }, { "type": "null" } ], "title": "Page Size" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PagedDocumentDeliveryScheduleOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Schedules", "tags": [ "文书送达自动下载" ] }, "post": { "description": "创建定时任务\n\n为指定的账号凭证创建文书查询定时任务", "operationId": "apps_automation_api_document_delivery_api_create_schedule", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentDeliveryScheduleCreateIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentDeliveryScheduleOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Schedule", "tags": [ "文书送达自动下载" ] } }, "/api/v1/automation/document-delivery/schedules/{schedule_id}": { "delete": { "description": "删除定时任务\n\n删除指定的定时任务配置", "operationId": "apps_automation_api_document_delivery_api_delete_schedule", "parameters": [ { "in": "path", "name": "schedule_id", "required": true, "schema": { "title": "Schedule Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Schedule", "tags": [ "文书送达自动下载" ] }, "get": { "description": "查询单个定时任务详情\n\n返回指定定时任务的详细配置信息", "operationId": "apps_automation_api_document_delivery_api_get_schedule", "parameters": [ { "in": "path", "name": "schedule_id", "required": true, "schema": { "title": "Schedule Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentDeliveryScheduleOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Schedule", "tags": [ "文书送达自动下载" ] }, "put": { "description": "更新定时任务\n\n更新指定定时任务的配置参数", "operationId": "apps_automation_api_document_delivery_api_update_schedule", "parameters": [ { "in": "path", "name": "schedule_id", "required": true, "schema": { "title": "Schedule Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentDeliveryScheduleUpdateIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentDeliveryScheduleOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Schedule", "tags": [ "文书送达自动下载" ] } }, "/api/v1/automation/document-processor/process": { "post": { "description": "文档处理API", "operationId": "apps_automation_api_document_processor_api_process_document", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentProcessIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentProcessOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Process Document", "tags": [ "文档处理" ] } }, "/api/v1/automation/document-processor/process-by-path": { "post": { "description": "通过路径处理文档", "operationId": "apps_automation_api_document_processor_api_process_document_by_path", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentProcessIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentProcessOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Process Document By Path", "tags": [ "文档处理" ] } }, "/api/v1/automation/file/upload": { "post": { "description": "通用文件上传和预处理API", "operationId": "apps_automation_api_main_api_upload_file", "parameters": [ { "in": "query", "name": "limit", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Limit" } }, { "in": "query", "name": "preview_page", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Preview Page" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "properties": { "file": { "format": "binary", "title": "File", "type": "string" } }, "required": [ "file" ], "title": "FileParams", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": true, "title": "Response", "type": "object" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Upload File", "tags": [ "AI工具" ] } }, "/api/v1/automation/performance/cache-stats": { "get": { "description": "获取缓存使用统计信息", "operationId": "apps_automation_api_performance_monitor_api_get_cache_statistics", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "获取缓存统计", "tags": [ "Main API", "性能监控" ] } }, "/api/v1/automation/performance/cache/clear": { "delete": { "description": "清除所有Token相关缓存", "operationId": "apps_automation_api_performance_monitor_api_clear_cache", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "清除缓存", "tags": [ "Main API", "性能监控" ] } }, "/api/v1/automation/performance/cache/warm-up": { "post": { "description": "预热指定网站的缓存", "operationId": "apps_automation_api_performance_monitor_api_warm_up_cache", "parameters": [ { "description": "网站名称", "in": "query", "name": "site_name", "required": true, "schema": { "description": "网站名称", "title": "Site Name", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "预热缓存", "tags": [ "Main API", "性能监控" ] } }, "/api/v1/automation/performance/health": { "get": { "description": "检查Token获取服务的健康状态", "operationId": "apps_automation_api_performance_monitor_api_health_check", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "健康检查", "tags": [ "Main API", "性能监控" ] } }, "/api/v1/automation/performance/metrics": { "get": { "description": "获取Token获取服务的实时性能指标", "operationId": "apps_automation_api_performance_monitor_api_get_performance_metrics", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PerformanceMetricsOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "获取实时性能指标", "tags": [ "Main API", "性能监控" ] } }, "/api/v1/automation/performance/metrics/reset": { "post": { "description": "重置所有性能监控指标", "operationId": "apps_automation_api_performance_monitor_api_reset_performance_metrics", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "重置性能指标", "tags": [ "Main API", "性能监控" ] } }, "/api/v1/automation/performance/optimize-concurrency": { "post": { "description": "分析当前使用情况并提供并发优化建议", "operationId": "apps_automation_api_performance_monitor_api_optimize_concurrency", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "优化并发配置", "tags": [ "Main API", "性能监控" ] } }, "/api/v1/automation/performance/resource-usage": { "get": { "description": "获取并发资源使用情况", "operationId": "apps_automation_api_performance_monitor_api_get_resource_usage", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "获取资源使用情况", "tags": [ "Main API", "性能监控" ] } }, "/api/v1/automation/performance/resources/cleanup": { "post": { "description": "清理并发资源和过期锁", "operationId": "apps_automation_api_performance_monitor_api_cleanup_resources", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "清理资源", "tags": [ "Main API", "性能监控" ] } }, "/api/v1/automation/performance/statistics": { "get": { "description": "获取Token获取服务的统计报告", "operationId": "apps_automation_api_performance_monitor_api_get_statistics_report", "parameters": [ { "description": "统计天数", "in": "query", "name": "days", "required": false, "schema": { "default": 7, "description": "统计天数", "maximum": 90, "minimum": 1, "title": "Days", "type": "integer" } }, { "description": "网站名称过滤", "in": "query", "name": "site_name", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "网站名称过滤", "title": "Site Name" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StatisticsReportOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "获取统计报告", "tags": [ "Main API", "性能监控" ] } }, "/api/v1/automation/preservation-quotes": { "get": { "description": "列表查询询价任务\n\n分页查询询价任务列表,支持按状态筛选。\n\n**查询参数:**\n- page: 页码(从 1 开始,默认 1)\n- page_size: 每页数量(默认 20,最大 100)\n- status: 状态筛选(可选)\n - pending: 等待中\n - running: 执行中\n - success: 成功\n - partial_success: 部分成功\n - failed: 失败\n\n**响应:**\n返回分页的任务列表,包含总数、页码等信息", "operationId": "apps_automation_api_preservation_quote_api_list_preservation_quotes", "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "default": 1, "title": "Page", "type": "integer" } }, { "in": "query", "name": "page_size", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Page Size" } }, { "in": "query", "name": "status", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Status" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/QuoteListSchema" } } }, "description": "OK" } }, "security": [ { "JWTAuth": [] } ], "summary": "List Preservation Quotes", "tags": [ "财产保全询价" ] }, "post": { "description": "创建询价任务\n\n创建一个新的财产保全担保费询价任务。任务创建后状态为 PENDING,\n需要调用执行接口来实际执行询价。\n\n**请求参数:**\n- preserve_amount: 保全金额(必须为正数)\n- corp_id: 企业/法院ID\n- category_id: 分类ID (cPid)\n- credential_id: 账号凭证ID\n\n**响应:**\n返回创建的询价任务详情\n\n**错误码:**\n- VALIDATION_ERROR: 数据验证失败", "operationId": "apps_automation_api_preservation_quote_api_create_preservation_quote", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PreservationQuoteCreateSchema" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PreservationQuoteSchema" } } }, "description": "OK" } }, "security": [ { "JWTAuth": [] } ], "summary": "Create Preservation Quote", "tags": [ "财产保全询价" ] } }, "/api/v1/automation/preservation-quotes/{quote_id}": { "get": { "description": "获取询价任务详情\n\n获取指定询价任务的详细信息,包括所有保险公司的报价记录。\n\n**路径参数:**\n- quote_id: 询价任务ID\n\n**响应:**\n返回询价任务详情,包含所有保险公司报价列表\n\n**错误码:**\n- NOT_FOUND: 任务不存在", "operationId": "apps_automation_api_preservation_quote_api_get_preservation_quote", "parameters": [ { "in": "path", "name": "quote_id", "required": true, "schema": { "title": "Quote Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PreservationQuoteSchema" } } }, "description": "OK" } }, "security": [ { "JWTAuth": [] } ], "summary": "Get Preservation Quote", "tags": [ "财产保全询价" ] } }, "/api/v1/automation/preservation-quotes/{quote_id}/execute": { "post": { "description": "执行询价任务\n\n执行指定的询价任务,系统会:\n1. 检查 Token 是否有效\n2. 获取保险公司列表\n3. 并发查询所有保险公司报价\n4. 保存报价结果\n\n**注意:**\n- 如果 Token 不存在或已过期,会返回错误提示,需要先到 /admin/automation/testcourt/ 获取 Token\n- 执行过程是异步的,可能需要几秒到几十秒\n- 单个保险公司查询失败不会影响其他查询\n\n**路径参数:**\n- quote_id: 询价任务ID\n\n**响应:**\n返回执行结果,包含成功/失败统计\n\n**错误码:**\n- NOT_FOUND: 任务不存在\n- TOKEN_ERROR: Token 相关错误\n- FETCH_COMPANIES_FAILED: 获取保险公司列表失败", "operationId": "apps_automation_api_preservation_quote_api_execute_preservation_quote", "parameters": [ { "in": "path", "name": "quote_id", "required": true, "schema": { "title": "Quote Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/QuoteExecuteResponseSchema" } } }, "description": "OK" } }, "security": [ { "JWTAuth": [] } ], "summary": "Execute Preservation Quote", "tags": [ "财产保全询价" ] } }, "/api/v1/automation/preservation-quotes/{quote_id}/retry": { "post": { "description": "重试询价任务\n\n重新执行失败或部分成功的询价任务。系统会:\n1. 检查任务状态是否允许重试\n2. 重置任务状态\n3. 重新执行完整的询价流程\n\n**注意:**\n- 只有失败或部分成功的任务可以重试\n- 重试会使用最新的Token和账号策略\n- 之前的报价记录会被保留\n\n**路径参数:**\n- quote_id: 询价任务ID\n\n**响应:**\n返回重试执行结果\n\n**错误码:**\n- NOT_FOUND: 任务不存在\n- VALIDATION_ERROR: 任务状态不允许重试\n- TOKEN_ERROR: Token 相关错误", "operationId": "apps_automation_api_preservation_quote_api_retry_preservation_quote", "parameters": [ { "in": "path", "name": "quote_id", "required": true, "schema": { "title": "Quote Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/QuoteExecuteResponseSchema" } } }, "description": "OK" } }, "security": [ { "JWTAuth": [] } ], "summary": "Retry Preservation Quote", "tags": [ "财产保全询价" ] } }, "/api/v1/automation/status": { "get": { "description": "获取系统状态", "operationId": "apps_automation_api_main_api_get_status", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Status", "tags": [ "AI工具" ] } }, "/api/v1/case-import": { "post": { "description": "触发从OA导入案件(预览模式)。\n\n接收上传的Excel文件,解析案件编号,预览匹配结果。", "operationId": "apps_oa_filing_api_case_import_api_trigger_case_import", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseImportSessionOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Trigger Case Import", "tags": [ "案件导入" ] } }, "/api/v1/case-import/{session_id}": { "get": { "description": "查询案件导入会话状态。", "operationId": "apps_oa_filing_api_case_import_api_get_case_import_session", "parameters": [ { "in": "path", "name": "session_id", "required": true, "schema": { "title": "Session Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseImportSessionOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Case Import Session", "tags": [ "案件导入" ] } }, "/api/v1/case-import/{session_id}/batch-create": { "post": { "description": "批量创建案件(通过API调用避免异步上下文问题)。\n\n接收案件数据列表,在新的HTTP请求中处理,不受Django-Q异步上下文影响。", "operationId": "apps_oa_filing_api_case_import_api_batch_create_cases", "parameters": [ { "in": "path", "name": "session_id", "required": true, "schema": { "title": "Session Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Batch Create Cases", "tags": [ "案件导入" ] } }, "/api/v1/case-import/{session_id}/execute": { "post": { "description": "执行案件导入。\n\n对预览阶段标记为 unmatched 的案件,从OA提取数据并创建/更新合同。", "operationId": "apps_oa_filing_api_case_import_api_execute_case_import", "parameters": [ { "in": "path", "name": "session_id", "required": true, "schema": { "title": "Session Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Execute Case Import", "tags": [ "案件导入" ] } }, "/api/v1/case-import/{session_id}/preview": { "get": { "description": "获取案件导入预览结果。", "operationId": "apps_oa_filing_api_case_import_api_get_case_import_preview", "parameters": [ { "in": "path", "name": "session_id", "required": true, "schema": { "title": "Session Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Case Import Preview", "tags": [ "案件导入" ] } }, "/api/v1/cases/assignments": { "get": { "operationId": "apps_cases_api_caseassignment_api_list_assignments", "parameters": [ { "in": "query", "name": "case_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Case Id" } }, { "in": "query", "name": "lawyer_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Lawyer Id" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/CaseAssignmentOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Assignments", "tags": [ "案件指派" ] }, "post": { "operationId": "apps_cases_api_caseassignment_api_create_assignment", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseAssignmentIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseAssignmentOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Assignment", "tags": [ "案件指派" ] } }, "/api/v1/cases/assignments/{assignment_id}": { "delete": { "operationId": "apps_cases_api_caseassignment_api_delete_assignment", "parameters": [ { "in": "path", "name": "assignment_id", "required": true, "schema": { "title": "Assignment Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Assignment", "tags": [ "案件指派" ] }, "get": { "operationId": "apps_cases_api_caseassignment_api_get_assignment", "parameters": [ { "in": "path", "name": "assignment_id", "required": true, "schema": { "title": "Assignment Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseAssignmentOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Assignment", "tags": [ "案件指派" ] }, "put": { "operationId": "apps_cases_api_caseassignment_api_update_assignment", "parameters": [ { "in": "path", "name": "assignment_id", "required": true, "schema": { "title": "Assignment Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseAssignmentUpdate" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseAssignmentOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Assignment", "tags": [ "案件指派" ] } }, "/api/v1/cases/calculate-fee": { "post": { "description": "计算诉讼费用\n\n根据涉案金额、财产保全金额、案件类型等参数计算各类诉讼费用.\n\n data: 费用计算请求参数\n\n FeeCalculationResponse: 包含各类费用明细的响应", "operationId": "apps_cases_api_litigation_fee_api_calculate_fee", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FeeCalculationRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FeeCalculationResponse" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Calculate Fee", "tags": [ "诉讼费计算" ] } }, "/api/v1/cases/case-numbers": { "get": { "description": "获取案号列表", "operationId": "apps_cases_api_casenumber_api_list_case_numbers", "parameters": [ { "in": "query", "name": "case_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Case Id" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/CaseNumberOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Case Numbers", "tags": [ "案件案号" ] }, "post": { "description": "创建案号", "operationId": "apps_cases_api_casenumber_api_create_case_number", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseNumberIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseNumberOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Case Number", "tags": [ "案件案号" ] } }, "/api/v1/cases/case-numbers/{number_id}": { "delete": { "description": "删除案号", "operationId": "apps_cases_api_casenumber_api_delete_case_number", "parameters": [ { "in": "path", "name": "number_id", "required": true, "schema": { "title": "Number Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Case Number", "tags": [ "案件案号" ] }, "get": { "description": "获取单个案号", "operationId": "apps_cases_api_casenumber_api_get_case_number", "parameters": [ { "in": "path", "name": "number_id", "required": true, "schema": { "title": "Number Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseNumberOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Case Number", "tags": [ "案件案号" ] }, "put": { "description": "更新案号", "operationId": "apps_cases_api_casenumber_api_update_case_number", "parameters": [ { "in": "path", "name": "number_id", "required": true, "schema": { "title": "Number Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseNumberUpdate" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseNumberOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Case Number", "tags": [ "案件案号" ] } }, "/api/v1/cases/cases": { "get": { "description": "获取案件列表", "operationId": "apps_cases_api_case_api_list_cases", "parameters": [ { "in": "query", "name": "case_type", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Case Type" } }, { "in": "query", "name": "status", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Status" } }, { "in": "query", "name": "case_number", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Case Number" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/CaseOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Cases", "tags": [ "案件管理" ] }, "post": { "description": "创建案件", "operationId": "apps_cases_api_case_api_create_case", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Case", "tags": [ "案件管理" ] } }, "/api/v1/cases/cases/full": { "post": { "description": "创建完整案件(包含当事人、指派、日志)", "operationId": "apps_cases_api_case_api_create_case_full", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseCreateFull" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseFullOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Case Full", "tags": [ "案件管理" ] } }, "/api/v1/cases/cases/search": { "get": { "description": "搜索案件", "operationId": "apps_cases_api_case_api_search_cases", "parameters": [ { "in": "query", "name": "q", "required": true, "schema": { "title": "Q", "type": "string" } }, { "in": "query", "name": "limit", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": 10, "title": "Limit" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/CaseOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Search Cases", "tags": [ "案件管理" ] } }, "/api/v1/cases/cases/{case_id}": { "delete": { "description": "删除案件", "operationId": "apps_cases_api_case_api_delete_case", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Case", "tags": [ "案件管理" ] }, "get": { "description": "获取单个案件", "operationId": "apps_cases_api_case_api_get_case", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Case", "tags": [ "案件管理" ] }, "put": { "description": "更新案件", "operationId": "apps_cases_api_case_api_update_case", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseUpdate" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Case", "tags": [ "案件管理" ] } }, "/api/v1/cases/cause/{cause_id}": { "get": { "description": "根据ID获取案由信息(用于生成昵称)\n\n cause_id: 案由ID", "operationId": "apps_cases_api_cause_court_api_get_cause_by_id", "parameters": [ { "in": "path", "name": "cause_id", "required": true, "schema": { "title": "Cause Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Cause By Id", "tags": [ "案由主管机关" ] } }, "/api/v1/cases/causes-data": { "get": { "description": "获取案由列表\n\n search: 搜索关键词(可选)\n case_type: 案件类型 (civil, criminal, administrative, execution, bankruptcy)(可选)\n limit: 返回结果数量限制(默认50)", "operationId": "apps_cases_api_cause_court_api_get_causes", "parameters": [ { "in": "query", "name": "search", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Search" } }, { "in": "query", "name": "case_type", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Case Type" } }, { "in": "query", "name": "limit", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": 50, "title": "Limit" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/CauseSchema" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Causes", "tags": [ "案由主管机关" ] } }, "/api/v1/cases/causes-tree": { "get": { "description": "获取案由树形数据(按层级展开)\n\n parent_id: 父级案由ID,为空时返回顶级案由", "operationId": "apps_cases_api_cause_court_api_get_causes_tree", "parameters": [ { "in": "query", "name": "parent_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Parent Id" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/CauseTreeNodeSchema" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Causes Tree", "tags": [ "案由主管机关" ] } }, "/api/v1/cases/courts-data": { "get": { "description": "获取法院列表\n\n search: 搜索关键词(可选)\n limit: 返回结果数量限制(默认50)", "operationId": "apps_cases_api_cause_court_api_get_courts", "parameters": [ { "in": "query", "name": "search", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Search" } }, { "in": "query", "name": "limit", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": 50, "title": "Limit" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/CourtSchema" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Courts", "tags": [ "案由主管机关" ] } }, "/api/v1/cases/folder-browse": { "get": { "operationId": "apps_cases_api_folder_binding_api_browse_folders", "parameters": [ { "in": "query", "name": "path", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Path" } }, { "in": "query", "name": "include_hidden", "required": false, "schema": { "default": false, "title": "Include Hidden", "type": "boolean" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FolderBrowseResponseSchema" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Browse Folders", "tags": [ "案件文件夹绑定" ] } }, "/api/v1/cases/grants": { "get": { "operationId": "apps_cases_api_caseaccess_api_list_grants", "parameters": [ { "in": "query", "name": "case_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Case Id" } }, { "in": "query", "name": "grantee_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Grantee Id" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/CaseAccessGrantOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Grants", "tags": [ "案件授权" ] }, "post": { "operationId": "apps_cases_api_caseaccess_api_create_grant", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseAccessGrantIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseAccessGrantOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Grant", "tags": [ "案件授权" ] } }, "/api/v1/cases/grants/{grant_id}": { "delete": { "operationId": "apps_cases_api_caseaccess_api_delete_grant", "parameters": [ { "in": "path", "name": "grant_id", "required": true, "schema": { "title": "Grant Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Grant", "tags": [ "案件授权" ] }, "get": { "operationId": "apps_cases_api_caseaccess_api_get_grant", "parameters": [ { "in": "path", "name": "grant_id", "required": true, "schema": { "title": "Grant Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseAccessGrantOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Grant", "tags": [ "案件授权" ] }, "put": { "operationId": "apps_cases_api_caseaccess_api_update_grant", "parameters": [ { "in": "path", "name": "grant_id", "required": true, "schema": { "title": "Grant Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseAccessGrantUpdate" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseAccessGrantOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Grant", "tags": [ "案件授权" ] } }, "/api/v1/cases/logs": { "get": { "description": "获取日志列表", "operationId": "apps_cases_api_caselog_api_list_logs", "parameters": [ { "in": "query", "name": "case_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Case Id" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/CaseLogOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Logs", "tags": [ "案件日志" ] }, "post": { "description": "创建日志", "operationId": "apps_cases_api_caselog_api_create_log", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseLogIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseLogOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Log", "tags": [ "案件日志" ] } }, "/api/v1/cases/logs/{log_id}": { "delete": { "description": "删除日志", "operationId": "apps_cases_api_caselog_api_delete_log", "parameters": [ { "in": "path", "name": "log_id", "required": true, "schema": { "title": "Log Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Log", "tags": [ "案件日志" ] }, "get": { "description": "获取单个日志", "operationId": "apps_cases_api_caselog_api_get_log", "parameters": [ { "in": "path", "name": "log_id", "required": true, "schema": { "title": "Log Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseLogOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Log", "tags": [ "案件日志" ] }, "put": { "description": "更新日志", "operationId": "apps_cases_api_caselog_api_update_log", "parameters": [ { "in": "path", "name": "log_id", "required": true, "schema": { "title": "Log Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseLogUpdate" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseLogOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Log", "tags": [ "案件日志" ] } }, "/api/v1/cases/logs/{log_id}/attachments": { "post": { "description": "上传日志附件", "operationId": "apps_cases_api_caselog_api_upload_log_attachments", "parameters": [ { "in": "path", "name": "log_id", "required": true, "schema": { "title": "Log Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Upload Log Attachments", "tags": [ "案件日志" ] } }, "/api/v1/cases/parties": { "get": { "operationId": "apps_cases_api_caseparty_api_list_parties", "parameters": [ { "in": "query", "name": "case_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Case Id" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/CasePartyOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Parties", "tags": [ "案件当事人" ] }, "post": { "operationId": "apps_cases_api_caseparty_api_create_party", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CasePartyIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CasePartyOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Party", "tags": [ "案件当事人" ] } }, "/api/v1/cases/parties/{party_id}": { "delete": { "operationId": "apps_cases_api_caseparty_api_delete_party", "parameters": [ { "in": "path", "name": "party_id", "required": true, "schema": { "title": "Party Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Party", "tags": [ "案件当事人" ] }, "get": { "operationId": "apps_cases_api_caseparty_api_get_party", "parameters": [ { "in": "path", "name": "party_id", "required": true, "schema": { "title": "Party Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CasePartyOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Party", "tags": [ "案件当事人" ] }, "put": { "operationId": "apps_cases_api_caseparty_api_update_party", "parameters": [ { "in": "path", "name": "party_id", "required": true, "schema": { "title": "Party Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CasePartyUpdate" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CasePartyOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Party", "tags": [ "案件当事人" ] } }, "/api/v1/cases/upload-temp-document": { "post": { "description": "上传裁判文书到临时目录(供前端解析使用)", "operationId": "apps_cases_api_casenumber_api_upload_temp_document", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Upload Temp Document", "tags": [ "案件案号" ] } }, "/api/v1/cases/{case_id}/folder-binding": { "delete": { "description": "删除案件文件夹绑定", "operationId": "apps_cases_api_folder_binding_api_delete_folder_binding", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Folder Binding", "tags": [ "案件文件夹绑定" ] }, "get": { "description": "获取案件文件夹绑定信息", "operationId": "apps_cases_api_folder_binding_api_get_folder_binding", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "$ref": "#/components/schemas/CaseFolderBindingResponseSchema" }, { "type": "null" } ] } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Folder Binding", "tags": [ "案件文件夹绑定" ] }, "post": { "description": "创建或更新案件文件夹绑定", "operationId": "apps_cases_api_folder_binding_api_create_folder_binding", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseFolderBindingCreateSchema" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseFolderBindingResponseSchema" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Folder Binding", "tags": [ "案件文件夹绑定" ] } }, "/api/v1/cases/{case_id}/folder-scan": { "post": { "operationId": "apps_cases_api_folder_scan_api_start_case_scan", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseFolderScanStartIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseFolderScanStartOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Start Case Scan", "tags": [ "案件文件夹自动捕获" ] } }, "/api/v1/cases/{case_id}/folder-scan/subfolders": { "get": { "operationId": "apps_cases_api_folder_scan_api_list_case_scan_subfolders", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseFolderScanSubfolderListOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Case Scan Subfolders", "tags": [ "案件文件夹自动捕获" ] } }, "/api/v1/cases/{case_id}/folder-scan/{session_id}": { "get": { "operationId": "apps_cases_api_folder_scan_api_get_case_scan_status", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } }, { "in": "path", "name": "session_id", "required": true, "schema": { "format": "uuid", "title": "Session Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseFolderScanStatusOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Case Scan Status", "tags": [ "案件文件夹自动捕获" ] } }, "/api/v1/cases/{case_id}/folder-scan/{session_id}/stage": { "post": { "operationId": "apps_cases_api_folder_scan_api_stage_case_scan", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } }, { "in": "path", "name": "session_id", "required": true, "schema": { "format": "uuid", "title": "Session Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseFolderScanStageIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseFolderScanStageOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Stage Case Scan", "tags": [ "案件文件夹自动捕获" ] } }, "/api/v1/cases/{case_id}/generate-folder": { "post": { "description": "生成案件文件夹。\n- 若合同绑定了文件夹:在绑定路径下创建案件文件夹,返回 JSON\n- 否则:返回 ZIP 下载", "operationId": "apps_cases_api_folder_generation_api_generate_case_folder", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Generate Case Folder", "tags": [ "案件文件夹生成" ] } }, "/api/v1/cases/{case_id}/materials/bind": { "post": { "operationId": "apps_cases_api_case_material_api_bind_materials", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseMaterialBindIn" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Bind Materials", "tags": [ "案件材料" ] } }, "/api/v1/cases/{case_id}/materials/bind-candidates": { "get": { "operationId": "apps_cases_api_case_material_api_list_bind_candidates", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/CaseMaterialBindCandidateOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Bind Candidates", "tags": [ "案件材料" ] } }, "/api/v1/cases/{case_id}/materials/group-order": { "post": { "operationId": "apps_cases_api_case_material_api_save_group_order", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseMaterialGroupOrderIn" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Save Group Order", "tags": [ "案件材料" ] } }, "/api/v1/cases/{case_id}/materials/upload": { "post": { "operationId": "apps_cases_api_case_material_api_upload_materials", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseMaterialUploadOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Upload Materials", "tags": [ "案件材料" ] } }, "/api/v1/chat-records/export-statuses": { "get": { "operationId": "apps_chat_records_api_chat_records_api_get_export_statuses", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Export Statuses", "tags": [ "梳理聊天记录" ] } }, "/api/v1/chat-records/export-types": { "get": { "operationId": "apps_chat_records_api_chat_records_api_get_export_types", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Export Types", "tags": [ "梳理聊天记录" ] } }, "/api/v1/chat-records/exports/{task_id}": { "get": { "operationId": "apps_chat_records_api_chat_records_api_get_export_task", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "title": "Task Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExportTaskOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Export Task", "tags": [ "梳理聊天记录" ] } }, "/api/v1/chat-records/exports/{task_id}/download": { "get": { "operationId": "apps_chat_records_api_chat_records_api_download_export", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "title": "Task Id", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Download Export", "tags": [ "梳理聊天记录" ] } }, "/api/v1/chat-records/projects": { "get": { "operationId": "apps_chat_records_api_chat_records_api_list_projects", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/ProjectOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Projects", "tags": [ "梳理聊天记录" ] }, "post": { "operationId": "apps_chat_records_api_chat_records_api_create_project", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Project", "tags": [ "梳理聊天记录" ] } }, "/api/v1/chat-records/projects/{project_id}/exports": { "post": { "operationId": "apps_chat_records_api_chat_records_api_create_export", "parameters": [ { "in": "path", "name": "project_id", "required": true, "schema": { "title": "Project Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExportCreateIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExportTaskOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Export", "tags": [ "梳理聊天记录" ] } }, "/api/v1/chat-records/projects/{project_id}/recordings": { "get": { "operationId": "apps_chat_records_api_chat_records_api_list_recordings", "parameters": [ { "in": "path", "name": "project_id", "required": true, "schema": { "title": "Project Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/RecordingOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Recordings", "tags": [ "梳理聊天记录" ] }, "post": { "operationId": "apps_chat_records_api_chat_records_api_upload_recording", "parameters": [ { "in": "path", "name": "project_id", "required": true, "schema": { "title": "Project Id", "type": "integer" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "properties": { "file": { "format": "binary", "title": "File", "type": "string" } }, "required": [ "file" ], "title": "FileParams", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RecordingOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Upload Recording", "tags": [ "梳理聊天记录" ] } }, "/api/v1/chat-records/projects/{project_id}/screenshots": { "get": { "operationId": "apps_chat_records_api_chat_records_api_list_screenshots", "parameters": [ { "in": "path", "name": "project_id", "required": true, "schema": { "title": "Project Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/ScreenshotOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Screenshots", "tags": [ "梳理聊天记录" ] }, "post": { "operationId": "apps_chat_records_api_chat_records_api_upload_screenshots", "parameters": [ { "in": "path", "name": "project_id", "required": true, "schema": { "title": "Project Id", "type": "integer" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "properties": { "capture_time_seconds": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Capture Time Seconds" }, "deduplicate": { "default": true, "title": "Deduplicate", "type": "boolean" }, "files": { "items": { "format": "binary", "type": "string" }, "title": "Files", "type": "array" } }, "required": [ "files" ], "title": "MultiPartBodyParams", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/ScreenshotOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Upload Screenshots", "tags": [ "梳理聊天记录" ] } }, "/api/v1/chat-records/projects/{project_id}/screenshots/reorder": { "post": { "operationId": "apps_chat_records_api_chat_records_api_reorder_screenshots", "parameters": [ { "in": "path", "name": "project_id", "required": true, "schema": { "title": "Project Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ScreenshotReorderIn" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Reorder Screenshots", "tags": [ "梳理聊天记录" ] } }, "/api/v1/chat-records/recordings/{recording_id}": { "delete": { "operationId": "apps_chat_records_api_chat_records_api_delete_recording", "parameters": [ { "in": "path", "name": "recording_id", "required": true, "schema": { "title": "Recording Id", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Recording", "tags": [ "梳理聊天记录" ] }, "get": { "operationId": "apps_chat_records_api_chat_records_api_get_recording", "parameters": [ { "in": "path", "name": "recording_id", "required": true, "schema": { "title": "Recording Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RecordingOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Recording", "tags": [ "梳理聊天记录" ] }, "patch": { "operationId": "apps_chat_records_api_chat_records_api_update_recording", "parameters": [ { "in": "path", "name": "recording_id", "required": true, "schema": { "title": "Recording Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RecordingUpdate" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RecordingOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Recording", "tags": [ "梳理聊天记录" ] } }, "/api/v1/chat-records/recordings/{recording_id}/extract": { "post": { "operationId": "apps_chat_records_api_chat_records_api_extract_recording", "parameters": [ { "in": "path", "name": "recording_id", "required": true, "schema": { "title": "Recording Id", "type": "string" } } ], "requestBody": { "content": { "application/x-www-form-urlencoded": { "schema": { "properties": { "dedup_threshold": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Dedup Threshold" }, "interval_seconds": { "default": 1.0, "title": "Interval Seconds", "type": "number" }, "ocr_min_new_chars": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Ocr Min New Chars" }, "ocr_similarity_threshold": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Ocr Similarity Threshold" }, "strategy": { "default": "interval", "title": "Strategy", "type": "string" } }, "title": "FormParams", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RecordingOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Extract Recording", "tags": [ "梳理聊天记录" ] } }, "/api/v1/chat-records/recordings/{recording_id}/extract/cancel": { "post": { "operationId": "apps_chat_records_api_chat_records_api_cancel_extract_recording", "parameters": [ { "in": "path", "name": "recording_id", "required": true, "schema": { "title": "Recording Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RecordingOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Cancel Extract Recording", "tags": [ "梳理聊天记录" ] } }, "/api/v1/chat-records/recordings/{recording_id}/extract/reset": { "post": { "operationId": "apps_chat_records_api_chat_records_api_reset_extract_recording", "parameters": [ { "in": "path", "name": "recording_id", "required": true, "schema": { "title": "Recording Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RecordingOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Reset Extract Recording", "tags": [ "梳理聊天记录" ] } }, "/api/v1/chat-records/recordings/{recording_id}/stream": { "get": { "operationId": "apps_chat_records_api_chat_records_api_stream_recording", "parameters": [ { "in": "path", "name": "recording_id", "required": true, "schema": { "title": "Recording Id", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Stream Recording", "tags": [ "梳理聊天记录" ] }, "head": { "operationId": "apps_chat_records_api_chat_records_api_stream_recording", "parameters": [ { "in": "path", "name": "recording_id", "required": true, "schema": { "title": "Recording Id", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Stream Recording", "tags": [ "梳理聊天记录" ] } }, "/api/v1/chat-records/screenshots/{screenshot_id}": { "delete": { "operationId": "apps_chat_records_api_chat_records_api_delete_screenshot", "parameters": [ { "in": "path", "name": "screenshot_id", "required": true, "schema": { "title": "Screenshot Id", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Screenshot", "tags": [ "梳理聊天记录" ] }, "patch": { "operationId": "apps_chat_records_api_chat_records_api_update_screenshot", "parameters": [ { "in": "path", "name": "screenshot_id", "required": true, "schema": { "title": "Screenshot Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ScreenshotUpdate" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ScreenshotOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Screenshot", "tags": [ "梳理聊天记录" ] } }, "/api/v1/client-import": { "post": { "description": "触发从OA导入客户。", "operationId": "apps_oa_filing_api_client_import_api_trigger_client_import", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientImportSessionOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Trigger Client Import", "tags": [ "客户导入" ] } }, "/api/v1/client-import/{session_id}": { "get": { "description": "查询客户导入会话状态。", "operationId": "apps_oa_filing_api_client_import_api_get_client_import_session", "parameters": [ { "in": "path", "name": "session_id", "required": true, "schema": { "title": "Session Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientImportSessionOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Client Import Session", "tags": [ "客户导入" ] } }, "/api/v1/client-import/{session_id}/batch-create": { "post": { "description": "批量创建客户(通过API调用避免异步上下文问题)。\n\n接收一个客户数据列表,在新的HTTP请求中处理,不受Django-Q异步上下文影响。\n对于企业客户且id_number为空的,自动调用企业数据API补全信息。", "operationId": "apps_oa_filing_api_client_import_api_batch_create_clients", "parameters": [ { "in": "path", "name": "session_id", "required": true, "schema": { "title": "Session Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Batch Create Clients", "tags": [ "客户导入" ] } }, "/api/v1/client/clients": { "get": { "description": "获取客户列表", "operationId": "apps_client_api_client_api_list_clients", "parameters": [ { "in": "query", "name": "page", "required": false, "schema": { "default": 1, "title": "Page", "type": "integer" } }, { "in": "query", "name": "page_size", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Page Size" } }, { "in": "query", "name": "client_type", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Client Type" } }, { "in": "query", "name": "is_our_client", "required": false, "schema": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Is Our Client" } }, { "in": "query", "name": "search", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Search" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/ClientOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Clients", "tags": [ "客户管理" ] }, "post": { "description": "创建客户", "operationId": "apps_client_api_client_api_create_client", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Client", "tags": [ "客户管理" ] } }, "/api/v1/client/clients-with-docs": { "post": { "description": "创建客户并上传文档", "operationId": "apps_client_api_client_api_create_client_with_docs", "parameters": [], "requestBody": { "content": { "multipart/form-data": { "schema": { "properties": { "doc_types": { "items": { "type": "string" }, "title": "Doc Types", "type": "array" }, "files": { "items": { "format": "binary", "type": "string" }, "title": "Files", "type": "array" }, "payload": { "$ref": "#/components/schemas/ClientIn" } }, "required": [ "files", "payload", "doc_types" ], "title": "MultiPartBodyParams", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Client With Docs", "tags": [ "客户管理" ] } }, "/api/v1/client/clients/check-oa-credential": { "get": { "description": "检查当前用户是否有金诚同达OA凭证。", "operationId": "apps_client_api_client_api_check_oa_credential", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OACredentialCheckOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Check Oa Credential", "tags": [ "客户管理" ] } }, "/api/v1/client/clients/enterprise/prefill": { "get": { "operationId": "apps_client_api_client_enterprise_api_get_enterprise_prefill", "parameters": [ { "in": "query", "name": "company_id", "required": true, "schema": { "title": "Company Id", "type": "string" } }, { "in": "query", "name": "provider", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Provider" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EnterpriseClientPrefillOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Enterprise Prefill", "tags": [ "客户管理" ] } }, "/api/v1/client/clients/enterprise/search": { "get": { "operationId": "apps_client_api_client_enterprise_api_search_enterprise_companies", "parameters": [ { "in": "query", "name": "keyword", "required": true, "schema": { "title": "Keyword", "type": "string" } }, { "in": "query", "name": "provider", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Provider" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 8, "title": "Limit", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EnterpriseCompanySearchOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Search Enterprise Companies", "tags": [ "客户管理" ] } }, "/api/v1/client/clients/parse-text": { "post": { "description": "解析客户文本信息", "operationId": "apps_client_api_client_api_parse_client_text", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ParseTextRequest" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Parse Client Text", "tags": [ "客户管理" ] } }, "/api/v1/client/clients/{client_id}": { "delete": { "description": "删除客户", "operationId": "apps_client_api_client_api_delete_client", "parameters": [ { "in": "path", "name": "client_id", "required": true, "schema": { "title": "Client Id", "type": "integer" } } ], "responses": { "204": { "description": "No Content" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Client", "tags": [ "客户管理" ] }, "get": { "description": "获取单个客户", "operationId": "apps_client_api_client_api_get_client", "parameters": [ { "in": "path", "name": "client_id", "required": true, "schema": { "title": "Client Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Client", "tags": [ "客户管理" ] }, "put": { "description": "更新客户", "operationId": "apps_client_api_client_api_update_client", "parameters": [ { "in": "path", "name": "client_id", "required": true, "schema": { "title": "Client Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientUpdateIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Client", "tags": [ "客户管理" ] } }, "/api/v1/client/clients/{client_id}/identity-docs": { "post": { "description": "添加证件文档", "operationId": "apps_client_api_clientidentitydoc_api_add_identity_doc", "parameters": [ { "in": "path", "name": "client_id", "required": true, "schema": { "title": "Client Id", "type": "integer" } }, { "in": "query", "name": "doc_type", "required": true, "schema": { "title": "Doc Type", "type": "string" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "properties": { "file": { "format": "binary", "title": "File", "type": "string" } }, "required": [ "file" ], "title": "FileParams", "type": "object" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Add Identity Doc", "tags": [ "客户证件" ] } }, "/api/v1/client/clients/{client_id}/property-clues": { "get": { "description": "获取当事人的所有财产线索\n\nAPI 层职责:\n1. 接收路径参数\n2. 调用 Service\n3. 返回结果列表\n\nRequirements: 4.1", "operationId": "apps_client_api_property_clue_api_list_property_clues", "parameters": [ { "in": "path", "name": "client_id", "required": true, "schema": { "title": "Client Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/PropertyClueOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Property Clues", "tags": [ "财产线索" ] }, "post": { "description": "创建财产线索\n\nAPI 层职责:\n1. 参数验证(通过 Schema 自动完成)\n2. 调用 Service 方法\n3. 返回响应\n\nRequirements: 1.1", "operationId": "apps_client_api_property_clue_api_create_property_clue", "parameters": [ { "in": "path", "name": "client_id", "required": true, "schema": { "title": "Client Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PropertyClueIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PropertyClueOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Property Clue", "tags": [ "财产线索" ] } }, "/api/v1/client/identity-doc/recognize": { "post": { "description": "识别证件信息", "operationId": "apps_client_api_clientidentitydoc_api_recognize_identity_doc", "parameters": [ { "in": "query", "name": "doc_type", "required": false, "schema": { "default": "id_card", "title": "Doc Type", "type": "string" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "properties": { "file": { "format": "binary", "title": "File", "type": "string" } }, "required": [ "file" ], "title": "FileParams", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/IdentityRecognizeOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Recognize Identity Doc", "tags": [ "客户证件" ] } }, "/api/v1/client/identity-doc/recognize/submit": { "post": { "description": "提交证件识别异步任务", "operationId": "apps_client_api_clientidentitydoc_api_submit_recognize_task", "parameters": [], "requestBody": { "content": { "multipart/form-data": { "schema": { "properties": { "file": { "format": "binary", "title": "File", "type": "string" } }, "required": [ "file" ], "title": "FileParams", "type": "object" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Submit Recognize Task", "tags": [ "客户证件" ] } }, "/api/v1/client/identity-doc/task/{task_id}": { "get": { "description": "查询证件识别任务状态", "operationId": "apps_client_api_clientidentitydoc_api_get_recognize_task_status", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "title": "Task Id", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Recognize Task Status", "tags": [ "客户证件" ] } }, "/api/v1/client/identity-docs/merge-id-card": { "post": { "description": "自动检测并合并身份证正反面为 PDF,可选保存到客户证件", "operationId": "apps_client_api_clientidentitydoc_api_merge_id_card", "parameters": [ { "in": "query", "name": "client_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Client Id" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "properties": { "back_image": { "format": "binary", "title": "Back Image", "type": "string" }, "front_image": { "format": "binary", "title": "Front Image", "type": "string" } }, "required": [ "front_image", "back_image" ], "title": "FileParams", "type": "object" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Merge Id Card", "tags": [ "客户证件" ] } }, "/api/v1/client/identity-docs/merge-id-card-direct": { "post": { "description": "直接合并已裁剪的身份证正反面为 PDF(前端已完成裁剪),可选保存到客户证件", "operationId": "apps_client_api_clientidentitydoc_api_merge_id_card_direct", "parameters": [ { "in": "query", "name": "client_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Client Id" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "properties": { "back_image": { "format": "binary", "title": "Back Image", "type": "string" }, "front_image": { "format": "binary", "title": "Front Image", "type": "string" } }, "required": [ "front_image", "back_image" ], "title": "FileParams", "type": "object" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Merge Id Card Direct", "tags": [ "客户证件" ] } }, "/api/v1/client/identity-docs/merge-id-card-manual": { "post": { "description": "手动指定四角坐标合并身份证", "operationId": "apps_client_api_clientidentitydoc_api_merge_id_card_manual", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MergeIdCardManualIn" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Merge Id Card Manual", "tags": [ "客户证件" ] } }, "/api/v1/client/identity-docs/{doc_id}": { "delete": { "description": "删除证件文档\n\nArgs:\n request: HTTP 请求\n doc_id: 证件文档 ID\n\nReturns:\n 操作结果", "operationId": "apps_client_api_clientidentitydoc_api_delete_identity_doc", "parameters": [ { "in": "path", "name": "doc_id", "required": true, "schema": { "title": "Doc Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Identity Doc", "tags": [ "客户证件" ] }, "get": { "description": "获取证件文档\n\nArgs:\n request: HTTP 请求\n doc_id: 证件文档 ID\n\nReturns:\n 证件文档信息", "operationId": "apps_client_api_clientidentitydoc_api_get_identity_doc", "parameters": [ { "in": "path", "name": "doc_id", "required": true, "schema": { "title": "Doc Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/IdentityDocDetailOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Identity Doc", "tags": [ "客户证件" ] } }, "/api/v1/client/parse-text": { "get": { "description": "解析客户文本(GET 方式)。", "operationId": "apps_client_api_client_api_parse_text_get", "parameters": [ { "in": "query", "name": "text", "required": false, "schema": { "default": "", "title": "Text", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Parse Text Get", "tags": [ "客户管理" ] } }, "/api/v1/client/property-clue-attachments/{attachment_id}": { "delete": { "description": "删除财产线索附件\n\nAPI 层职责:\n1. 接收参数\n2. 调用 Service\n3. 返回 204 状态码\n\nRequirements: 5.3", "operationId": "apps_client_api_property_clue_api_delete_attachment", "parameters": [ { "in": "path", "name": "attachment_id", "required": true, "schema": { "title": "Attachment Id", "type": "integer" } } ], "responses": { "204": { "description": "No Content" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Attachment", "tags": [ "财产线索" ] } }, "/api/v1/client/property-clues/content-template": { "get": { "description": "获取内容模板\n\nAPI 层职责:\n1. 接收查询参数\n2. 调用 Service 静态方法\n3. 返回模板\n\nRequirements: 2.1, 2.2, 2.3, 2.4", "operationId": "apps_client_api_property_clue_api_get_content_template", "parameters": [ { "in": "query", "name": "clue_type", "required": true, "schema": { "title": "Clue Type", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContentTemplateOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Content Template", "tags": [ "财产线索" ] } }, "/api/v1/client/property-clues/{clue_id}": { "delete": { "description": "删除财产线索\n\nAPI 层职责:\n1. 接收参数\n2. 调用 Service\n3. 返回 204 状态码\n\nRequirements: 5.2", "operationId": "apps_client_api_property_clue_api_delete_property_clue", "parameters": [ { "in": "path", "name": "clue_id", "required": true, "schema": { "title": "Clue Id", "type": "integer" } } ], "responses": { "204": { "description": "No Content" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Property Clue", "tags": [ "财产线索" ] }, "get": { "description": "获取单个财产线索详情\n\nAPI 层职责:\n1. 接收路径参数\n2. 调用 Service\n3. 返回结果\n\nRequirements: 1.1", "operationId": "apps_client_api_property_clue_api_get_property_clue", "parameters": [ { "in": "path", "name": "clue_id", "required": true, "schema": { "title": "Clue Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PropertyClueOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Property Clue", "tags": [ "财产线索" ] }, "put": { "description": "更新财产线索\n\nAPI 层职责:\n1. 接收参数\n2. 调用 Service\n3. 返回结果\n\nRequirements: 5.1", "operationId": "apps_client_api_property_clue_api_update_property_clue", "parameters": [ { "in": "path", "name": "clue_id", "required": true, "schema": { "title": "Clue Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PropertyClueUpdateIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PropertyClueOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Property Clue", "tags": [ "财产线索" ] } }, "/api/v1/client/property-clues/{clue_id}/attachments": { "post": { "description": "为财产线索上传附件", "operationId": "apps_client_api_property_clue_api_upload_attachment", "parameters": [ { "in": "path", "name": "clue_id", "required": true, "schema": { "title": "Clue Id", "type": "integer" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "properties": { "file": { "format": "binary", "title": "File", "type": "string" } }, "required": [ "file" ], "title": "FileParams", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PropertyClueAttachmentOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Upload Attachment", "tags": [ "财产线索" ] } }, "/api/v1/contract-review/models": { "get": { "operationId": "apps_contract_review_api_review_api_get_models", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Models", "tags": [ "合同审查" ] } }, "/api/v1/contract-review/upload": { "post": { "operationId": "apps_contract_review_api_review_api_upload_contract", "parameters": [], "requestBody": { "content": { "multipart/form-data": { "schema": { "properties": { "file": { "format": "binary", "title": "File", "type": "string" }, "model_name": { "default": "", "title": "Model Name", "type": "string" } }, "required": [ "file" ], "title": "MultiPartBodyParams", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskCreatedOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Upload Contract", "tags": [ "合同审查" ] } }, "/api/v1/contract-review/{task_id}/confirm-party": { "post": { "operationId": "apps_contract_review_api_review_api_confirm_party", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConfirmPartyIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskStatusOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Confirm Party", "tags": [ "合同审查" ] } }, "/api/v1/contract-review/{task_id}/download": { "get": { "operationId": "apps_contract_review_api_review_api_download_result", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Download Result", "tags": [ "合同审查" ] } }, "/api/v1/contract-review/{task_id}/download-original": { "get": { "operationId": "apps_contract_review_api_review_api_download_original", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Download Original", "tags": [ "合同审查" ] } }, "/api/v1/contract-review/{task_id}/status": { "get": { "operationId": "apps_contract_review_api_review_api_get_task_status", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "format": "uuid", "title": "Task Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskStatusOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Task Status", "tags": [ "合同审查" ] } }, "/api/v1/contracts/contracts": { "get": { "description": "获取合同列表(分页)\n\nRequirements: 6.1, 6.2, 6.3", "operationId": "apps_contracts_api_contract_api_list_contracts", "parameters": [ { "in": "query", "name": "case_type", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Case Type" } }, { "in": "query", "name": "status", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Status" } }, { "in": "query", "name": "page", "required": false, "schema": { "default": 1, "title": "Page", "type": "integer" } }, { "in": "query", "name": "page_size", "required": false, "schema": { "default": 20, "title": "Page Size", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/ContractOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Contracts", "tags": [ "合同管理" ] }, "post": { "operationId": "apps_contracts_api_contract_api_create_contract", "parameters": [ { "in": "query", "name": "confirm_finance", "required": false, "schema": { "default": false, "title": "Confirm Finance", "type": "boolean" } } ], "requestBody": { "content": { "application/json": { "schema": { "properties": { "payload": { "$ref": "#/components/schemas/ContractIn" }, "payments": { "anyOf": [ { "items": { "$ref": "#/components/schemas/ContractPaymentIn" }, "type": "array" }, { "type": "null" } ], "title": "Payments" } }, "required": [ "payload" ], "title": "BodyParams", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContractOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Contract", "tags": [ "合同管理" ] } }, "/api/v1/contracts/contracts/full": { "post": { "operationId": "apps_contracts_api_contract_api_create_contract_with_cases", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContractWithCasesIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContractOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Contract With Cases", "tags": [ "合同管理" ] } }, "/api/v1/contracts/contracts/{contract_id}": { "delete": { "operationId": "apps_contracts_api_contract_api_delete_contract", "parameters": [ { "in": "path", "name": "contract_id", "required": true, "schema": { "title": "Contract Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Contract", "tags": [ "合同管理" ] }, "get": { "description": "获取合同详情\n\nRequirements: 6.1, 6.2, 6.3", "operationId": "apps_contracts_api_contract_api_get_contract", "parameters": [ { "in": "path", "name": "contract_id", "required": true, "schema": { "title": "Contract Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContractOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Contract", "tags": [ "合同管理" ] }, "put": { "operationId": "apps_contracts_api_contract_api_update_contract", "parameters": [ { "in": "path", "name": "contract_id", "required": true, "schema": { "title": "Contract Id", "type": "integer" } }, { "in": "query", "name": "sync_cases", "required": false, "schema": { "default": false, "title": "Sync Cases", "type": "boolean" } }, { "in": "query", "name": "confirm_finance", "required": false, "schema": { "default": false, "title": "Confirm Finance", "type": "boolean" } } ], "requestBody": { "content": { "application/json": { "schema": { "properties": { "new_payments": { "anyOf": [ { "items": { "$ref": "#/components/schemas/ContractPaymentIn" }, "type": "array" }, { "type": "null" } ], "title": "New Payments" }, "payload": { "$ref": "#/components/schemas/ContractUpdate" } }, "required": [ "payload" ], "title": "BodyParams", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContractOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Contract", "tags": [ "合同管理" ] } }, "/api/v1/contracts/contracts/{contract_id}/all-parties": { "get": { "operationId": "apps_contracts_api_contract_api_get_contract_all_parties", "parameters": [ { "in": "path", "name": "contract_id", "required": true, "schema": { "title": "Contract Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/ContractPartySourceOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Contract All Parties", "tags": [ "合同管理" ] } }, "/api/v1/contracts/contracts/{contract_id}/lawyers": { "put": { "operationId": "apps_contracts_api_contract_api_update_contract_lawyers", "parameters": [ { "in": "path", "name": "contract_id", "required": true, "schema": { "title": "Contract Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateLawyersIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/ContractAssignmentOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Contract Lawyers", "tags": [ "合同管理" ] } }, "/api/v1/contracts/contracts/{contract_id}/supplementary-agreements": { "get": { "description": "获取合同的所有补充协议\n\nAPI 层职责:\n1. 接收路径参数\n2. 调用 Service\n3. 返回结果列表", "operationId": "apps_contracts_api_supplementary_agreement_api_list_supplementary_agreements", "parameters": [ { "in": "path", "name": "contract_id", "required": true, "schema": { "title": "Contract Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/SupplementaryAgreementOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Supplementary Agreements", "tags": [ "补充协议" ] } }, "/api/v1/contracts/finance/payments": { "get": { "description": "获取收款列表", "operationId": "apps_contracts_api_contractpayment_api_list_payments", "parameters": [ { "in": "query", "name": "contract_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Contract Id" } }, { "in": "query", "name": "invoice_status", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Invoice Status" } }, { "in": "query", "name": "start_date", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Start Date" } }, { "in": "query", "name": "end_date", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "End Date" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/ContractPaymentOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Payments", "tags": [ "合同收款" ] }, "post": { "description": "创建收款记录", "operationId": "apps_contracts_api_contractpayment_api_create_payment", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContractPaymentIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContractPaymentOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Payment", "tags": [ "合同收款" ] } }, "/api/v1/contracts/finance/payments/{payment_id}": { "delete": { "description": "删除收款记录", "operationId": "apps_contracts_api_contractpayment_api_delete_payment", "parameters": [ { "in": "path", "name": "payment_id", "required": true, "schema": { "title": "Payment Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Payment", "tags": [ "合同收款" ] }, "put": { "description": "更新收款记录", "operationId": "apps_contracts_api_contractpayment_api_update_payment", "parameters": [ { "in": "path", "name": "payment_id", "required": true, "schema": { "title": "Payment Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContractPaymentUpdate" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContractPaymentOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Payment", "tags": [ "合同收款" ] } }, "/api/v1/contracts/finance/stats": { "get": { "description": "获取财务统计数据\n\nAPI 层职责:\n1. 接收请求参数\n2. 解析日期参数\n3. 调用 Service 层方法\n4. 返回响应", "operationId": "apps_contracts_api_contractfinance_api_finance_stats", "parameters": [ { "in": "query", "name": "contract_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Contract Id" } }, { "in": "query", "name": "start_date", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Start Date" } }, { "in": "query", "name": "end_date", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "End Date" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FinanceStatsOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Finance Stats", "tags": [ "财务统计" ] } }, "/api/v1/contracts/folder-browse": { "get": { "operationId": "apps_contracts_api_folder_binding_api_browse_folders", "parameters": [ { "in": "query", "name": "path", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Path" } }, { "in": "query", "name": "include_hidden", "required": false, "schema": { "default": false, "title": "Include Hidden", "type": "boolean" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FolderBrowseResponseSchema" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Browse Folders", "tags": [ "文件夹绑定" ] } }, "/api/v1/contracts/supplementary-agreements": { "post": { "description": "创建补充协议\n\nAPI 层职责:\n1. 接收请求数据\n2. 调用 Service\n3. 返回结果\n\n异常由全局异常处理器处理", "operationId": "apps_contracts_api_supplementary_agreement_api_create_supplementary_agreement", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SupplementaryAgreementIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SupplementaryAgreementOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Supplementary Agreement", "tags": [ "补充协议" ] } }, "/api/v1/contracts/supplementary-agreements/{agreement_id}": { "delete": { "description": "删除补充协议\n\nAPI 层职责:\n1. 接收参数\n2. 调用 Service\n3. 返回成功响应\n\n异常由全局异常处理器处理", "operationId": "apps_contracts_api_supplementary_agreement_api_delete_supplementary_agreement", "parameters": [ { "in": "path", "name": "agreement_id", "required": true, "schema": { "title": "Agreement Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Supplementary Agreement", "tags": [ "补充协议" ] }, "get": { "description": "获取补充协议\n\nAPI 层职责:\n1. 接收路径参数\n2. 调用 Service\n3. 返回结果\n\n异常由全局异常处理器处理", "operationId": "apps_contracts_api_supplementary_agreement_api_get_supplementary_agreement", "parameters": [ { "in": "path", "name": "agreement_id", "required": true, "schema": { "title": "Agreement Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SupplementaryAgreementOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Supplementary Agreement", "tags": [ "补充协议" ] }, "put": { "description": "更新补充协议\n\nAPI 层职责:\n1. 接收参数\n2. 调用 Service\n3. 返回结果\n\n异常由全局异常处理器处理", "operationId": "apps_contracts_api_supplementary_agreement_api_update_supplementary_agreement", "parameters": [ { "in": "path", "name": "agreement_id", "required": true, "schema": { "title": "Agreement Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SupplementaryAgreementUpdate" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SupplementaryAgreementOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Supplementary Agreement", "tags": [ "补充协议" ] } }, "/api/v1/contracts/{contract_id}/folder-binding": { "delete": { "description": "删除文件夹绑定\n\nArgs:\n contract_id: 合同ID\n\nReturns:\n dict: 删除结果\n\nRequirements: 9.3, 9.5", "operationId": "apps_contracts_api_folder_binding_api_delete_folder_binding", "parameters": [ { "in": "path", "name": "contract_id", "required": true, "schema": { "title": "Contract Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Folder Binding", "tags": [ "文件夹绑定" ] }, "get": { "description": "获取文件夹绑定信息\n\nArgs:\n contract_id: 合同ID\n\nReturns:\n Optional[FolderBindingResponseSchema]: 绑定信息,如果未绑定则返回 None\n\nRequirements: 9.2, 9.4", "operationId": "apps_contracts_api_folder_binding_api_get_folder_binding", "parameters": [ { "in": "path", "name": "contract_id", "required": true, "schema": { "title": "Contract Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "anyOf": [ { "$ref": "#/components/schemas/FolderBindingResponseSchema" }, { "type": "null" } ] } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Folder Binding", "tags": [ "文件夹绑定" ] }, "post": { "description": "创建或更新文件夹绑定\n\nArgs:\n contract_id: 合同ID\n data: 绑定数据,包含文件夹路径\n\nReturns:\n FolderBindingResponseSchema: 绑定信息\n\nRaises:\n ValidationException: 路径无效或合同不存在\n\nRequirements: 9.1, 9.4", "operationId": "apps_contracts_api_folder_binding_api_create_folder_binding", "parameters": [ { "in": "path", "name": "contract_id", "required": true, "schema": { "title": "Contract Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FolderBindingCreateSchema" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FolderBindingResponseSchema" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Folder Binding", "tags": [ "文件夹绑定" ] } }, "/api/v1/contracts/{contract_id}/folder-scan": { "post": { "operationId": "apps_contracts_api_folder_scan_api_start_contract_scan", "parameters": [ { "in": "path", "name": "contract_id", "required": true, "schema": { "title": "Contract Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContractFolderScanStartIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContractFolderScanStartOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Start Contract Scan", "tags": [ "文件夹自动捕获" ] } }, "/api/v1/contracts/{contract_id}/folder-scan/subfolders": { "get": { "operationId": "apps_contracts_api_folder_scan_api_list_contract_scan_subfolders", "parameters": [ { "in": "path", "name": "contract_id", "required": true, "schema": { "title": "Contract Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContractFolderScanSubfolderListOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Contract Scan Subfolders", "tags": [ "文件夹自动捕获" ] } }, "/api/v1/contracts/{contract_id}/folder-scan/{session_id}": { "get": { "operationId": "apps_contracts_api_folder_scan_api_get_contract_scan_status", "parameters": [ { "in": "path", "name": "contract_id", "required": true, "schema": { "title": "Contract Id", "type": "integer" } }, { "in": "path", "name": "session_id", "required": true, "schema": { "format": "uuid", "title": "Session Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContractFolderScanStatusOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Contract Scan Status", "tags": [ "文件夹自动捕获" ] } }, "/api/v1/contracts/{contract_id}/folder-scan/{session_id}/confirm": { "post": { "operationId": "apps_contracts_api_folder_scan_api_confirm_contract_scan", "parameters": [ { "in": "path", "name": "contract_id", "required": true, "schema": { "title": "Contract Id", "type": "integer" } }, { "in": "path", "name": "session_id", "required": true, "schema": { "format": "uuid", "title": "Session Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContractFolderScanConfirmIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ContractFolderScanConfirmOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Confirm Contract Scan", "tags": [ "文件夹自动捕获" ] } }, "/api/v1/court-filing/case-info/{case_id}": { "get": { "description": "获取案件立案所需信息", "operationId": "apps_automation_api_court_filing_api_get_case_filing_info", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseFilingInfoOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Case Filing Info", "tags": [ "一张网立案" ] } }, "/api/v1/court-filing/execute": { "post": { "description": "执行一张网在线立案(后台线程)", "operationId": "apps_automation_api_court_filing_api_execute_court_filing", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExecuteCourtFilingIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExecuteCourtFilingOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Execute Court Filing", "tags": [ "一张网立案" ] } }, "/api/v1/court-filing/session/{session_id}": { "get": { "description": "查询一张网立案会话状态", "operationId": "apps_automation_api_court_filing_api_get_court_filing_session_status", "parameters": [ { "in": "path", "name": "session_id", "required": true, "schema": { "title": "Session Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExecuteCourtFilingOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Court Filing Session Status", "tags": [ "一张网立案" ] } }, "/api/v1/doc-convert/convert": { "post": { "description": "上传传统文书,转换为要素式文书并返回下载。\n\n- file: .docx/.doc/.pdf 文件,最大 20MB\n- mbid: 文书类型标识符(参见 /mbid-list)\n\n需要 ZNSZJ_ENABLED=True。", "operationId": "apps_doc_convert_api_doc_convert_api_convert_document", "parameters": [], "requestBody": { "content": { "multipart/form-data": { "schema": { "properties": { "file": { "format": "binary", "title": "File", "type": "string" }, "mbid": { "title": "Mbid", "type": "string" } }, "required": [ "file", "mbid" ], "title": "MultiPartBodyParams", "type": "object" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "传统文书转要素式文书", "tags": [ "文书转换" ] } }, "/api/v1/doc-convert/mbid-list": { "get": { "description": "返回所有支持的文书类型(mbid),按类别分组。\n\n不依赖私有模块,始终可用。", "operationId": "apps_doc_convert_api_doc_convert_api_get_mbid_list", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MbidListResponse" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "获取支持的文书类型列表", "tags": [ "文书转换" ] } }, "/api/v1/document-recognition/court-document/recognize": { "post": { "description": "提交文书识别任务(异步)\n\n上传文书后立即返回任务ID,识别在后台异步执行。\n使用 GET /court-document/task/{task_id} 查询结果。", "operationId": "apps_document_recognition_api_document_recognition_api_recognize_document", "parameters": [], "requestBody": { "content": { "multipart/form-data": { "schema": { "properties": { "file": { "format": "binary", "title": "File", "type": "string" } }, "required": [ "file" ], "title": "FileParams", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskSubmitResponseSchema" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Recognize Document", "tags": [ "法院文书识别" ] } }, "/api/v1/document-recognition/court-document/search-cases": { "get": { "description": "搜索可绑定的案件\n\n支持按案件名称、案号、当事人搜索。\n\nArgs:\n q: 搜索关键词(案件名称、案号、当事人)\n limit: 返回结果数量限制,默认20,最大20\n\nReturns:\n 匹配的案件列表\n\nRequirements: 1.3, 2.3", "operationId": "apps_document_recognition_api_document_recognition_api_search_cases_for_binding", "parameters": [ { "in": "query", "name": "q", "required": false, "schema": { "default": "", "title": "Q", "type": "string" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 20, "title": "Limit", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/CaseSearchResultSchema" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Search Cases For Binding", "tags": [ "法院文书识别" ] } }, "/api/v1/document-recognition/court-document/task/{task_id}": { "get": { "description": "查询识别任务状态和结果", "operationId": "apps_document_recognition_api_document_recognition_api_get_task_status", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "title": "Task Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskStatusResponseSchema" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Task Status", "tags": [ "法院文书识别" ] } }, "/api/v1/document-recognition/court-document/task/{task_id}/bind": { "post": { "description": "手动绑定案件\n\n将识别任务手动绑定到指定案件,触发后续流程(创建日志、设置提醒、通知)。\n\nArgs:\n task_id: 识别任务ID\n payload: 包含 case_id 的请求体\n\nReturns:\n 绑定结果,包含成功状态、案件信息、日志ID等\n\nRequirements: 3.1", "operationId": "apps_document_recognition_api_document_recognition_api_manual_bind_case", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "title": "Task Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ManualBindingRequestSchema" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ManualBindingResponseSchema" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Manual Bind Case", "tags": [ "法院文书识别" ] } }, "/api/v1/document-recognition/court-document/task/{task_id}/update-info": { "post": { "description": "手动更新识别信息(案号、关键时间)\n\n用户发现识别结果不正确时,可手动修改案号和关键时间。\n\nArgs:\n task_id: 识别任务ID\n payload: 包含 case_number 和/或 key_time 的请求体\n\nReturns:\n 更新结果", "operationId": "apps_document_recognition_api_document_recognition_api_update_task_info", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "title": "Task Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateInfoRequestSchema" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateInfoResponseSchema" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Task Info", "tags": [ "法院文书识别" ] } }, "/api/v1/documents/cases/{case_id}/authorization/legal-rep-certificate/{client_id}/download": { "post": { "operationId": "apps_documents_api_authorization_material_api_download_legal_rep_certificate", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } }, { "in": "path", "name": "client_id", "required": true, "schema": { "title": "Client Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Download Legal Rep Certificate", "tags": [ "授权委托材料生成" ] } }, "/api/v1/documents/cases/{case_id}/authorization/letter/download": { "post": { "operationId": "apps_documents_api_authorization_material_api_download_authority_letter", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Download Authority Letter", "tags": [ "授权委托材料生成" ] } }, "/api/v1/documents/cases/{case_id}/authorization/package/download": { "post": { "operationId": "apps_documents_api_authorization_material_api_download_authorization_package", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Download Authorization Package", "tags": [ "授权委托材料生成" ] } }, "/api/v1/documents/cases/{case_id}/authorization/power-of-attorney/combined/download": { "post": { "operationId": "apps_documents_api_authorization_material_api_download_power_of_attorney_combined", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CombinedPowerOfAttorneyIn" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Download Power Of Attorney Combined", "tags": [ "授权委托材料生成" ] } }, "/api/v1/documents/cases/{case_id}/authorization/power-of-attorney/{client_id}/download": { "post": { "operationId": "apps_documents_api_authorization_material_api_download_power_of_attorney", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } }, { "in": "path", "name": "client_id", "required": true, "schema": { "title": "Client Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Download Power Of Attorney", "tags": [ "授权委托材料生成" ] } }, "/api/v1/documents/cases/{case_id}/litigation/{litigation_type}/download": { "post": { "description": "生成并下载诉讼文档\n\nArgs:\n case_id: 案件 ID\n litigation_type: 诉讼类型 (complaint=起诉状, defense=答辩状)\n\nReturns:\n 文档文件下载\n\nRequirements: 7.1, 2.3, 4.4", "operationId": "apps_documents_api_litigation_generation_api_download_litigation_document", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } }, { "in": "path", "name": "litigation_type", "required": true, "schema": { "title": "Litigation Type", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Download Litigation Document", "tags": [ "诉讼文书生成" ] } }, "/api/v1/documents/cases/{case_id}/litigation/{litigation_type}/preview": { "get": { "operationId": "apps_documents_api_litigation_generation_api_preview_litigation_context", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } }, { "in": "path", "name": "litigation_type", "required": true, "schema": { "title": "Litigation Type", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Preview Litigation Context", "tags": [ "诉讼文书生成" ] } }, "/api/v1/documents/cases/{case_id}/preservation/application/download": { "post": { "description": "下载财产保全申请书\n\nPOST /api/v1/documents/cases/{case_id}/preservation/application/download\n\nRequirements: 2.1, 3.1", "operationId": "apps_documents_api_preservation_materials_api_download_preservation_application", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Download Preservation Application", "tags": [ "财产保全材料生成" ] } }, "/api/v1/documents/cases/{case_id}/preservation/delay-delivery/download": { "post": { "description": "下载暂缓送达申请书\n\nPOST /api/v1/documents/cases/{case_id}/preservation/delay-delivery/download\n\nRequirements: 2.2, 3.2", "operationId": "apps_documents_api_preservation_materials_api_download_delay_delivery_application", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Download Delay Delivery Application", "tags": [ "财产保全材料生成" ] } }, "/api/v1/documents/cases/{case_id}/preservation/package/download": { "post": { "description": "下载全套财产保全材料\n\nPOST /api/v1/documents/cases/{case_id}/preservation/package/download\n\nRequirements: 3.3, 10.1", "operationId": "apps_documents_api_preservation_materials_api_download_full_package", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Download Full Package", "tags": [ "财产保全材料生成" ] } }, "/api/v1/documents/cases/{case_id}/templates/{template_id}/download": { "post": { "description": "渲染案件文件模板并下载", "operationId": "apps_documents_api_case_template_download_api_download_case_template", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } }, { "in": "path", "name": "template_id", "required": true, "schema": { "title": "Template Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Download Case Template", "tags": [ "案件模板下载" ] } }, "/api/v1/documents/contracts/{contract_id}/download": { "get": { "description": "下载合同文档(DOCX 格式)\n\n生成单个合同 Word 文档.\n如果合同有文件夹绑定,文件会保存到绑定文件夹,返回 JSON 响应.\n如果没有绑定,返回文件下载响应.\n\nArgs:\n contract_id: 合同 ID\n\nReturns:\n DOCX 文件下载响应或 JSON 响应", "operationId": "apps_documents_api_generation_api_download_contract_document", "parameters": [ { "in": "path", "name": "contract_id", "required": true, "schema": { "title": "Contract Id", "type": "integer" } }, { "in": "query", "name": "split_fee", "required": false, "schema": { "default": true, "title": "Split Fee", "type": "boolean" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Download Contract Document", "tags": [ "文档生成" ] } }, "/api/v1/documents/contracts/{contract_id}/folder/download": { "get": { "description": "下载合同文件夹(ZIP 格式)\n\n生成包含完整文件夹结构和合同文书的 ZIP 压缩包.\n\nArgs:\n contract_id: 合同 ID\n\nReturns:\n ZIP 文件下载响应", "operationId": "apps_documents_api_generation_api_download_contract_folder", "parameters": [ { "in": "path", "name": "contract_id", "required": true, "schema": { "title": "Contract Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Download Contract Folder", "tags": [ "文档生成" ] } }, "/api/v1/documents/contracts/{contract_id}/preview": { "get": { "description": "合同占位符预览", "operationId": "apps_documents_api_generation_api_preview_contract_context", "parameters": [ { "in": "path", "name": "contract_id", "required": true, "schema": { "title": "Contract Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Preview Contract Context", "tags": [ "文档生成" ] } }, "/api/v1/documents/contracts/{contract_id}/supplementary-agreements/{agreement_id}/download": { "get": { "description": "下载补充协议文档(DOCX 格式)\n\n生成补充协议 Word 文档.\n如果合同有文件夹绑定,文件会保存到绑定文件夹,返回 JSON 响应.\n如果没有绑定,返回文件下载响应.\n\nArgs:\n contract_id: 合同 ID\n agreement_id: 补充协议 ID\n\nReturns:\n DOCX 文件下载响应或 JSON 响应", "operationId": "apps_documents_api_generation_api_download_supplementary_agreement", "parameters": [ { "in": "path", "name": "contract_id", "required": true, "schema": { "title": "Contract Id", "type": "integer" } }, { "in": "path", "name": "agreement_id", "required": true, "schema": { "title": "Agreement Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Download Supplementary Agreement", "tags": [ "文档生成" ] } }, "/api/v1/documents/contracts/{contract_id}/supplementary-agreements/{agreement_id}/preview": { "get": { "description": "补充协议占位符预览", "operationId": "apps_documents_api_generation_api_preview_supplementary_agreement_context", "parameters": [ { "in": "path", "name": "contract_id", "required": true, "schema": { "title": "Contract Id", "type": "integer" } }, { "in": "path", "name": "agreement_id", "required": true, "schema": { "title": "Agreement Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Preview Supplementary Agreement Context", "tags": [ "文档生成" ] } }, "/api/v1/documents/external-templates/fill": { "post": { "description": "执行填充(单个或批量),返回文件信息", "operationId": "apps_documents_api_external_template_api_fill_templates", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FillRequestSchema" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Fill Templates", "tags": [ "外部模板" ] } }, "/api/v1/documents/external-templates/history": { "get": { "description": "填充历史查询", "operationId": "apps_documents_api_external_template_api_get_fill_history", "parameters": [ { "in": "query", "name": "case_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Case Id" } }, { "in": "query", "name": "template_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Template Id" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Fill History", "tags": [ "外部模板" ] } }, "/api/v1/documents/external-templates/mappings/{mapping_id}": { "delete": { "description": "删除字段映射", "operationId": "apps_documents_api_external_template_api_delete_mapping", "parameters": [ { "in": "path", "name": "mapping_id", "required": true, "schema": { "title": "Mapping Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Mapping", "tags": [ "外部模板" ] }, "put": { "description": "更新字段映射", "operationId": "apps_documents_api_external_template_api_update_mapping", "parameters": [ { "in": "path", "name": "mapping_id", "required": true, "schema": { "title": "Mapping Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MappingUpdateSchema" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Mapping", "tags": [ "外部模板" ] } }, "/api/v1/documents/external-templates/match": { "get": { "description": "模板匹配推荐", "operationId": "apps_documents_api_external_template_api_match_templates", "parameters": [ { "in": "query", "name": "case_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Case Id" } }, { "in": "query", "name": "source_name", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Source Name" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Match Templates", "tags": [ "外部模板" ] } }, "/api/v1/documents/external-templates/statistics": { "get": { "description": "模板统计", "operationId": "apps_documents_api_external_template_api_get_statistics", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Statistics", "tags": [ "外部模板" ] } }, "/api/v1/documents/external-templates/{template_id}/analyze": { "post": { "description": "触发/重新触发 LLM 分析", "operationId": "apps_documents_api_external_template_api_analyze_template", "parameters": [ { "in": "path", "name": "template_id", "required": true, "schema": { "title": "Template Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Analyze Template", "tags": [ "外部模板" ] } }, "/api/v1/documents/external-templates/{template_id}/confirm": { "post": { "description": "确认字段映射", "operationId": "apps_documents_api_external_template_api_confirm_mappings", "parameters": [ { "in": "path", "name": "template_id", "required": true, "schema": { "title": "Template Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Confirm Mappings", "tags": [ "外部模板" ] } }, "/api/v1/documents/external-templates/{template_id}/custom-fields": { "get": { "description": "获取需手动输入的自定义字段", "operationId": "apps_documents_api_external_template_api_get_custom_fields", "parameters": [ { "in": "path", "name": "template_id", "required": true, "schema": { "title": "Template Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Custom Fields", "tags": [ "外部模板" ] } }, "/api/v1/documents/external-templates/{template_id}/mappings": { "get": { "description": "获取模板的所有字段映射", "operationId": "apps_documents_api_external_template_api_list_mappings", "parameters": [ { "in": "path", "name": "template_id", "required": true, "schema": { "title": "Template Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Mappings", "tags": [ "外部模板" ] }, "post": { "description": "手动添加字段映射", "operationId": "apps_documents_api_external_template_api_create_mapping", "parameters": [ { "in": "path", "name": "template_id", "required": true, "schema": { "title": "Template Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MappingCreateSchema" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Mapping", "tags": [ "外部模板" ] } }, "/api/v1/documents/external-templates/{template_id}/preview": { "get": { "description": "填充预览", "operationId": "apps_documents_api_external_template_api_preview_fill", "parameters": [ { "in": "path", "name": "template_id", "required": true, "schema": { "title": "Template Id", "type": "integer" } }, { "in": "query", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } }, { "in": "query", "name": "party_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Party Id" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Preview Fill", "tags": [ "外部模板" ] } }, "/api/v1/documents/external-templates/{template_id}/preview-html": { "get": { "description": "将 docx 转为 HTML 用于预览", "operationId": "apps_documents_api_external_template_api_get_preview_html", "parameters": [ { "in": "path", "name": "template_id", "required": true, "schema": { "title": "Template Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Preview Html", "tags": [ "外部模板" ] } }, "/api/v1/documents/folder-templates": { "get": { "description": "获取文件夹模板列表\n\nArgs:\n template_type: 模板类型过滤 (contract/case)\n case_type: 案件类型过滤\n is_active: 启用状态过滤", "operationId": "apps_documents_api_folder_template_api_list_folder_templates", "parameters": [ { "in": "query", "name": "template_type", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Template Type" } }, { "in": "query", "name": "case_type", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Case Type" } }, { "in": "query", "name": "is_active", "required": false, "schema": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Is Active" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/FolderTemplateOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Folder Templates", "tags": [ "文件夹模板" ] }, "post": { "description": "创建文件夹模板", "operationId": "apps_documents_api_folder_template_api_create_folder_template", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FolderTemplateIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FolderTemplateOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Folder Template", "tags": [ "文件夹模板" ] } }, "/api/v1/documents/folder-templates/{template_id}": { "delete": { "description": "删除文件夹模板(软删除)", "operationId": "apps_documents_api_folder_template_api_delete_folder_template", "parameters": [ { "in": "path", "name": "template_id", "required": true, "schema": { "title": "Template Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": true, "title": "Response", "type": "object" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Folder Template", "tags": [ "文件夹模板" ] }, "get": { "description": "获取文件夹模板详情", "operationId": "apps_documents_api_folder_template_api_get_folder_template", "parameters": [ { "in": "path", "name": "template_id", "required": true, "schema": { "title": "Template Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FolderTemplateOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Folder Template", "tags": [ "文件夹模板" ] }, "put": { "description": "更新文件夹模板", "operationId": "apps_documents_api_folder_template_api_update_folder_template", "parameters": [ { "in": "path", "name": "template_id", "required": true, "schema": { "title": "Template Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FolderTemplateUpdate" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FolderTemplateOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Folder Template", "tags": [ "文件夹模板" ] } }, "/api/v1/documents/folder-templates/{template_id}/validate": { "post": { "description": "验证文件夹模板结构", "operationId": "apps_documents_api_folder_template_api_validate_folder_structure", "parameters": [ { "in": "path", "name": "template_id", "required": true, "schema": { "title": "Template Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": true, "title": "Response", "type": "object" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Validate Folder Structure", "tags": [ "文件夹模板" ] } }, "/api/v1/documents/litigation/complaint/generate": { "post": { "description": "生成起诉状\n\n使用统一 LLM 结构化链生成起诉状文书.\n\nArgs:\n data: 起诉状生成请求数据\n\nReturns:\n 起诉状生成结果(JSON 格式)\n\nRequirements: 7.1, 2.3, 4.4", "operationId": "apps_documents_api_litigation_generation_api_generate_complaint", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ComplaintRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": true, "title": "Response", "type": "object" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Generate Complaint", "tags": [ "诉讼文书生成" ] } }, "/api/v1/documents/litigation/defense/generate": { "post": { "description": "生成答辩状\n\n使用统一 LLM 结构化链生成答辩状文书.\n\nArgs:\n data: 答辩状生成请求数据\n\nReturns:\n 答辩状生成结果(JSON 格式)\n\nRequirements: 7.1, 2.3, 4.4", "operationId": "apps_documents_api_litigation_generation_api_generate_defense", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DefenseRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": true, "title": "Response", "type": "object" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Generate Defense", "tags": [ "诉讼文书生成" ] } }, "/api/v1/documents/placeholders": { "get": { "description": "获取替换词列表\n\nArgs:\n is_active: 启用状态过滤", "operationId": "apps_documents_api_placeholder_api_list_placeholders", "parameters": [ { "in": "query", "name": "is_active", "required": false, "schema": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Is Active" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/PlaceholderOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Placeholders", "tags": [ "替换词" ] }, "post": { "description": "创建替换词", "operationId": "apps_documents_api_placeholder_api_create_placeholder", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlaceholderIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlaceholderOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Placeholder", "tags": [ "替换词" ] } }, "/api/v1/documents/placeholders/by-key/{key}": { "get": { "description": "根据键获取替换词", "operationId": "apps_documents_api_placeholder_api_get_placeholder_by_key", "parameters": [ { "in": "path", "name": "key", "required": true, "schema": { "title": "Key", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlaceholderOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Placeholder By Key", "tags": [ "替换词" ] } }, "/api/v1/documents/placeholders/preview/{contract_id}": { "get": { "operationId": "apps_documents_api_placeholder_api_preview_placeholders", "parameters": [ { "in": "path", "name": "contract_id", "required": true, "schema": { "title": "Contract Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlaceholderPreviewOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Preview Placeholders", "tags": [ "替换词" ] } }, "/api/v1/documents/placeholders/{placeholder_id}": { "delete": { "description": "删除替换词(软删除)", "operationId": "apps_documents_api_placeholder_api_delete_placeholder", "parameters": [ { "in": "path", "name": "placeholder_id", "required": true, "schema": { "title": "Placeholder Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": true, "title": "Response", "type": "object" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Placeholder", "tags": [ "替换词" ] }, "get": { "description": "获取替换词详情", "operationId": "apps_documents_api_placeholder_api_get_placeholder", "parameters": [ { "in": "path", "name": "placeholder_id", "required": true, "schema": { "title": "Placeholder Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlaceholderOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Placeholder", "tags": [ "替换词" ] }, "put": { "description": "更新替换词", "operationId": "apps_documents_api_placeholder_api_update_placeholder", "parameters": [ { "in": "path", "name": "placeholder_id", "required": true, "schema": { "title": "Placeholder Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlaceholderUpdate" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PlaceholderOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Placeholder", "tags": [ "替换词" ] } }, "/api/v1/documents/templates": { "get": { "description": "获取文件模板列表\n\nArgs:\n template_type: 模板类型过滤 (contract/case)\n case_type: 案件类型过滤\n is_active: 启用状态过滤", "operationId": "apps_documents_api_document_api_list_document_templates", "parameters": [ { "in": "query", "name": "template_type", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Template Type" } }, { "in": "query", "name": "case_type", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Case Type" } }, { "in": "query", "name": "is_active", "required": false, "schema": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Is Active" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/DocumentTemplateOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Document Templates", "tags": [ "文件模板" ] }, "post": { "description": "创建文件模板", "operationId": "apps_documents_api_document_api_create_document_template", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentTemplateIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentTemplateOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Document Template", "tags": [ "文件模板" ] } }, "/api/v1/documents/templates/{template_id}": { "delete": { "description": "删除文件模板(软删除)", "operationId": "apps_documents_api_document_api_delete_document_template", "parameters": [ { "in": "path", "name": "template_id", "required": true, "schema": { "title": "Template Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": true, "title": "Response", "type": "object" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Document Template", "tags": [ "文件模板" ] }, "get": { "description": "获取文件模板详情", "operationId": "apps_documents_api_document_api_get_document_template", "parameters": [ { "in": "path", "name": "template_id", "required": true, "schema": { "title": "Template Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentTemplateOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Document Template", "tags": [ "文件模板" ] }, "put": { "description": "更新文件模板", "operationId": "apps_documents_api_document_api_update_document_template", "parameters": [ { "in": "path", "name": "template_id", "required": true, "schema": { "title": "Template Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentTemplateUpdate" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocumentTemplateOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Document Template", "tags": [ "文件模板" ] } }, "/api/v1/documents/templates/{template_id}/placeholders": { "get": { "description": "提取文件模板中的占位符", "operationId": "apps_documents_api_document_api_extract_template_placeholders", "parameters": [ { "in": "path", "name": "template_id", "required": true, "schema": { "title": "Template Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "type": "string" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Extract Template Placeholders", "tags": [ "文件模板" ] } }, "/api/v1/documents/templates/{template_id}/undefined-placeholders": { "get": { "description": "获取文件模板中未定义的占位符", "operationId": "apps_documents_api_document_api_get_undefined_placeholders", "parameters": [ { "in": "path", "name": "template_id", "required": true, "schema": { "title": "Template Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "type": "string" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Undefined Placeholders", "tags": [ "文件模板" ] } }, "/api/v1/enterprise-data/biddings/search": { "get": { "operationId": "apps_enterprise_data_api_enterprise_data_api_search_bidding_info", "parameters": [ { "in": "query", "name": "keyword", "required": true, "schema": { "title": "Keyword", "type": "string" } }, { "in": "query", "name": "search_type", "required": false, "schema": { "default": 1, "title": "Search Type", "type": "integer" } }, { "in": "query", "name": "bid_type", "required": false, "schema": { "default": 4, "title": "Bid Type", "type": "integer" } }, { "in": "query", "name": "start_date", "required": false, "schema": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Start Date" } }, { "in": "query", "name": "end_date", "required": false, "schema": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "End Date" } }, { "in": "query", "name": "provider", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Provider" } }, { "in": "query", "name": "include_raw", "required": false, "schema": { "default": false, "title": "Include Raw", "type": "boolean" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EnterpriseQueryOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Search Bidding Info", "tags": [ "企业数据查询" ] } }, "/api/v1/enterprise-data/companies/search": { "get": { "operationId": "apps_enterprise_data_api_enterprise_data_api_search_companies", "parameters": [ { "in": "query", "name": "keyword", "required": true, "schema": { "title": "Keyword", "type": "string" } }, { "in": "query", "name": "provider", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Provider" } }, { "in": "query", "name": "include_raw", "required": false, "schema": { "default": false, "title": "Include Raw", "type": "boolean" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EnterpriseQueryOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Search Companies", "tags": [ "企业数据查询" ] } }, "/api/v1/enterprise-data/companies/{company_id}": { "get": { "operationId": "apps_enterprise_data_api_enterprise_data_api_get_company_profile", "parameters": [ { "in": "path", "name": "company_id", "required": true, "schema": { "title": "Company Id", "type": "string" } }, { "in": "query", "name": "provider", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Provider" } }, { "in": "query", "name": "include_raw", "required": false, "schema": { "default": false, "title": "Include Raw", "type": "boolean" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EnterpriseQueryOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Company Profile", "tags": [ "企业数据查询" ] } }, "/api/v1/enterprise-data/companies/{company_id}/personnel": { "get": { "operationId": "apps_enterprise_data_api_enterprise_data_api_get_company_personnel", "parameters": [ { "in": "path", "name": "company_id", "required": true, "schema": { "title": "Company Id", "type": "string" } }, { "in": "query", "name": "provider", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Provider" } }, { "in": "query", "name": "include_raw", "required": false, "schema": { "default": false, "title": "Include Raw", "type": "boolean" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EnterpriseQueryOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Company Personnel", "tags": [ "企业数据查询" ] } }, "/api/v1/enterprise-data/companies/{company_id}/risks": { "get": { "operationId": "apps_enterprise_data_api_enterprise_data_api_get_company_risks", "parameters": [ { "in": "path", "name": "company_id", "required": true, "schema": { "title": "Company Id", "type": "string" } }, { "in": "query", "name": "risk_type", "required": false, "schema": { "default": "自身风险", "enum": [ "周边风险", "预警提醒", "自身风险", "历史风险" ], "title": "Risk Type", "type": "string" } }, { "in": "query", "name": "provider", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Provider" } }, { "in": "query", "name": "include_raw", "required": false, "schema": { "default": false, "title": "Include Raw", "type": "boolean" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EnterpriseQueryOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Company Risks", "tags": [ "企业数据查询" ] } }, "/api/v1/enterprise-data/companies/{company_id}/shareholders": { "get": { "operationId": "apps_enterprise_data_api_enterprise_data_api_get_company_shareholders", "parameters": [ { "in": "path", "name": "company_id", "required": true, "schema": { "title": "Company Id", "type": "string" } }, { "in": "query", "name": "provider", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Provider" } }, { "in": "query", "name": "include_raw", "required": false, "schema": { "default": false, "title": "Include Raw", "type": "boolean" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EnterpriseQueryOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Company Shareholders", "tags": [ "企业数据查询" ] } }, "/api/v1/enterprise-data/personnel/{hcgid}": { "get": { "operationId": "apps_enterprise_data_api_enterprise_data_api_get_person_profile", "parameters": [ { "in": "path", "name": "hcgid", "required": true, "schema": { "title": "Hcgid", "type": "string" } }, { "in": "query", "name": "provider", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Provider" } }, { "in": "query", "name": "include_raw", "required": false, "schema": { "default": false, "title": "Include Raw", "type": "boolean" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EnterpriseQueryOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Person Profile", "tags": [ "企业数据查询" ] } }, "/api/v1/enterprise-data/providers": { "get": { "operationId": "apps_enterprise_data_api_enterprise_data_api_list_providers", "parameters": [ { "in": "query", "name": "include_tools", "required": false, "schema": { "default": false, "title": "Include Tools", "type": "boolean" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EnterpriseProvidersOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Providers", "tags": [ "企业数据查询" ] } }, "/api/v1/evidence/ai/generate-cross-examination": { "post": { "operationId": "apps_evidence_api_evidence_api_ai_generate_cross_examination", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AICrossExamRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AICrossExamResponse" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "AI 质证意见生成", "tags": [ "证据管理" ] } }, "/api/v1/evidence/ai/suggest-purpose": { "post": { "operationId": "apps_evidence_api_evidence_api_ai_suggest_purpose", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AIPurposeRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AIPurposeResponse" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "AI 证明目的建议", "tags": [ "证据管理" ] } }, "/api/v1/evidence/evidence-lists/{list_id}/reorder": { "post": { "description": "重新排序证据明细\n\nArgs:\n list_id: 证据清单 ID\n data: 包含新顺序的明细 ID 列表\n\nReturns:\n 操作结果\n\nRequirements: 4.2, 4.3", "operationId": "apps_evidence_api_evidence_api_reorder_evidence_items", "parameters": [ { "in": "path", "name": "list_id", "required": true, "schema": { "title": "List Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReorderItemsRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReorderItemsResponse" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "重新排序证据明细", "tags": [ "证据管理" ] } }, "/api/v1/fee-notice/cases/search": { "get": { "description": "Search cases for fee comparison.", "operationId": "apps_fee_notice_api_fee_notice_api_search_cases", "parameters": [ { "in": "query", "name": "keyword", "required": true, "schema": { "title": "Keyword", "type": "string" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 20, "title": "Limit", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Search Cases", "tags": [ "交费通知书识别" ] } }, "/api/v1/fee-notice/compare": { "post": { "description": "Compare extracted fee values with system-calculated values.", "operationId": "apps_fee_notice_api_fee_notice_api_compare_fee", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FeeCompareIn" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Compare Fee", "tags": [ "交费通知书识别" ] } }, "/api/v1/fee-notice/extract": { "post": { "description": "Extract fee notice information from uploaded PDF files.", "operationId": "apps_fee_notice_api_fee_notice_api_extract_fee_notice", "parameters": [ { "in": "query", "name": "debug", "required": false, "schema": { "default": false, "title": "Debug", "type": "boolean" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "properties": { "files": { "items": { "format": "binary", "type": "string" }, "title": "Files", "type": "array" } }, "required": [ "files" ], "title": "FileParams", "type": "object" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Extract Fee Notice", "tags": [ "交费通知书识别" ] } }, "/api/v1/health": { "get": { "description": "健康检查端点\n返回系统整体健康状态", "operationId": "apiSystem_api_health_check", "parameters": [], "responses": { "200": { "description": "OK" } }, "summary": "Health Check", "tags": [ "系统" ] } }, "/api/v1/health/detail": { "get": { "description": "详细健康检查端点\n返回包含磁盘空间等详细信息的健康状态", "operationId": "apiSystem_api_health_check_detail", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Health Check Detail", "tags": [ "系统" ] } }, "/api/v1/health/live": { "get": { "description": "存活探针 (Kubernetes liveness probe)\n仅检查应用是否运行", "operationId": "apiSystem_api_liveness_probe", "parameters": [], "responses": { "200": { "description": "OK" } }, "summary": "Liveness Probe", "tags": [ "系统" ] } }, "/api/v1/health/ready": { "get": { "description": "就绪探针 (Kubernetes readiness probe)\n检查应用是否可以接收流量", "operationId": "apiSystem_api_readiness_probe", "parameters": [], "responses": { "200": { "description": "OK" } }, "summary": "Readiness Probe", "tags": [ "系统" ] } }, "/api/v1/i18n/language": { "post": { "description": "设置用户语言偏好", "operationId": "apps_core_api_i18n_api_set_language", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LanguageSchema" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "type": "string" }, "title": "Response", "type": "object" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Set Language", "tags": [ "国际化" ] } }, "/api/v1/i18n/languages": { "get": { "description": "返回系统支持的语言列表", "operationId": "apps_core_api_i18n_api_list_languages", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/LanguageItemSchema" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "summary": "List Languages", "tags": [ "国际化" ] } }, "/api/v1/image-rotation/detect-orientation": { "post": { "operationId": "apps_image_rotation_api_image_rotation_api_detect_orientation", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Detect Orientation", "tags": [ "图片旋转" ] } }, "/api/v1/image-rotation/detect-page-orientation": { "post": { "operationId": "apps_image_rotation_api_image_rotation_api_detect_page_orientation", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Detect Page Orientation", "tags": [ "图片旋转" ] } }, "/api/v1/image-rotation/export": { "post": { "operationId": "apps_image_rotation_api_image_rotation_api_export_images", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Export Images", "tags": [ "图片旋转" ] } }, "/api/v1/image-rotation/export-pdf": { "post": { "operationId": "apps_image_rotation_api_image_rotation_api_export_pdf", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Export Pdf", "tags": [ "图片旋转" ] } }, "/api/v1/image-rotation/extract-pdf-fast": { "post": { "operationId": "apps_image_rotation_api_image_rotation_api_extract_pdf_fast", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Extract Pdf Fast", "tags": [ "图片旋转" ] } }, "/api/v1/image-rotation/suggest-rename": { "post": { "operationId": "apps_image_rotation_api_image_rotation_api_suggest_rename", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Suggest Rename", "tags": [ "图片旋转" ] } }, "/api/v1/inbox/messages": { "get": { "description": "收件箱消息列表。", "operationId": "apps_message_hub_api_inbox_api_list_messages", "parameters": [ { "in": "query", "name": "source_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Source Id" } }, { "in": "query", "name": "has_attachments", "required": false, "schema": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Has Attachments" } }, { "in": "query", "name": "search", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Search" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/InboxMessageOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Messages", "tags": [ "收件箱" ] } }, "/api/v1/inbox/messages/{message_id}": { "get": { "description": "收件箱消息详情。", "operationId": "apps_message_hub_api_inbox_api_get_message", "parameters": [ { "in": "path", "name": "message_id", "required": true, "schema": { "title": "Message Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InboxMessageDetailOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Message", "tags": [ "收件箱" ] } }, "/api/v1/inbox/messages/{message_id}/attachments/{part_index}/download": { "get": { "description": "下载附件。", "operationId": "apps_message_hub_api_inbox_api_download_attachment", "parameters": [ { "in": "path", "name": "message_id", "required": true, "schema": { "title": "Message Id", "type": "integer" } }, { "in": "path", "name": "part_index", "required": true, "schema": { "title": "Part Index", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Download Attachment", "tags": [ "收件箱" ] } }, "/api/v1/inbox/messages/{message_id}/attachments/{part_index}/preview": { "get": { "description": "预览附件(inline)。", "operationId": "apps_message_hub_api_inbox_api_preview_attachment", "parameters": [ { "in": "path", "name": "message_id", "required": true, "schema": { "title": "Message Id", "type": "integer" } }, { "in": "path", "name": "part_index", "required": true, "schema": { "title": "Part Index", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Preview Attachment", "tags": [ "收件箱" ] } }, "/api/v1/invoice-recognition/quick-recognize": { "post": { "description": "快速识别发票文件(不创建任务)", "operationId": "apps_invoice_recognition_api_invoice_recognition_api_quick_recognize", "parameters": [], "requestBody": { "content": { "multipart/form-data": { "schema": { "properties": { "files": { "items": { "format": "binary", "type": "string" }, "title": "Files", "type": "array" } }, "required": [ "files" ], "title": "FileParams", "type": "object" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Quick Recognize", "tags": [ "发票识别" ] } }, "/api/v1/invoice-recognition/{task_id}/download": { "get": { "description": "灵活下载:scope=single/category/all,fmt=pdf/zip", "operationId": "apps_invoice_recognition_api_invoice_recognition_api_download_invoices", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "title": "Task Id", "type": "integer" } }, { "in": "query", "name": "scope", "required": true, "schema": { "title": "Scope", "type": "string" } }, { "in": "query", "name": "fmt", "required": false, "schema": { "default": "zip", "title": "Fmt", "type": "string" } }, { "in": "query", "name": "invoice_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Invoice Id" } }, { "in": "query", "name": "category", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Category" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Download Invoices", "tags": [ "发票识别" ] } }, "/api/v1/invoice-recognition/{task_id}/status": { "get": { "description": "任务状态 + 发票记录列表", "operationId": "apps_invoice_recognition_api_invoice_recognition_api_get_task_status", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "title": "Task Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Task Status", "tags": [ "发票识别" ] } }, "/api/v1/invoice-recognition/{task_id}/upload": { "post": { "description": "多文件上传 + 自动识别", "operationId": "apps_invoice_recognition_api_invoice_recognition_api_upload_invoices", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "title": "Task Id", "type": "integer" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "properties": { "files": { "items": { "format": "binary", "type": "string" }, "title": "Files", "type": "array" } }, "required": [ "files" ], "title": "FileParams", "type": "object" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Upload Invoices", "tags": [ "发票识别" ] } }, "/api/v1/legal-research/capability/search": { "post": { "operationId": "apps_legal_research_api_legal_research_api_capability_search", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentSearchRequestV1" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentSearchResponseV1" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Capability Search", "tags": [ "案例检索" ] } }, "/api/v1/legal-research/capability/search/mcp": { "post": { "operationId": "apps_legal_research_api_legal_research_api_capability_search_mcp", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AgentSearchRequestV1" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": true, "title": "Response", "type": "object" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Capability Search Mcp", "tags": [ "案例检索" ] } }, "/api/v1/legal-research/tasks": { "post": { "operationId": "apps_legal_research_api_legal_research_api_create_task", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LegalResearchTaskCreateIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LegalResearchCreateOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Task", "tags": [ "案例检索" ] } }, "/api/v1/legal-research/tasks/{task_id}": { "get": { "operationId": "apps_legal_research_api_legal_research_api_get_task", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "title": "Task Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LegalResearchTaskOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Task", "tags": [ "案例检索" ] } }, "/api/v1/legal-research/tasks/{task_id}/results": { "get": { "operationId": "apps_legal_research_api_legal_research_api_list_results", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "title": "Task Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/LegalResearchResultOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Results", "tags": [ "案例检索" ] } }, "/api/v1/legal-research/tasks/{task_id}/results/download": { "get": { "operationId": "apps_legal_research_api_legal_research_api_download_all_results", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "title": "Task Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Download All Results", "tags": [ "案例检索" ] } }, "/api/v1/legal-research/tasks/{task_id}/results/{result_id}/download": { "get": { "operationId": "apps_legal_research_api_legal_research_api_download_single_result", "parameters": [ { "in": "path", "name": "task_id", "required": true, "schema": { "title": "Task Id", "type": "integer" } }, { "in": "path", "name": "result_id", "required": true, "schema": { "title": "Result Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Download Single Result", "tags": [ "案例检索" ] } }, "/api/v1/llm/chat": { "post": { "description": "带上下文的对话\n\n支持多轮对话和上下文记忆功能.", "operationId": "apps_core_api_ninja_llm_api_chat_with_context", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChatRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChatResponse" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Chat With Context", "tags": [ "LLM 服务" ] } }, "/api/v1/llm/chat/stream": { "post": { "operationId": "apps_core_api_ninja_llm_api_chat_with_context_stream", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChatRequest" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Chat With Context Stream", "tags": [ "LLM 服务" ] } }, "/api/v1/llm/conversation/{session_id}/history": { "get": { "description": "获取对话历史\n\n返回指定会话的对话记录.", "operationId": "apps_core_api_ninja_llm_api_get_conversation_history", "parameters": [ { "in": "path", "name": "session_id", "required": true, "schema": { "title": "Session Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConversationHistoryResponse" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Conversation History", "tags": [ "LLM 服务" ] } }, "/api/v1/llm/templates/sync": { "post": { "description": "同步代码内置 Prompt 模板到数据库(仅管理员)。", "operationId": "apps_core_api_ninja_llm_api_sync_prompt_templates", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PromptTemplateSyncResponse" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Sync Prompt Templates", "tags": [ "LLM 服务" ] } }, "/api/v1/lpr/calculate": { "post": { "description": "计算LPR利息.\n\n支持固定本金和变动本金两种计算模式。\n\nArgs:\n request: HTTP请求\n data: 计算请求参数\n\nReturns:\n 计算结果或错误信息", "operationId": "apps_finance_api_lpr_api_calculate_interest", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InterestCalculateRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InterestCalculateResponse" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Calculate Interest", "tags": [ "LPR利率" ] } }, "/api/v1/lpr/rates": { "get": { "description": "获取LPR利率列表.\n\nArgs:\n request: HTTP请求\n start_date: 开始日期筛选\n end_date: 结束日期筛选\n limit: 返回数量限制\n\nReturns:\n LPR利率列表", "operationId": "apps_finance_api_lpr_api_list_lpr_rates", "parameters": [ { "in": "query", "name": "start_date", "required": false, "schema": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Start Date" } }, { "in": "query", "name": "end_date", "required": false, "schema": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "End Date" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 100, "title": "Limit", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LPRRateListResponse" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Lpr Rates", "tags": [ "LPR利率" ] } }, "/api/v1/lpr/rates/latest": { "get": { "description": "获取最新LPR利率.\n\nArgs:\n request: HTTP请求\n\nReturns:\n 最新LPR利率", "operationId": "apps_finance_api_lpr_api_get_latest_lpr_rate", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LPRRateSchema" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Latest Lpr Rate", "tags": [ "LPR利率" ] } }, "/api/v1/lpr/sync": { "post": { "description": "手动同步LPR数据.\n\n从央行官网获取最新LPR数据并同步到数据库。\n需要管理员权限。\n\nArgs:\n request: HTTP请求\n data: 同步请求参数\n\nReturns:\n 同步结果", "operationId": "apps_finance_api_lpr_api_sync_lpr_rates", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LPRSyncRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LPRSyncResponse" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Sync Lpr Rates", "tags": [ "LPR利率" ] } }, "/api/v1/lpr/sync/status": { "get": { "description": "获取LPR同步状态.\n\nArgs:\n request: HTTP请求\n\nReturns:\n 同步状态信息", "operationId": "apps_finance_api_lpr_api_get_sync_status", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LPRSyncStatusResponse" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Sync Status", "tags": [ "LPR利率" ] } }, "/api/v1/oa-filing/configs": { "get": { "description": "返回当前用户有凭证且系统支持的 OA 站点列表。", "operationId": "apps_oa_filing_api_filing_api_list_configs", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/OAConfigOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Configs", "tags": [ "OA立案" ] } }, "/api/v1/oa-filing/execute": { "post": { "description": "执行OA立案。", "operationId": "apps_oa_filing_api_filing_api_execute_filing", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExecuteFilingIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SessionOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Execute Filing", "tags": [ "OA立案" ] } }, "/api/v1/oa-filing/session/{session_id}": { "get": { "description": "查询立案会话状态。", "operationId": "apps_oa_filing_api_filing_api_get_session", "parameters": [ { "in": "path", "name": "session_id", "required": true, "schema": { "title": "Session Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SessionOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Session", "tags": [ "OA立案" ] } }, "/api/v1/organization/credentials": { "get": { "operationId": "apps_organization_api_accountcredential_api_list_credentials", "parameters": [ { "in": "query", "name": "lawyer_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Lawyer Id" } }, { "in": "query", "name": "lawyer_name", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Lawyer Name" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/AccountCredentialOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Credentials", "tags": [ "账号凭证" ] }, "post": { "operationId": "apps_organization_api_accountcredential_api_create_credential", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountCredentialIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountCredentialOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Credential", "tags": [ "账号凭证" ] } }, "/api/v1/organization/credentials/{cred_id}": { "delete": { "operationId": "apps_organization_api_accountcredential_api_delete_credential", "parameters": [ { "in": "path", "name": "cred_id", "required": true, "schema": { "title": "Cred Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Credential", "tags": [ "账号凭证" ] }, "get": { "operationId": "apps_organization_api_accountcredential_api_get_credential", "parameters": [ { "in": "path", "name": "cred_id", "required": true, "schema": { "title": "Cred Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountCredentialOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Credential", "tags": [ "账号凭证" ] }, "put": { "operationId": "apps_organization_api_accountcredential_api_update_credential", "parameters": [ { "in": "path", "name": "cred_id", "required": true, "schema": { "title": "Cred Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountCredentialUpdateIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AccountCredentialOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Credential", "tags": [ "账号凭证" ] } }, "/api/v1/organization/lawfirms": { "get": { "operationId": "apps_organization_api_lawfirm_api_list_lawfirms", "parameters": [ { "in": "query", "name": "name", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Name" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/LawFirmOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Lawfirms", "tags": [ "律所管理" ] }, "post": { "operationId": "apps_organization_api_lawfirm_api_create_lawfirm", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LawFirmIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LawFirmOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Lawfirm", "tags": [ "律所管理" ] } }, "/api/v1/organization/lawfirms/{law_firm_id}": { "delete": { "operationId": "apps_organization_api_lawfirm_api_delete_lawfirm", "parameters": [ { "in": "path", "name": "law_firm_id", "required": true, "schema": { "title": "Law Firm Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Lawfirm", "tags": [ "律所管理" ] }, "get": { "operationId": "apps_organization_api_lawfirm_api_get_lawfirm", "parameters": [ { "in": "path", "name": "law_firm_id", "required": true, "schema": { "title": "Law Firm Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LawFirmOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Lawfirm", "tags": [ "律所管理" ] }, "put": { "operationId": "apps_organization_api_lawfirm_api_update_lawfirm", "parameters": [ { "in": "path", "name": "law_firm_id", "required": true, "schema": { "title": "Law Firm Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LawFirmUpdateIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LawFirmOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Lawfirm", "tags": [ "律所管理" ] } }, "/api/v1/organization/lawyers": { "get": { "operationId": "apps_organization_api_lawyer_api_list_lawyers", "parameters": [ { "in": "query", "name": "search", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Search" } }, { "in": "query", "name": "law_firm_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Law Firm Id" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/LawyerOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Lawyers", "tags": [ "律师管理" ] }, "post": { "operationId": "apps_organization_api_lawyer_api_create_lawyer", "parameters": [], "requestBody": { "content": { "multipart/form-data": { "schema": { "properties": { "license_pdf": { "anyOf": [ { "format": "binary", "type": "string" }, { "type": "null" } ], "title": "License Pdf" }, "payload": { "$ref": "#/components/schemas/LawyerCreateIn" } }, "required": [ "payload" ], "title": "MultiPartBodyParams", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LawyerOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Lawyer", "tags": [ "律师管理" ] } }, "/api/v1/organization/lawyers/{lawyer_id}": { "delete": { "operationId": "apps_organization_api_lawyer_api_delete_lawyer", "parameters": [ { "in": "path", "name": "lawyer_id", "required": true, "schema": { "title": "Lawyer Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Lawyer", "tags": [ "律师管理" ] }, "get": { "operationId": "apps_organization_api_lawyer_api_get_lawyer", "parameters": [ { "in": "path", "name": "lawyer_id", "required": true, "schema": { "title": "Lawyer Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LawyerOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Lawyer", "tags": [ "律师管理" ] }, "put": { "operationId": "apps_organization_api_lawyer_api_update_lawyer", "parameters": [ { "in": "path", "name": "lawyer_id", "required": true, "schema": { "title": "Lawyer Id", "type": "integer" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "properties": { "license_pdf": { "anyOf": [ { "format": "binary", "type": "string" }, { "type": "null" } ], "title": "License Pdf" }, "payload": { "$ref": "#/components/schemas/LawyerUpdateIn" } }, "required": [ "payload" ], "title": "MultiPartBodyParams", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LawyerOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Lawyer", "tags": [ "律师管理" ] } }, "/api/v1/organization/login": { "post": { "operationId": "apps_organization_api_auth_api_login_view", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginOut" } } }, "description": "OK" } }, "summary": "Login View", "tags": [ "认证登录" ] } }, "/api/v1/organization/logout": { "post": { "operationId": "apps_organization_api_auth_api_logout_view", "parameters": [], "responses": { "200": { "description": "OK" } }, "summary": "Logout View", "tags": [ "认证登录" ] } }, "/api/v1/organization/me": { "get": { "operationId": "apps_organization_api_auth_api_me_view", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LawyerOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Me View", "tags": [ "认证登录" ] } }, "/api/v1/organization/teams": { "get": { "operationId": "apps_organization_api_team_api_list_teams", "parameters": [ { "in": "query", "name": "law_firm_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Law Firm Id" } }, { "in": "query", "name": "team_type", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Team Type" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/TeamOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Teams", "tags": [ "团队管理" ] }, "post": { "operationId": "apps_organization_api_team_api_create_team", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TeamIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TeamOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Team", "tags": [ "团队管理" ] } }, "/api/v1/organization/teams/{team_id}": { "delete": { "operationId": "apps_organization_api_team_api_delete_team", "parameters": [ { "in": "path", "name": "team_id", "required": true, "schema": { "title": "Team Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Team", "tags": [ "团队管理" ] }, "get": { "operationId": "apps_organization_api_team_api_get_team", "parameters": [ { "in": "path", "name": "team_id", "required": true, "schema": { "title": "Team Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TeamOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Team", "tags": [ "团队管理" ] }, "put": { "operationId": "apps_organization_api_team_api_update_team", "parameters": [ { "in": "path", "name": "team_id", "required": true, "schema": { "title": "Team Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TeamIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TeamOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Team", "tags": [ "团队管理" ] } }, "/api/v1/pdf-splitting/jobs": { "post": { "operationId": "apps_pdf_splitting_api_pdf_splitting_api_create_pdf_split_job", "parameters": [], "requestBody": { "content": { "multipart/form-data": { "schema": { "properties": { "file": { "anyOf": [ { "format": "binary", "type": "string" }, { "type": "null" } ], "title": "File" }, "ocr_profile": { "default": "balanced", "title": "Ocr Profile", "type": "string" }, "source_path": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Source Path" }, "split_mode": { "default": "content_analysis", "title": "Split Mode", "type": "string" }, "template_key": { "default": "filing_materials_v1", "title": "Template Key", "type": "string" } }, "title": "MultiPartBodyParams", "type": "object" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JobSubmitOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Pdf Split Job", "tags": [ "PDF 拆解" ] } }, "/api/v1/pdf-splitting/jobs/{job_id}": { "get": { "operationId": "apps_pdf_splitting_api_pdf_splitting_api_get_pdf_split_job", "parameters": [ { "in": "path", "name": "job_id", "required": true, "schema": { "format": "uuid", "title": "Job Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JobOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Pdf Split Job", "tags": [ "PDF 拆解" ] } }, "/api/v1/pdf-splitting/jobs/{job_id}/cancel": { "post": { "operationId": "apps_pdf_splitting_api_pdf_splitting_api_cancel_pdf_split_job", "parameters": [ { "in": "path", "name": "job_id", "required": true, "schema": { "format": "uuid", "title": "Job Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JobSubmitOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Cancel Pdf Split Job", "tags": [ "PDF 拆解" ] } }, "/api/v1/pdf-splitting/jobs/{job_id}/confirm": { "post": { "operationId": "apps_pdf_splitting_api_pdf_splitting_api_confirm_pdf_split_job", "parameters": [ { "in": "path", "name": "job_id", "required": true, "schema": { "format": "uuid", "title": "Job Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConfirmRequestIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JobSubmitOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Confirm Pdf Split Job", "tags": [ "PDF 拆解" ] } }, "/api/v1/pdf-splitting/jobs/{job_id}/download": { "get": { "operationId": "apps_pdf_splitting_api_pdf_splitting_api_get_pdf_split_download", "parameters": [ { "in": "path", "name": "job_id", "required": true, "schema": { "format": "uuid", "title": "Job Id", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Pdf Split Download", "tags": [ "PDF 拆解" ] } }, "/api/v1/pdf-splitting/jobs/{job_id}/pages/{page_no}/preview": { "get": { "operationId": "apps_pdf_splitting_api_pdf_splitting_api_get_pdf_split_preview", "parameters": [ { "in": "path", "name": "job_id", "required": true, "schema": { "format": "uuid", "title": "Job Id", "type": "string" } }, { "in": "path", "name": "page_no", "required": true, "schema": { "title": "Page No", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Pdf Split Preview", "tags": [ "PDF 拆解" ] } }, "/api/v1/pdf-splitting/jobs/{job_id}/pdf": { "get": { "description": "获取原始 PDF 二进制流,供 PDF.js 在浏览器中渲染", "operationId": "apps_pdf_splitting_api_pdf_splitting_api_get_pdf_split_raw", "parameters": [ { "in": "path", "name": "job_id", "required": true, "schema": { "format": "uuid", "title": "Job Id", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Pdf Split Raw", "tags": [ "PDF 拆解" ] } }, "/api/v1/pdf-splitting/jobs/{job_id}/preview-page": { "get": { "description": "返回PDF预览页面(HTML)", "operationId": "apps_pdf_splitting_api_pdf_splitting_api_get_pdf_preview_page", "parameters": [ { "in": "path", "name": "job_id", "required": true, "schema": { "format": "uuid", "title": "Job Id", "type": "string" } }, { "in": "query", "name": "start_page", "required": false, "schema": { "default": 1, "title": "Start Page", "type": "integer" } }, { "in": "query", "name": "end_page", "required": false, "schema": { "default": 1, "title": "End Page", "type": "integer" } }, { "in": "query", "name": "filename", "required": false, "schema": { "default": "片段", "title": "Filename", "type": "string" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Pdf Preview Page", "tags": [ "PDF 拆解" ] } }, "/api/v1/preservation-date/extract": { "post": { "description": "Extract asset preservation measures and expiration dates from a PDF.", "operationId": "apps_preservation_date_api_preservation_date_api_extract_preservation_date", "parameters": [], "requestBody": { "content": { "multipart/form-data": { "schema": { "properties": { "file": { "format": "binary", "title": "File", "type": "string" } }, "required": [ "file" ], "title": "FileParams", "type": "object" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Extract Preservation Date", "tags": [ "财产保全日期识别" ] } }, "/api/v1/reminders/create": { "post": { "operationId": "apps_reminders_api_reminder_api_create_reminder", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReminderIn" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReminderOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Create Reminder", "tags": [ "重要日期提醒" ] } }, "/api/v1/reminders/list": { "get": { "operationId": "apps_reminders_api_reminder_api_list_reminders", "parameters": [ { "in": "query", "name": "contract_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Contract Id" } }, { "in": "query", "name": "case_log_id", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Case Log Id" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/ReminderOut" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "List Reminders", "tags": [ "重要日期提醒" ] } }, "/api/v1/reminders/types": { "get": { "operationId": "apps_reminders_api_reminder_api_get_types", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/ReminderTypeItem" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Types", "tags": [ "重要日期提醒" ] } }, "/api/v1/reminders/{reminder_id}": { "delete": { "operationId": "apps_reminders_api_reminder_api_delete_reminder", "parameters": [ { "in": "path", "name": "reminder_id", "required": true, "schema": { "title": "Reminder Id", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Delete Reminder", "tags": [ "重要日期提醒" ] }, "get": { "operationId": "apps_reminders_api_reminder_api_get_reminder", "parameters": [ { "in": "path", "name": "reminder_id", "required": true, "schema": { "title": "Reminder Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReminderOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Get Reminder", "tags": [ "重要日期提醒" ] }, "put": { "operationId": "apps_reminders_api_reminder_api_update_reminder", "parameters": [ { "in": "path", "name": "reminder_id", "required": true, "schema": { "title": "Reminder Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReminderUpdate" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReminderOut" } } }, "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Update Reminder", "tags": [ "重要日期提醒" ] } }, "/api/v1/resource/health": { "get": { "description": "资源健康检查(用于外部监控系统)\nRequirements: 4.3, 4.4 - 资源健康状态检查", "operationId": "apiSystem_api_resource_health", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Resource Health", "tags": [ "资源监控" ] } }, "/api/v1/resource/metrics": { "get": { "operationId": "apiSystem_api_resource_metrics", "parameters": [ { "in": "query", "name": "window_minutes", "required": false, "schema": { "default": 10, "title": "Window Minutes", "type": "integer" } }, { "in": "query", "name": "top", "required": false, "schema": { "default": 10, "title": "Top", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Resource Metrics", "tags": [ "资源监控" ] } }, "/api/v1/resource/metrics/prometheus": { "get": { "operationId": "apiSystem_api_resource_metrics_prometheus", "parameters": [ { "in": "query", "name": "window_minutes", "required": false, "schema": { "default": 10, "title": "Window Minutes", "type": "integer" } } ], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Resource Metrics Prometheus", "tags": [ "资源监控" ] } }, "/api/v1/resource/recommendations": { "get": { "description": "获取资源优化建议\nRequirements: 4.1, 4.2 - 动态资源分配建议", "operationId": "apiSystem_api_resource_recommendations", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Resource Recommendations", "tags": [ "资源监控" ] } }, "/api/v1/resource/status": { "get": { "description": "获取资源状态\nRequirements: 4.1, 4.2, 4.3, 4.4 - 资源监控和状态查询", "operationId": "apiSystem_api_resource_status", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Resource Status", "tags": [ "资源监控" ] } }, "/api/v1/resource/usage": { "get": { "description": "获取资源使用情况\nRequirements: 4.1, 4.2 - 资源使用情况查询", "operationId": "apiSystem_api_resource_usage", "parameters": [], "responses": { "200": { "description": "OK" } }, "security": [ { "JWTOrSessionAuth": [] } ], "summary": "Resource Usage", "tags": [ "资源监控" ] } }, "/api/v1/sales-dispute/analyze-jurisdiction": { "post": { "description": "管辖权分析", "operationId": "apps_sales_dispute_api_sales_dispute_api_analyze_jurisdiction", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JurisdictionRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JurisdictionResponseSchema" } } }, "description": "OK" } }, "summary": "Analyze Jurisdiction", "tags": [ "买卖纠纷计算" ] } }, "/api/v1/sales-dispute/assess": { "post": { "description": "综合案件评估", "operationId": "apps_sales_dispute_api_sales_dispute_api_assess_case", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssessmentRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssessmentResponse" } } }, "description": "OK" } }, "summary": "Assess Case", "tags": [ "买卖纠纷计算" ] } }, "/api/v1/sales-dispute/assess/{case_id}": { "get": { "description": "获取已有评估记录", "operationId": "apps_sales_dispute_api_sales_dispute_api_get_assessment", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssessmentResponse" } } }, "description": "OK" } }, "summary": "Get Assessment", "tags": [ "买卖纠纷计算" ] } }, "/api/v1/sales-dispute/calculate-cost": { "post": { "description": "成本收益分析", "operationId": "apps_sales_dispute_api_sales_dispute_api_calculate_cost", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CostBenefitRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CostBenefitResponse" } } }, "description": "OK" } }, "summary": "Calculate Cost", "tags": [ "买卖纠纷计算" ] } }, "/api/v1/sales-dispute/calculate-interest": { "post": { "description": "利息/违约金计算", "operationId": "apps_sales_dispute_api_sales_dispute_api_calculate_interest", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InterestCalcRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InterestCalcResponse" } } }, "description": "OK" } }, "summary": "Calculate Interest", "tags": [ "买卖纠纷计算" ] } }, "/api/v1/sales-dispute/calculate-limitation": { "post": { "description": "诉讼时效计算", "operationId": "apps_sales_dispute_api_sales_dispute_api_calculate_limitation", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LimitationRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LimitationResponse" } } }, "description": "OK" } }, "summary": "Calculate Limitation", "tags": [ "买卖纠纷计算" ] } }, "/api/v1/sales-dispute/collection/generate-execution-doc": { "post": { "description": "生成执行阶段文书", "operationId": "apps_sales_dispute_api_sales_dispute_api_generate_execution_doc", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExecutionDocRequest" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "summary": "Generate Execution Doc", "tags": [ "买卖纠纷计算" ] } }, "/api/v1/sales-dispute/collection/generate-lawyer-letter": { "post": { "description": "生成律师函", "operationId": "apps_sales_dispute_api_sales_dispute_api_generate_lawyer_letter", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LawyerLetterRequest" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "summary": "Generate Lawyer Letter", "tags": [ "买卖纠纷计算" ] } }, "/api/v1/sales-dispute/collection/generate-reconciliation": { "post": { "description": "生成对账函", "operationId": "apps_sales_dispute_api_sales_dispute_api_generate_reconciliation", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReconciliationRequest" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "summary": "Generate Reconciliation", "tags": [ "买卖纠纷计算" ] } }, "/api/v1/sales-dispute/collection/generate-settlement": { "post": { "description": "生成和解协议", "operationId": "apps_sales_dispute_api_sales_dispute_api_generate_settlement", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SettlementRequest" } } }, "required": true }, "responses": { "200": { "description": "OK" } }, "summary": "Generate Settlement", "tags": [ "买卖纠纷计算" ] } }, "/api/v1/sales-dispute/collection/reminders": { "get": { "description": "获取即将到期的催收节点", "operationId": "apps_sales_dispute_api_sales_dispute_api_get_reminders", "parameters": [ { "in": "query", "name": "days_ahead", "required": false, "schema": { "default": 7, "title": "Days Ahead", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/ReminderItemSchema" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "summary": "Get Reminders", "tags": [ "买卖纠纷计算" ] } }, "/api/v1/sales-dispute/collection/start": { "post": { "description": "启动催收", "operationId": "apps_sales_dispute_api_sales_dispute_api_start_collection", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StartCollectionRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CollectionRecordResponse" } } }, "description": "OK" } }, "summary": "Start Collection", "tags": [ "买卖纠纷计算" ] } }, "/api/v1/sales-dispute/collection/{case_id}": { "get": { "description": "获取催收记录详情(含日志和时间线)", "operationId": "apps_sales_dispute_api_sales_dispute_api_get_collection", "parameters": [ { "in": "path", "name": "case_id", "required": true, "schema": { "title": "Case Id", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CollectionDetailResponse" } } }, "description": "OK" } }, "summary": "Get Collection", "tags": [ "买卖纠纷计算" ] } }, "/api/v1/sales-dispute/collection/{record_id}/advance": { "post": { "description": "推进催收阶段", "operationId": "apps_sales_dispute_api_sales_dispute_api_advance_collection", "parameters": [ { "in": "path", "name": "record_id", "required": true, "schema": { "title": "Record Id", "type": "integer" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AdvanceStageRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CollectionRecordResponse" } } }, "description": "OK" } }, "summary": "Advance Collection", "tags": [ "买卖纠纷计算" ] } }, "/api/v1/sales-dispute/dashboard/breakdown": { "get": { "description": "多维度分组统计", "operationId": "apps_sales_dispute_api_sales_dispute_api_get_dashboard_breakdown", "parameters": [ { "in": "query", "name": "start_date", "required": false, "schema": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Start Date" } }, { "in": "query", "name": "end_date", "required": false, "schema": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "End Date" } }, { "in": "query", "name": "group_by", "required": false, "schema": { "default": "case_type", "title": "Group By", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BreakdownResponse" } } }, "description": "OK" } }, "summary": "Get Dashboard Breakdown", "tags": [ "买卖纠纷计算" ] } }, "/api/v1/sales-dispute/dashboard/case-stats": { "get": { "description": "案件数据统计", "operationId": "apps_sales_dispute_api_sales_dispute_api_get_dashboard_case_stats", "parameters": [ { "in": "query", "name": "start_date", "required": false, "schema": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Start Date" } }, { "in": "query", "name": "end_date", "required": false, "schema": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "End Date" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseStatsResponse" } } }, "description": "OK" } }, "summary": "Get Dashboard Case Stats", "tags": [ "买卖纠纷计算" ] } }, "/api/v1/sales-dispute/dashboard/factors": { "get": { "description": "回款影响因素分析", "operationId": "apps_sales_dispute_api_sales_dispute_api_get_dashboard_factors", "parameters": [ { "in": "query", "name": "start_date", "required": false, "schema": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Start Date" } }, { "in": "query", "name": "end_date", "required": false, "schema": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "End Date" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FactorsResponse" } } }, "description": "OK" } }, "summary": "Get Dashboard Factors", "tags": [ "买卖纠纷计算" ] } }, "/api/v1/sales-dispute/dashboard/lawyer-performance": { "get": { "description": "律师绩效分析", "operationId": "apps_sales_dispute_api_sales_dispute_api_get_dashboard_lawyer_performance", "parameters": [ { "in": "query", "name": "start_date", "required": false, "schema": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Start Date" } }, { "in": "query", "name": "end_date", "required": false, "schema": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "End Date" } }, { "in": "query", "name": "sort_by", "required": false, "schema": { "default": "total_recovery", "title": "Sort By", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LawyerPerformanceResponse" } } }, "description": "OK" } }, "summary": "Get Dashboard Lawyer Performance", "tags": [ "买卖纠纷计算" ] } }, "/api/v1/sales-dispute/dashboard/summary": { "get": { "description": "核心指标统计", "operationId": "apps_sales_dispute_api_sales_dispute_api_get_dashboard_summary", "parameters": [ { "in": "query", "name": "start_date", "required": false, "schema": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Start Date" } }, { "in": "query", "name": "end_date", "required": false, "schema": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "End Date" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SummaryResponse" } } }, "description": "OK" } }, "summary": "Get Dashboard Summary", "tags": [ "买卖纠纷计算" ] } }, "/api/v1/sales-dispute/dashboard/trend": { "get": { "description": "回款趋势", "operationId": "apps_sales_dispute_api_sales_dispute_api_get_dashboard_trend", "parameters": [ { "in": "query", "name": "start_date", "required": false, "schema": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "Start Date" } }, { "in": "query", "name": "end_date", "required": false, "schema": { "anyOf": [ { "format": "date", "type": "string" }, { "type": "null" } ], "title": "End Date" } }, { "in": "query", "name": "dimension", "required": false, "schema": { "default": "month", "title": "Dimension", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TrendResponse" } } }, "description": "OK" } }, "summary": "Get Dashboard Trend", "tags": [ "买卖纠纷计算" ] } }, "/api/v1/sales-dispute/lpr-rates": { "get": { "description": "获取LPR利率历史数据", "operationId": "apps_sales_dispute_api_sales_dispute_api_list_lpr_rates", "parameters": [], "responses": { "200": { "content": { "application/json": { "schema": { "items": { "$ref": "#/components/schemas/LPRRateResponse" }, "title": "Response", "type": "array" } } }, "description": "OK" } }, "summary": "List Lpr Rates", "tags": [ "买卖纠纷计算" ] } }, "/api/v1/sales-dispute/recommend-strategy": { "post": { "description": "起诉策略推荐", "operationId": "apps_sales_dispute_api_sales_dispute_api_recommend_strategy", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StrategyRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StrategyResponseSchema" } } }, "description": "OK" } }, "summary": "Recommend Strategy", "tags": [ "买卖纠纷计算" ] } }, "/api/v1/token/pair": { "post": { "operationId": "token_obtain_pair", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenObtainPairInputSchema" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenObtainPairOutputSchema" } } }, "description": "OK" } }, "summary": "Obtain Token", "tags": [ "JWT认证" ] } }, "/api/v1/token/refresh": { "post": { "operationId": "token_refresh", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenRefreshInputSchema" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenRefreshOutputSchema" } } }, "description": "OK" } }, "summary": "Refresh Token", "tags": [ "JWT认证" ] } }, "/api/v1/token/verify": { "post": { "operationId": "token_verify", "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokenVerifyInputSchema" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Schema" } } }, "description": "OK" } }, "summary": "Verify Token", "tags": [ "JWT认证" ] } } }, "servers": [] }