docs/docs.go
@@ -2074,6 +2074,250 @@
                }
            }
        },
        "/api/faq/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "常见问题管理"
                ],
                "summary": "添加常见问题",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddFaq"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/faq/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "常见问题管理"
                ],
                "summary": "删除常见问题",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/faq/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "常见问题管理"
                ],
                "summary": "获取常见问题列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.ListResponse"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.Faq"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/faq/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "常见问题管理"
                ],
                "summary": "更新常见问题",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateFaq"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/faultType/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "故障类别管理"
                ],
                "summary": "添加故障类别",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddFaultType"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/faultType/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "故障类别管理"
                ],
                "summary": "删除故障类别",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/faultType/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "故障类别管理"
                ],
                "summary": "获取故障类别列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.ListResponse"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.FaultType"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/faultType/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "故障类别管理"
                ],
                "summary": "更新故障类别",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateFaultType"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/followRecord/add": {
            "post": {
                "produces": [
@@ -3252,6 +3496,128 @@
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdatePossibilities"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/priorityLevel/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "优先级别管理"
                ],
                "summary": "添加优先级别",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddPriorityLevel"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/priorityLevel/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "优先级别管理"
                ],
                "summary": "删除优先级别",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/priorityLevel/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "优先级别管理"
                ],
                "summary": "获取优先级别列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.ListResponse"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.PriorityLevel"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/priorityLevel/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "优先级别管理"
                ],
                "summary": "更新优先级别",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdatePriorityLevel"
                        }
                    }
                ],
@@ -6286,6 +6652,372 @@
                }
            }
        },
        "/api/serviceOrder/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "服务单管理"
                ],
                "summary": "添加服务单",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddServiceOrder"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/serviceOrder/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "服务单管理"
                ],
                "summary": "删除服务单",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/serviceOrder/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "服务单管理"
                ],
                "summary": "获取服务单列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.ListResponse"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.ServiceOrder"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/serviceOrder/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "服务单管理"
                ],
                "summary": "更新服务单",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateServiceOrder"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/serviceType/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "服务类型管理"
                ],
                "summary": "添加服务类型",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddServiceType"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/serviceType/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "服务类型管理"
                ],
                "summary": "删除服务类型",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/serviceType/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "服务类型管理"
                ],
                "summary": "获取服务类型列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.ListResponse"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.ServiceType"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/serviceType/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "服务类型管理"
                ],
                "summary": "更新服务类型",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateServiceType"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/severity/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "严重程度管理"
                ],
                "summary": "添加严重程度",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddSeverity"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/severity/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "严重程度管理"
                ],
                "summary": "删除严重程度",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/severity/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "严重程度管理"
                ],
                "summary": "获取严重程度列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.ListResponse"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.Severity"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/severity/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "严重程度管理"
                ],
                "summary": "更新严重程度",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateSeverity"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/solveRate/add": {
            "post": {
                "produces": [
@@ -6629,6 +7361,128 @@
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateSubOrder"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/timeSpent/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "花费时间管理"
                ],
                "summary": "添加花费时间",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddTimeSpent"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/timeSpent/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "花费时间管理"
                ],
                "summary": "删除花费时间",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/timeSpent/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "花费时间管理"
                ],
                "summary": "获取花费时间列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.ListResponse"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.TimeSpent"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/timeSpent/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "花费时间管理"
                ],
                "summary": "更新花费时间",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateTimeSpent"
                        }
                    }
                ],
@@ -7100,6 +7954,111 @@
                "SalesStatusFail",
                "SalesStatusLevelUptoClient",
                "SalesStatusLevelUptoClientAndSalesChance"
            ]
        },
        "constvar.ServiceContractKeywordType": {
            "type": "string",
            "enum": [
                "服务合同编号",
                "客户名称",
                "签约日期",
                "合同类型",
                "合同状态",
                "负责人",
                "产品名称",
                "服务开始日",
                "服务到期日",
                "价税合计"
            ],
            "x-enum-varnames": [
                "ServiceContractKeywordContractNo",
                "ServiceContractKeywordCustomerName",
                "ServiceContractKeywordContractDate",
                "ServiceContractKeywordContractType",
                "ServiceContractKeywordContractStatus",
                "ServiceContractKeywordPrincipal",
                "ServiceContractKeywordProductName",
                "ServiceContractKeywordServiceBeginDate",
                "ServiceContractKeywordServiceEndDate",
                "ServiceContractKeywordServiceTotalPrice"
            ]
        },
        "constvar.ServiceContractQueryClass": {
            "type": "string",
            "enum": [
                "30天后过期",
                "60天后过期",
                "已过期15天",
                "已过期60天"
            ],
            "x-enum-varnames": [
                "ServiceContractQueryClassExpireAfter30Day",
                "ServiceContractQueryClassExpireAfter60Day",
                "ServiceContractQueryClassExpiredBefore15Day",
                "ServiceContractQueryClassExpiredBefore60Day"
            ]
        },
        "constvar.ServiceFeeKeywordType": {
            "type": "string",
            "enum": [
                "客户名称",
                "客户类型",
                "销售负责人",
                "客户规模",
                "重要级别",
                "客户编号",
                "客户状态",
                "产品名称",
                "服务到期日"
            ],
            "x-enum-varnames": [
                "ServiceFeeKeywordCustomerName",
                "ServiceFeeKeywordCustomerType",
                "ServiceFeeKeywordSalesPrincipal",
                "ServiceFeeKeywordCustomerScale",
                "ServiceFeeKeywordClientLevel",
                "ServiceFeeKeywordCustomerNo",
                "ServiceFeeKeywordCustomerStatus",
                "ServiceFeeKeywordProductName",
                "ServiceFeeKeywordServiceEndDate"
            ]
        },
        "constvar.ServiceFeeQueryClass": {
            "type": "string",
            "enum": [
                "过期未满60天",
                "过期未满30天",
                "即将过期60天",
                "即将过期30天",
                "已过期",
                "无服务"
            ],
            "x-enum-varnames": [
                "ServiceFeeQueryClassExpireLessThen60Days",
                "ServiceFeeQueryClassExpireLessThen30Days",
                "ServiceFeeQueryClassExpireAboutTo60Day",
                "ServiceFeeQueryClassExpireAboutTo30Day",
                "ServiceFeeQueryClassExpired",
                "ServiceFeeQueryClassNoService"
            ]
        },
        "constvar.ServiceFollowupKeywordType": {
            "type": "string",
            "enum": [
                "回访单编号",
                "客户名称",
                "联系人姓名",
                "客户服务单",
                "回访人",
                "满意度"
            ],
            "x-enum-varnames": [
                "ServiceFollowupKeywordFollowupNo",
                "ServiceFollowupKeywordCustomerName",
                "ServiceFollowupKeywordContactName",
                "ServiceFollowupKeywordCustomerServiceNo",
                "ServiceFollowupKeywordVisitor",
                "ServiceFollowupKeywordSatisfactionDegree"
            ]
        },
        "constvar.UserType": {
@@ -7607,6 +8566,28 @@
                }
            }
        },
        "model.Faq": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "model.FaultType": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "model.FollowRecord": {
            "type": "object",
            "properties": {
@@ -7843,6 +8824,17 @@
            }
        },
        "model.Possibility": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "model.PriorityLevel": {
            "type": "object",
            "properties": {
                "id": {
@@ -8560,6 +9552,162 @@
                }
            }
        },
        "model.ServiceOrder": {
            "type": "object",
            "properties": {
                "address": {
                    "description": "上门地址",
                    "type": "string"
                },
                "appointment_time": {
                    "description": "预约上门时间",
                    "type": "string"
                },
                "car_fare": {
                    "description": "交通费",
                    "type": "number"
                },
                "charge_amount": {
                    "description": "收费金额",
                    "type": "number"
                },
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
                },
                "contact": {
                    "$ref": "#/definitions/model.Contact"
                },
                "contact_id": {
                    "description": "联系人id",
                    "type": "integer"
                },
                "contract": {
                    "$ref": "#/definitions/model.Contract"
                },
                "contractId": {
                    "description": "合同id",
                    "type": "integer"
                },
                "expect_time": {
                    "description": "希望处理时间",
                    "type": "string"
                },
                "faq": {
                    "$ref": "#/definitions/model.Faq"
                },
                "id": {
                    "type": "integer"
                },
                "order": {
                    "$ref": "#/definitions/model.OrderManage"
                },
                "orderId": {
                    "description": "销售订单id",
                    "type": "integer"
                },
                "priorityLevel": {
                    "$ref": "#/definitions/model.PriorityLevel"
                },
                "priority_level_id": {
                    "description": "优先级别",
                    "type": "integer"
                },
                "problem_desc": {
                    "description": "问题描述",
                    "type": "string"
                },
                "problem_id": {
                    "description": "常见问题id",
                    "type": "integer"
                },
                "product": {
                    "$ref": "#/definitions/model.Product"
                },
                "productId": {
                    "description": "产品id",
                    "type": "integer"
                },
                "real_time": {
                    "description": "实际处理时间",
                    "type": "string"
                },
                "remark": {
                    "description": "备注",
                    "type": "string"
                },
                "saleChance": {
                    "$ref": "#/definitions/model.SaleChance"
                },
                "saleChanceId": {
                    "description": "销售机会id",
                    "type": "integer"
                },
                "serviceManId": {
                    "description": "服务人员",
                    "type": "integer"
                },
                "serviceNumber": {
                    "description": "服务单编号",
                    "type": "string"
                },
                "serviceType": {
                    "$ref": "#/definitions/model.ServiceType"
                },
                "serviceTypeId": {
                    "description": "服务方式",
                    "type": "integer"
                },
                "severity": {
                    "$ref": "#/definitions/model.Severity"
                },
                "solution": {
                    "description": "解决方法",
                    "type": "string"
                },
                "solution_remark": {
                    "description": "内部备注",
                    "type": "string"
                },
                "status": {
                    "description": "处理状态",
                    "type": "integer"
                },
                "subject": {
                    "description": "主题",
                    "type": "string"
                },
                "time_spent_id": {
                    "description": "花费时间",
                    "type": "integer"
                }
            }
        },
        "model.ServiceType": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "model.Severity": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "model.SolveRate": {
            "type": "object",
            "properties": {
@@ -8608,6 +9756,17 @@
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                }
            }
        },
        "model.TimeSpent": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
@@ -9002,6 +10161,28 @@
                }
            }
        },
        "request.AddFaq": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.AddFaultType": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.AddFollowRecord": {
            "type": "object",
            "required": [
@@ -9126,6 +10307,17 @@
                "name"
            ],
            "properties": {
                "name": {
                    "type": "string"
                }
            }
        },
        "request.AddPriorityLevel": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
@@ -9703,6 +10895,133 @@
                }
            }
        },
        "request.AddServiceOrder": {
            "type": "object",
            "properties": {
                "address": {
                    "description": "上门地址",
                    "type": "string"
                },
                "appointment_time": {
                    "description": "预约上门时间",
                    "type": "string"
                },
                "car_fare": {
                    "description": "交通费",
                    "type": "number"
                },
                "charge_amount": {
                    "description": "收费金额",
                    "type": "number"
                },
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
                },
                "contact_id": {
                    "description": "联系人id",
                    "type": "integer"
                },
                "contractId": {
                    "description": "合同id",
                    "type": "integer"
                },
                "expect_time": {
                    "description": "希望处理时间",
                    "type": "string"
                },
                "orderId": {
                    "description": "销售订单id",
                    "type": "integer"
                },
                "priority_level_id": {
                    "description": "优先级别",
                    "type": "integer"
                },
                "problem_desc": {
                    "description": "问题描述",
                    "type": "string"
                },
                "problem_id": {
                    "description": "常见问题id",
                    "type": "integer"
                },
                "productId": {
                    "description": "产品id",
                    "type": "integer"
                },
                "real_time": {
                    "description": "实际处理时间",
                    "type": "string"
                },
                "remark": {
                    "description": "备注",
                    "type": "string"
                },
                "saleChanceId": {
                    "description": "销售机会id",
                    "type": "integer"
                },
                "serviceManId": {
                    "description": "服务人员",
                    "type": "integer"
                },
                "serviceNumber": {
                    "description": "服务单编号",
                    "type": "string"
                },
                "serviceTypeId": {
                    "description": "服务方式",
                    "type": "integer"
                },
                "severity": {
                    "description": "严重程度",
                    "type": "integer"
                },
                "solution": {
                    "description": "解决方法",
                    "type": "string"
                },
                "solution_remark": {
                    "description": "内部备注",
                    "type": "string"
                },
                "status": {
                    "description": "处理状态",
                    "type": "integer"
                },
                "subject": {
                    "description": "主题",
                    "type": "string"
                },
                "time_spent_id": {
                    "description": "花费时间",
                    "type": "integer"
                }
            }
        },
        "request.AddServiceType": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.AddSeverity": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.AddSolveRate": {
            "type": "object",
            "required": [
@@ -9745,6 +11064,17 @@
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                }
            }
        },
        "request.AddTimeSpent": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
@@ -10211,6 +11541,9 @@
                "keyword": {
                    "type": "string"
                },
                "keywordType": {
                    "$ref": "#/definitions/constvar.ServiceContractKeywordType"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
@@ -10218,6 +11551,9 @@
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                },
                "queryClass": {
                    "$ref": "#/definitions/constvar.ServiceContractQueryClass"
                }
            }
        },
@@ -10227,6 +11563,9 @@
                "keyword": {
                    "type": "string"
                },
                "keywordType": {
                    "$ref": "#/definitions/constvar.ServiceFeeKeywordType"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
@@ -10234,6 +11573,9 @@
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                },
                "queryClass": {
                    "$ref": "#/definitions/constvar.ServiceFeeQueryClass"
                }
            }
        },
@@ -10242,6 +11584,9 @@
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "keywordType": {
                    "$ref": "#/definitions/constvar.ServiceFollowupKeywordType"
                },
                "page": {
                    "description": "页码",
@@ -11080,6 +12425,28 @@
                }
            }
        },
        "request.UpdateFaq": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.UpdateFaultType": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.UpdateFollowRecord": {
            "type": "object",
            "required": [
@@ -11302,6 +12669,17 @@
                "id",
                "name"
            ],
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.UpdatePriorityLevel": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
@@ -12171,6 +13549,136 @@
                }
            }
        },
        "request.UpdateServiceOrder": {
            "type": "object",
            "properties": {
                "address": {
                    "description": "上门地址",
                    "type": "string"
                },
                "appointment_time": {
                    "description": "预约上门时间",
                    "type": "string"
                },
                "car_fare": {
                    "description": "交通费",
                    "type": "number"
                },
                "charge_amount": {
                    "description": "收费金额",
                    "type": "number"
                },
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
                },
                "contact_id": {
                    "description": "联系人id",
                    "type": "integer"
                },
                "contractId": {
                    "description": "合同id",
                    "type": "integer"
                },
                "expect_time": {
                    "description": "希望处理时间",
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "orderId": {
                    "description": "销售订单id",
                    "type": "integer"
                },
                "priority_level_id": {
                    "description": "优先级别",
                    "type": "integer"
                },
                "problem_desc": {
                    "description": "问题描述",
                    "type": "string"
                },
                "problem_id": {
                    "description": "常见问题id",
                    "type": "integer"
                },
                "productId": {
                    "description": "产品id",
                    "type": "integer"
                },
                "real_time": {
                    "description": "实际处理时间",
                    "type": "string"
                },
                "remark": {
                    "description": "备注",
                    "type": "string"
                },
                "saleChanceId": {
                    "description": "销售机会id",
                    "type": "integer"
                },
                "serviceManId": {
                    "description": "服务人员",
                    "type": "integer"
                },
                "serviceNumber": {
                    "description": "服务单编号",
                    "type": "string"
                },
                "serviceTypeId": {
                    "description": "服务方式",
                    "type": "integer"
                },
                "severity": {
                    "description": "严重程度",
                    "type": "integer"
                },
                "solution": {
                    "description": "解决方法",
                    "type": "string"
                },
                "solution_remark": {
                    "description": "内部备注",
                    "type": "string"
                },
                "status": {
                    "description": "处理状态",
                    "type": "integer"
                },
                "subject": {
                    "description": "主题",
                    "type": "string"
                },
                "time_spent_id": {
                    "description": "花费时间",
                    "type": "integer"
                }
            }
        },
        "request.UpdateServiceType": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.UpdateSeverity": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.UpdateSolveRate": {
            "type": "object",
            "required": [
@@ -12252,6 +13760,17 @@
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                }
            }
        },
        "request.UpdateTimeSpent": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
@@ -12759,6 +14278,21 @@
                }
            }
        },
        "response.ListResponse": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "integer"
                },
                "count": {
                    "type": "integer"
                },
                "data": {},
                "msg": {
                    "type": "string"
                }
            }
        },
        "response.LoginResponse": {
            "type": "object",
            "properties": {