{
  "openapi": "3.0.1",
  "info": {
    "title": "默认模块",
    "description": "",
    "version": "1.0.0"
  },
  "tags": [],
  "paths": {
    "/api/v1/risk": {
      "post": {
        "summary": "创建风险评估",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "",
            "example": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b",
            "schema": {
              "type": "string",
              "default": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRiskRequest",
                "description": "创建请求"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseResponseLong",
                  "description": "风险ID"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/v1/risk/{riskId}": {
      "put": {
        "summary": "更新风险",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "riskId",
            "in": "path",
            "description": "风险ID",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "",
            "example": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b",
            "schema": {
              "type": "string",
              "default": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRiskRequest",
                "description": "更新请求"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseResponseBoolean",
                  "description": "是否成功"
                }
              }
            }
          }
        },
        "security": []
      },
      "delete": {
        "summary": "删除风险",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "riskId",
            "in": "path",
            "description": "风险ID",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "",
            "example": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b",
            "schema": {
              "type": "string",
              "default": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseResponseBoolean",
                  "description": "是否成功"
                }
              }
            }
          }
        },
        "security": []
      },
      "get": {
        "summary": "获取风险详情",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "riskId",
            "in": "path",
            "description": "风险ID",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "",
            "example": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b",
            "schema": {
              "type": "string",
              "default": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseResponseRiskVO",
                  "description": "风险详情"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/v1/risk/list": {
      "get": {
        "summary": "分页查询风险列表",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "projectId",
            "in": "query",
            "description": "项目ID",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "pageNum",
            "in": "query",
            "description": "页码",
            "required": true,
            "example": 1,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "每页大小",
            "required": true,
            "example": 10,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "category",
            "in": "query",
            "description": "分类筛选",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "riskLevel",
            "in": "query",
            "description": "风险等级筛选",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "状态筛选",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "keyword",
            "in": "query",
            "description": "关键词搜索",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "",
            "example": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b",
            "schema": {
              "type": "string",
              "default": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseResponseTableDataInfoRiskVO",
                  "description": "分页风险列表"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/v1/risk/statistics": {
      "get": {
        "summary": "获取风险统计信息",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "projectId",
            "in": "query",
            "description": "项目ID",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "",
            "example": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b",
            "schema": {
              "type": "string",
              "default": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseResponseRiskStatisticsVO",
                  "description": "统计信息"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/v1/risk/{riskId}/assign-workorder": {
      "post": {
        "summary": "为风险分配工单",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "riskId",
            "in": "path",
            "description": "风险ID",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "",
            "example": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b",
            "schema": {
              "type": "string",
              "default": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkOrderRequest",
                "description": "工单创建请求"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseResponseLong",
                  "description": "工单ID"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/v1/risk/batch-status": {
      "put": {
        "summary": "批量更新风险状态",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "description": "新状态",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "",
            "example": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b",
            "schema": {
              "type": "string",
              "default": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "integer"
                },
                "description": "风险ID列表"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseResponseBoolean",
                  "description": "是否成功"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/v1/workorder": {
      "post": {
        "summary": "创建工单",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "",
            "example": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b",
            "schema": {
              "type": "string",
              "default": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkOrderRequest",
                "description": "创建请求"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseResponseLong",
                  "description": "工单ID"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/v1/workorder/{workOrderId}": {
      "put": {
        "summary": "更新工单",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "workOrderId",
            "in": "path",
            "description": "工单ID",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "",
            "example": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b",
            "schema": {
              "type": "string",
              "default": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWorkOrderRequest",
                "description": "更新请求"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseResponseBoolean",
                  "description": "是否成功"
                }
              }
            }
          }
        },
        "security": []
      },
      "delete": {
        "summary": "删除工单",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "workOrderId",
            "in": "path",
            "description": "工单ID",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "",
            "example": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b",
            "schema": {
              "type": "string",
              "default": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseResponseBoolean",
                  "description": "是否成功"
                }
              }
            }
          }
        },
        "security": []
      },
      "get": {
        "summary": "获取工单详情",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "workOrderId",
            "in": "path",
            "description": "工单ID",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "",
            "example": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b",
            "schema": {
              "type": "string",
              "default": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseResponseWorkOrderVO",
                  "description": "工单详情"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/v1/workorder/list": {
      "get": {
        "summary": "分页查询工单列表",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "projectId",
            "in": "query",
            "description": "项目ID",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "pageNum",
            "in": "query",
            "description": "页码",
            "required": true,
            "example": 1,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "每页大小",
            "required": true,
            "example": 10,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "orderType",
            "in": "query",
            "description": "类型筛选",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "状态筛选",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "priority",
            "in": "query",
            "description": "优先级筛选",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "keyword",
            "in": "query",
            "description": "关键词搜索",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "",
            "example": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b",
            "schema": {
              "type": "string",
              "default": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseResponseTableDataInfoWorkOrderVO",
                  "description": "分页工单列表"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/v1/workorder/my": {
      "get": {
        "summary": "获取我的工单列表",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "pageNum",
            "in": "query",
            "description": "页码",
            "required": true,
            "example": 1,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "每页大小",
            "required": true,
            "example": 10,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "状态筛选",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "orderType",
            "in": "query",
            "description": "类型筛选",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "",
            "example": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b",
            "schema": {
              "type": "string",
              "default": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseResponseTableDataInfoWorkOrderVO",
                  "description": "分页工单列表"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/v1/workorder/process": {
      "post": {
        "summary": "处理工单",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "",
            "example": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b",
            "schema": {
              "type": "string",
              "default": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessWorkOrderRequest",
                "description": "处理请求"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseResponseBoolean",
                  "description": "是否成功"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/v1/workorder/{workOrderId}/assign": {
      "put": {
        "summary": "分配工单给处理人",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "workOrderId",
            "in": "path",
            "description": "工单ID",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "handlerId",
            "in": "query",
            "description": "处理人ID",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "",
            "example": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b",
            "schema": {
              "type": "string",
              "default": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseResponseBoolean",
                  "description": "是否成功"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/v1/workorder/statistics": {
      "get": {
        "summary": "获取工单统计信息",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "projectId",
            "in": "query",
            "description": "项目ID（可选）",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "",
            "example": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b",
            "schema": {
              "type": "string",
              "default": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseResponseWorkOrderStatisticsVO",
                  "description": "统计信息"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/v1/workorder/my/statistics": {
      "get": {
        "summary": "获取我的工单统计信息",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "",
            "example": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b",
            "schema": {
              "type": "string",
              "default": "Bearer f4c67d29-6d97-4552-84e3-11879ef1fc7b"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseResponseWorkOrderStatisticsVO",
                  "description": "统计信息"
                }
              }
            }
          }
        },
        "security": []
      }
    }
  },
  "components": {
    "schemas": {
      "CreateRiskRequest": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "integer",
            "description": "项目ID",
            "format": "int64"
          },
          "category": {
            "type": "string",
            "description": "风险分类: technical-技术风险, schedule-进度风险, cost-成本风险, quality-质量风险, resource-资源风险, external-外部风险, other-其他"
          },
          "riskName": {
            "type": "string",
            "description": "风险名称"
          },
          "description": {
            "type": "string",
            "description": "风险描述"
          },
          "riskSource": {
            "type": "string",
            "description": "风险来源: internal-内部, external-外部, manual-手动添加"
          },
          "probability": {
            "type": "integer",
            "description": "发生概率(0-100)"
          },
          "impact": {
            "type": "integer",
            "description": "影响程度(1-5)"
          },
          "ownerId": {
            "type": "integer",
            "description": "负责人ID",
            "format": "int64"
          },
          "mitigationPlan": {
            "type": "string",
            "description": "缓解措施"
          },
          "contingencyPlan": {
            "type": "string",
            "description": "应急计划"
          },
          "triggerCondition": {
            "type": "string",
            "description": "触发条件"
          },
          "dueDate": {
            "type": "string",
            "description": "预期解决日期"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "标签"
          }
        }
      },
      "BaseResponseBoolean": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": ""
          },
          "data": {
            "type": "boolean",
            "description": ""
          },
          "message": {
            "type": "string",
            "description": ""
          }
        }
      },
      "RiskVO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "风险ID",
            "format": "int64"
          },
          "riskCode": {
            "type": "string",
            "description": "风险编号"
          },
          "projectId": {
            "type": "integer",
            "description": "项目ID",
            "format": "int64"
          },
          "projectName": {
            "type": "string",
            "description": "项目名称"
          },
          "category": {
            "type": "string",
            "description": "风险分类"
          },
          "riskName": {
            "type": "string",
            "description": "风险名称"
          },
          "description": {
            "type": "string",
            "description": "风险描述"
          },
          "riskSource": {
            "type": "string",
            "description": "风险来源"
          },
          "probability": {
            "type": "number",
            "description": "发生概率(0-100%)"
          },
          "impact": {
            "type": "number",
            "description": "影响程度(1-5)"
          },
          "riskScore": {
            "type": "number",
            "description": "风险得分"
          },
          "riskLevel": {
            "type": "string",
            "description": "风险等级"
          },
          "status": {
            "type": "string",
            "description": "状态"
          },
          "ownerId": {
            "type": "integer",
            "description": "负责人ID",
            "format": "int64"
          },
          "ownerName": {
            "type": "string",
            "description": "负责人姓名"
          },
          "ownerAvatar": {
            "type": "string",
            "description": "负责人头像"
          },
          "workOrderCount": {
            "type": "integer",
            "description": "关联工单数量"
          },
          "mitigationPlan": {
            "type": "string",
            "description": "缓解措施"
          },
          "contingencyPlan": {
            "type": "string",
            "description": "应急计划"
          },
          "triggerCondition": {
            "type": "string",
            "description": "触发条件"
          },
          "discoverTime": {
            "type": "string",
            "description": "发现时间"
          },
          "dueDate": {
            "type": "string",
            "description": "预期解决日期"
          },
          "resolvedTime": {
            "type": "string",
            "description": "解决时间"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "标签"
          },
          "createTime": {
            "type": "string",
            "description": "创建时间"
          },
          "updateTime": {
            "type": "string",
            "description": "更新时间"
          }
        }
      },
      "BaseResponseRiskVO": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": ""
          },
          "data": {
            "$ref": "#/components/schemas/RiskVO",
            "description": ""
          },
          "message": {
            "type": "string",
            "description": ""
          }
        }
      },
      "TableDataInfoRiskVO": {
        "type": "object",
        "properties": {
          "total": {
            "type": "integer",
            "description": "总记录数",
            "format": "int64"
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RiskVO",
              "description": "风险VO\n用于风险列表展示"
            },
            "description": "列表数据"
          },
          "code": {
            "type": "integer",
            "description": "消息状态码"
          },
          "msg": {
            "type": "string",
            "description": "消息内容"
          }
        }
      },
      "BaseResponseLong": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": ""
          },
          "data": {
            "type": "integer",
            "description": "",
            "format": "int64"
          },
          "message": {
            "type": "string",
            "description": ""
          }
        }
      },
      "BaseResponseTableDataInfoRiskVO": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": ""
          },
          "data": {
            "$ref": "#/components/schemas/TableDataInfoRiskVO",
            "description": ""
          },
          "message": {
            "type": "string",
            "description": ""
          }
        }
      },
      "RiskStatisticsVO": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "description": "风险总数"
          },
          "identifiedCount": {
            "type": "integer",
            "description": "已识别数量"
          },
          "assignedCount": {
            "type": "integer",
            "description": "已分派工单数量"
          },
          "mitigatingCount": {
            "type": "integer",
            "description": "缓解中数量"
          },
          "resolvedCount": {
            "type": "integer",
            "description": "已解决数量"
          },
          "closedCount": {
            "type": "integer",
            "description": "已关闭数量"
          },
          "criticalCount": {
            "type": "integer",
            "description": "严重风险数量"
          },
          "highCount": {
            "type": "integer",
            "description": "高风险数量"
          },
          "mediumCount": {
            "type": "integer",
            "description": "中风险数量"
          },
          "lowCount": {
            "type": "integer",
            "description": "低风险数量"
          },
          "categoryStats": {
            "type": "object",
            "properties": {},
            "description": "按分类统计"
          },
          "levelStats": {
            "type": "object",
            "properties": {},
            "description": "按等级统计"
          },
          "trendData": {
            "type": "object",
            "properties": {},
            "description": "处理趋势（近6个月）"
          },
          "averageRiskScore": {
            "type": "number",
            "description": "平均风险得分"
          },
          "unresolvedHighCount": {
            "type": "integer",
            "description": "未解决高风险数量"
          }
        }
      },
      "BaseResponseRiskStatisticsVO": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": ""
          },
          "data": {
            "$ref": "#/components/schemas/RiskStatisticsVO",
            "description": ""
          },
          "message": {
            "type": "string",
            "description": ""
          }
        }
      },
      "CreateWorkOrderRequest": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "integer",
            "description": "项目ID",
            "format": "int64"
          },
          "riskId": {
            "type": "integer",
            "description": "关联风险ID",
            "format": "int64"
          },
          "orderType": {
            "type": "string",
            "description": "工单类型: bug-缺陷, feature-需求, task-任务, incident-事件, risk_handle-风险处理, other-其他"
          },
          "title": {
            "type": "string",
            "description": "工单标题"
          },
          "description": {
            "type": "string",
            "description": "工单描述"
          },
          "priority": {
            "type": "string",
            "description": "优先级: critical-紧急, high-高, medium-中, low-低"
          },
          "handlerId": {
            "type": "integer",
            "description": "处理人ID",
            "format": "int64"
          },
          "handlerGroupId": {
            "type": "integer",
            "description": "处理组ID",
            "format": "int64"
          },
          "deadline": {
            "type": "string",
            "description": "截止时间"
          },
          "source": {
            "type": "string",
            "description": "来源: web-网页, mobile-移动端, api-接口, system-系统生成, risk-风险分派"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "标签"
          }
        }
      },
      "WorkOrderVO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "工单ID",
            "format": "int64"
          },
          "orderCode": {
            "type": "string",
            "description": "工单编号"
          },
          "orderType": {
            "type": "string",
            "description": "工单类型: bug-缺陷, feature-需求, task-任务, incident-事件, risk_handle-风险处理, other-其他"
          },
          "projectId": {
            "type": "integer",
            "description": "项目ID",
            "format": "int64"
          },
          "projectName": {
            "type": "string",
            "description": "项目名称"
          },
          "riskId": {
            "type": "integer",
            "description": "关联风险ID",
            "format": "int64"
          },
          "riskName": {
            "type": "string",
            "description": "关联风险名称"
          },
          "title": {
            "type": "string",
            "description": "工单标题"
          },
          "description": {
            "type": "string",
            "description": "工单描述"
          },
          "creatorId": {
            "type": "integer",
            "description": "创建人ID",
            "format": "int64"
          },
          "creatorName": {
            "type": "string",
            "description": "创建人姓名"
          },
          "handlerId": {
            "type": "integer",
            "description": "处理人ID",
            "format": "int64"
          },
          "handlerName": {
            "type": "string",
            "description": "处理人姓名"
          },
          "handlerAvatar": {
            "type": "string",
            "description": "处理人头像"
          },
          "handlerGroupId": {
            "type": "integer",
            "description": "处理组ID",
            "format": "int64"
          },
          "priority": {
            "type": "string",
            "description": "优先级: critical-紧急, high-高, medium-中, low-低"
          },
          "status": {
            "type": "string",
            "description": "状态: pending-待处理, assigned-已分派, processing-处理中, resolved-已解决, closed-已关闭, reopened-已重开"
          },
          "source": {
            "type": "string",
            "description": "来源: web-网页, mobile-移动端, api-接口, system-系统生成, risk-风险分派"
          },
          "deadline": {
            "type": "string",
            "description": "截止时间"
          },
          "assignedTime": {
            "type": "string",
            "description": "分派时间"
          },
          "firstResponseTime": {
            "type": "string",
            "description": "首次响应时间"
          },
          "resolvedTime": {
            "type": "string",
            "description": "解决时间"
          },
          "closedTime": {
            "type": "string",
            "description": "关闭时间"
          },
          "satisfactionScore": {
            "type": "integer",
            "description": "满意度评分(1-5)"
          },
          "isOverdue": {
            "type": "boolean",
            "description": "是否超期"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "标签"
          },
          "createTime": {
            "type": "string",
            "description": "创建时间"
          },
          "updateTime": {
            "type": "string",
            "description": "更新时间"
          }
        }
      },
      "BaseResponseWorkOrderVO": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": ""
          },
          "data": {
            "$ref": "#/components/schemas/WorkOrderVO",
            "description": ""
          },
          "message": {
            "type": "string",
            "description": ""
          }
        }
      },
      "TableDataInfoWorkOrderVO": {
        "type": "object",
        "properties": {
          "total": {
            "type": "integer",
            "description": "总记录数",
            "format": "int64"
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderVO",
              "description": "工单VO\n用于工单列表展示"
            },
            "description": "列表数据"
          },
          "code": {
            "type": "integer",
            "description": "消息状态码"
          },
          "msg": {
            "type": "string",
            "description": "消息内容"
          }
        }
      },
      "BaseResponseTableDataInfoWorkOrderVO": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": ""
          },
          "data": {
            "$ref": "#/components/schemas/TableDataInfoWorkOrderVO",
            "description": ""
          },
          "message": {
            "type": "string",
            "description": ""
          }
        }
      },
      "ProcessWorkOrderRequest": {
        "type": "object",
        "properties": {
          "workOrderId": {
            "type": "integer",
            "description": "工单ID",
            "format": "int64"
          },
          "status": {
            "type": "string",
            "description": "处理状态: processing-处理中, resolved-已解决, closed-已关闭, reopened-已重开"
          },
          "satisfactionScore": {
            "type": "integer",
            "description": "满意度评分(1-5)"
          }
        }
      },
      "WorkOrderStatisticsVO": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "description": "工单总数"
          },
          "pendingCount": {
            "type": "integer",
            "description": "待处理数量"
          },
          "assignedCount": {
            "type": "integer",
            "description": "已分配数量"
          },
          "processingCount": {
            "type": "integer",
            "description": "处理中数量"
          },
          "completedCount": {
            "type": "integer",
            "description": "已完成数量"
          },
          "closedCount": {
            "type": "integer",
            "description": "已关闭数量"
          },
          "rejectedCount": {
            "type": "integer",
            "description": "已驳回数量"
          },
          "overdueCount": {
            "type": "integer",
            "description": "超期未完成数量"
          },
          "aboutToExpireCount": {
            "type": "integer",
            "description": "即将超期数量（7天内）"
          },
          "typeStats": {
            "type": "object",
            "properties": {},
            "description": "按类型统计"
          },
          "priorityStats": {
            "type": "object",
            "properties": {},
            "description": "按优先级统计"
          }
        }
      },
      "BaseResponseWorkOrderStatisticsVO": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": ""
          },
          "data": {
            "$ref": "#/components/schemas/WorkOrderStatisticsVO",
            "description": ""
          },
          "message": {
            "type": "string",
            "description": ""
          }
        }
      }
    },
    "responses": {},
    "securitySchemes": {}
  },
  "servers": [],
  "security": []
}
