zhangqian
2023-08-15 cc3f07175d93b5f4fbcc6fd8a87a563a7f8e1a7c
docs/docs.go
@@ -143,7 +143,7 @@
                "tags": [
                    "Assign"
                ],
                "summary": "审核",
                "summary": "分配",
                "parameters": [
                    {
                        "description": "查询参数",
@@ -228,6 +228,169 @@
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.SetAuthorityMenu"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/bankAccount/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "银行账户管理"
                ],
                "summary": "添加银行账户",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddBankAccount"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/bankAccount/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/bankAccount/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "银行账户管理"
                ],
                "summary": "获取银行账户列表",
                "parameters": [
                    {
                        "type": "string",
                        "name": "keyword",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                        ],
                        "type": "string",
                        "x-enum-varnames": [
                            "BankAccountKeywordCustomerName"
                        ],
                        "name": "keywordType",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                        ],
                        "type": "string",
                        "x-enum-varnames": [
                            "BankAccountQueryClassExpireLessThen60Days"
                        ],
                        "name": "queryClass",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.ListResponse"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.BankAccount"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/bankAccount/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "银行账户管理"
                ],
                "summary": "更新银行账户",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateBankAccount"
                        }
                    }
                ],
@@ -1079,6 +1242,127 @@
                }
            }
        },
        "/api/collectionProjection/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "CollectionProjection"
                ],
                "summary": "添加收款预测",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddCollectionProjection"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/collectionProjection/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "CollectionProjection"
                ],
                "summary": "删除收款预测",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/collectionProjection/list": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "CollectionProjection"
                ],
                "summary": "获取收款预测列表",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/collectionProjection/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "CollectionProjection"
                ],
                "summary": "更新收款预测",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateCollectionProjection"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/contact/add": {
            "post": {
                "produces": [
@@ -1109,7 +1393,7 @@
                }
            }
        },
        "/api/contact/delete/{id}": {
        "/api/contact/delete": {
            "delete": {
                "produces": [
                    "application/json"
@@ -1120,11 +1404,13 @@
                "summary": "删除联系人",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.DeleteContact"
                        }
                    }
                ],
                "responses": {
@@ -1447,6 +1733,169 @@
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateCountry"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/courierCompany/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "物流公司"
                ],
                "summary": "添加物流公司",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddCourierCompany"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/courierCompany/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/courierCompany/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "物流公司"
                ],
                "summary": "获取物流公司列表",
                "parameters": [
                    {
                        "type": "string",
                        "name": "keyword",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                        ],
                        "type": "string",
                        "x-enum-varnames": [
                            "CourierCompanyKeywordCustomerName"
                        ],
                        "name": "keywordType",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                        ],
                        "type": "string",
                        "x-enum-varnames": [
                            "CourierCompanyQueryClassExpireLessThen60Days"
                        ],
                        "name": "queryClass",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.ListResponse"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.CourierCompany"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/courierCompany/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "物流公司"
                ],
                "summary": "更新物流公司",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateCourierCompany"
                        }
                    }
                ],
@@ -2329,6 +2778,136 @@
                }
            }
        },
        "/api/file/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "附件管理"
                ],
                "summary": "添加附件",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "来源id",
                        "name": "sourceId",
                        "in": "formData",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "附件来源",
                        "name": "sourceType",
                        "in": "formData",
                        "required": true
                    },
                    {
                        "type": "file",
                        "description": "上传文件",
                        "name": "file",
                        "in": "formData",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/file/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/file/download": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "附件管理"
                ],
                "summary": "附件下载",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.DownloadFile"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/file/preview": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "附件管理"
                ],
                "summary": "附件预览",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.DownloadFile"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/followRecord/add": {
            "post": {
                "produces": [
@@ -2359,7 +2938,7 @@
                }
            }
        },
        "/api/followRecord/delete/{id}": {
        "/api/followRecord/delete": {
            "delete": {
                "produces": [
                    "application/json"
@@ -2370,11 +2949,13 @@
                "summary": "删除跟进记录",
                "parameters": [
                    {
                        "type": "string",
                        "description": "跟进记录id",
                        "name": "id",
                        "in": "path",
                        "required": true
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.DeleteFollowRecord"
                        }
                    }
                ],
                "responses": {
@@ -2596,6 +3177,495 @@
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateIndustries"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/invoice/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "销售发票"
                ],
                "summary": "添加销售发票",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddInvoice"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/invoice/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/invoice/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "销售发票"
                ],
                "summary": "获取销售发票列表",
                "parameters": [
                    {
                        "type": "string",
                        "name": "keyword",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                        ],
                        "type": "string",
                        "x-enum-varnames": [
                            "InvoiceKeywordCustomerName"
                        ],
                        "name": "keywordType",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                        ],
                        "type": "string",
                        "x-enum-varnames": [
                            "InvoiceQueryClassExpireLessThen60Days"
                        ],
                        "name": "queryClass",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.ListResponse"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.Invoice"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/invoice/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "销售发票"
                ],
                "summary": "更新销售发票",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateInvoice"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/invoiceStatus/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "发票状态"
                ],
                "summary": "添加发票状态",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddInvoiceStatus"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/invoiceStatus/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/invoiceStatus/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "发票状态"
                ],
                "summary": "获取发票状态列表",
                "parameters": [
                    {
                        "type": "string",
                        "name": "keyword",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                        ],
                        "type": "string",
                        "x-enum-varnames": [
                            "InvoiceStatusKeywordCustomerName"
                        ],
                        "name": "keywordType",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                        ],
                        "type": "string",
                        "x-enum-varnames": [
                            "InvoiceStatusQueryClassExpireLessThen60Days"
                        ],
                        "name": "queryClass",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.ListResponse"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.InvoiceStatus"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/invoiceStatus/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "发票状态"
                ],
                "summary": "更新发票状态",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateInvoiceStatus"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/invoiceType/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "发票类型"
                ],
                "summary": "添加发票类型",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddInvoiceType"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/invoiceType/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/invoiceType/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "发票类型"
                ],
                "summary": "获取发票类型列表",
                "parameters": [
                    {
                        "type": "string",
                        "name": "keyword",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                        ],
                        "type": "string",
                        "x-enum-varnames": [
                            "InvoiceTypeKeywordCustomerName"
                        ],
                        "name": "keywordType",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                        ],
                        "type": "string",
                        "x-enum-varnames": [
                            "InvoiceTypeQueryClassExpireLessThen60Days"
                        ],
                        "name": "queryClass",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.ListResponse"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.InvoiceType"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/invoiceType/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "发票类型"
                ],
                "summary": "更新发票类型",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateInvoiceType"
                        }
                    }
                ],
@@ -3052,7 +4122,7 @@
                }
            }
        },
        "/api/orderManage/delete/{id}": {
        "/api/orderManage/delete": {
            "delete": {
                "produces": [
                    "application/json"
@@ -3063,11 +4133,13 @@
                "summary": "删除工单",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.DeleteOrderManage"
                        }
                    }
                ],
                "responses": {
@@ -3258,6 +4330,169 @@
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateOrderTypes"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/paymentType/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "支付方式管理"
                ],
                "summary": "添加支付方式",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddPaymentType"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/paymentType/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/paymentType/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "支付方式管理"
                ],
                "summary": "获取支付方式列表",
                "parameters": [
                    {
                        "type": "string",
                        "name": "keyword",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                        ],
                        "type": "string",
                        "x-enum-varnames": [
                            "PaymentTypeKeywordCustomerName"
                        ],
                        "name": "keywordType",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                        ],
                        "type": "string",
                        "x-enum-varnames": [
                            "PaymentTypeQueryClassExpireLessThen60Days"
                        ],
                        "name": "queryClass",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.ListResponse"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.PaymentType"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/paymentType/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "支付方式管理"
                ],
                "summary": "更新支付方式",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdatePaymentType"
                        }
                    }
                ],
@@ -3637,6 +4872,106 @@
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/product/info": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "产品"
                ],
                "summary": "获取产品详情",
                "parameters": [
                    {
                        "type": "string",
                        "description": "参数",
                        "name": "productNumber",
                        "in": "query",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/contextx.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/product.Product"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/product/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "产品"
                ],
                "summary": "获取产品列表",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "产品名称",
                        "name": "productName",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "产品编码",
                        "name": "productNumber",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.ListResponse"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/product.Product"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
@@ -4036,6 +5371,169 @@
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateQuotationStatuss"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/receipt/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "收款单管理"
                ],
                "summary": "添加收款单",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddReceipt"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/receipt/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/receipt/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "收款单管理"
                ],
                "summary": "获取收款单列表",
                "parameters": [
                    {
                        "type": "string",
                        "name": "keyword",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                        ],
                        "type": "string",
                        "x-enum-varnames": [
                            "ReceiptKeywordCustomerName"
                        ],
                        "name": "keywordType",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                        ],
                        "type": "string",
                        "x-enum-varnames": [
                            "ReceiptQueryClassExpireLessThen60Days"
                        ],
                        "name": "queryClass",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.ListResponse"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.Receipt"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/receipt/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "收款单管理"
                ],
                "summary": "更新收款单",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateReceipt"
                        }
                    }
                ],
@@ -4890,6 +6388,36 @@
                }
            }
        },
        "/api/saleChance/push": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SaleChance"
                ],
                "summary": "推进销售机会",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.PushSaleChance"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/saleChance/update": {
            "put": {
                "produces": [
@@ -5318,7 +6846,7 @@
                }
            }
        },
        "/api/salesLeads/delete/{id}": {
        "/api/salesLeads/delete": {
            "delete": {
                "produces": [
                    "application/json"
@@ -5329,11 +6857,13 @@
                "summary": "删除销售线索",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.DeleteSalesLeads"
                        }
                    }
                ],
                "responses": {
@@ -5383,6 +6913,36 @@
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/salesLeads/push": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SalesLeads"
                ],
                "summary": "推进销售线索",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.PushSalesLeads"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
@@ -6041,9 +7601,9 @@
                    "application/json"
                ],
                "tags": [
                    "服务合同收款计划管理"
                    "收款计划管理"
                ],
                "summary": "添加服务合同收款计划",
                "summary": "添加收款计划",
                "parameters": [
                    {
                        "description": "查询参数",
@@ -6071,9 +7631,9 @@
                    "application/json"
                ],
                "tags": [
                    "服务合同收款计划管理"
                    "收款计划管理"
                ],
                "summary": "删除服务合同收款计划",
                "summary": "删除收款计划",
                "parameters": [
                    {
                        "type": "integer",
@@ -6099,9 +7659,9 @@
                    "application/json"
                ],
                "tags": [
                    "服务合同收款计划管理"
                    "收款计划管理"
                ],
                "summary": "获取服务合同收款计划列表",
                "summary": "获取收款计划列表",
                "parameters": [
                    {
                        "type": "integer",
@@ -6141,9 +7701,9 @@
                    "application/json"
                ],
                "tags": [
                    "服务合同收款计划管理"
                    "收款计划管理"
                ],
                "summary": "更新服务合同收款计划",
                "summary": "更新收款计划",
                "parameters": [
                    {
                        "description": "查询参数",
@@ -6195,7 +7755,7 @@
                }
            }
        },
        "/api/serviceContract/delete/{id}": {
        "/api/serviceContract/delete": {
            "delete": {
                "produces": [
                    "application/json"
@@ -6206,11 +7766,13 @@
                "summary": "删除服务合同",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.DeleteServiceContract"
                        }
                    }
                ],
                "responses": {
@@ -6231,7 +7793,7 @@
                "tags": [
                    "ServiceContract"
                ],
                "summary": "生成计划列表",
                "summary": "服务合同列表",
                "parameters": [
                    {
                        "description": "参数",
@@ -6563,7 +8125,7 @@
                }
            }
        },
        "/api/serviceFeeManage/delete/{id}": {
        "/api/serviceFeeManage/delete": {
            "delete": {
                "produces": [
                    "application/json"
@@ -6574,11 +8136,13 @@
                "summary": "删除服务费管理",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.DeleteServiceFeeManage"
                        }
                    }
                ],
                "responses": {
@@ -6693,7 +8257,7 @@
                }
            }
        },
        "/api/serviceFollowup/delete/{id}": {
        "/api/serviceFollowup/delete": {
            "delete": {
                "produces": [
                    "application/json"
@@ -6704,11 +8268,13 @@
                "summary": "删除服务跟进",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.DeleteServiceFollowup"
                        }
                    }
                ],
                "responses": {
@@ -6823,6 +8389,36 @@
                }
            }
        },
        "/api/serviceOrder/delete": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "服务单管理"
                ],
                "summary": "批量删除服务单",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.CommonIds"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/serviceOrder/delete/{id}": {
            "delete": {
                "produces": [
@@ -6852,7 +8448,7 @@
            }
        },
        "/api/serviceOrder/list": {
            "get": {
            "post": {
                "produces": [
                    "application/json"
                ],
@@ -6860,6 +8456,17 @@
                    "服务单管理"
                ],
                "summary": "获取服务单列表",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.GetServiceOrderList"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
@@ -6902,6 +8509,169 @@
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateServiceOrder"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/serviceOrderStatus/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "服务单状态"
                ],
                "summary": "添加服务单状态",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddServiceOrderStatus"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/serviceOrderStatus/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/serviceOrderStatus/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "服务单状态"
                ],
                "summary": "获取服务单状态列表",
                "parameters": [
                    {
                        "type": "string",
                        "name": "keyword",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                        ],
                        "type": "string",
                        "x-enum-varnames": [
                            "ServiceOrderStatusKeywordCustomerName"
                        ],
                        "name": "keywordType",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                        ],
                        "type": "string",
                        "x-enum-varnames": [
                            "ServiceOrderStatusQueryClassExpireLessThen60Days"
                        ],
                        "name": "queryClass",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.ListResponse"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.ServiceOrderStatus"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/serviceOrderStatus/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "服务单状态"
                ],
                "summary": "更新服务单状态",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateServiceOrderStatus"
                        }
                    }
                ],
@@ -8068,9 +9838,241 @@
                    }
                }
            }
        },
        "/api/wechatOrderStatus/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "微信订单状态"
                ],
                "summary": "添加微信订单状态",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddWechatOrderStatus"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/wechatOrderStatus/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/wechatOrderStatus/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "微信订单状态"
                ],
                "summary": "获取微信订单状态列表",
                "parameters": [
                    {
                        "type": "string",
                        "name": "keyword",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                        ],
                        "type": "string",
                        "x-enum-varnames": [
                            "WechatOrderStatusKeywordCustomerName"
                        ],
                        "name": "keywordType",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                        ],
                        "type": "string",
                        "x-enum-varnames": [
                            "WechatOrderStatusQueryClassExpireLessThen60Days"
                        ],
                        "name": "queryClass",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/response.ListResponse"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.WechatOrderStatus"
                                            }
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/wechatOrderStatus/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "微信订单状态"
                ],
                "summary": "更新微信订单状态",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateWechatOrderStatus"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        }
    },
    "definitions": {
        "constvar.BankAccountKeywordType": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "BankAccountKeywordCustomerName"
            ]
        },
        "constvar.BankAccountQueryClass": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "BankAccountQueryClassExpireLessThen60Days"
            ]
        },
        "constvar.CollectionSourceType": {
            "type": "integer",
            "enum": [
                1,
                2
            ],
            "x-enum-comments": {
                "CollectionSourceTypeSaleDetails": "销售明细",
                "CollectionSourceTypeServiceContract": "服务合同"
            },
            "x-enum-varnames": [
                "CollectionSourceTypeSaleDetails",
                "CollectionSourceTypeServiceContract"
            ]
        },
        "constvar.CollectionStatus": {
            "type": "integer",
            "enum": [
                1,
                2,
                3
            ],
            "x-enum-comments": {
                "CollectionStatusCollected": "已收款",
                "CollectionStatusSubCollected": "部分收款",
                "CollectionStatusUnCollected": "待收款"
            },
            "x-enum-varnames": [
                "CollectionStatusUnCollected",
                "CollectionStatusSubCollected",
                "CollectionStatusCollected"
            ]
        },
        "constvar.CourierCompanyKeywordType": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "CourierCompanyKeywordCustomerName"
            ]
        },
        "constvar.CourierCompanyQueryClass": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "CourierCompanyQueryClassExpireLessThen60Days"
            ]
        },
        "constvar.FaqKeywordType": {
            "type": "string",
            "enum": [
@@ -8089,30 +10091,212 @@
                "FaqQueryClassExpireLessThen60Days"
            ]
        },
        "constvar.SalesStatus": {
        "constvar.InvoiceKeywordType": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "InvoiceKeywordCustomerName"
            ]
        },
        "constvar.InvoiceQueryClass": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "InvoiceQueryClassExpireLessThen60Days"
            ]
        },
        "constvar.InvoiceSourceType": {
            "type": "integer",
            "enum": [
                1,
                2
            ],
            "x-enum-varnames": [
                "InvoiceSourceTypeSaleDetail",
                "InvoiceSourceTypeServiceContract"
            ]
        },
        "constvar.InvoiceStatusKeywordType": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "InvoiceStatusKeywordCustomerName"
            ]
        },
        "constvar.InvoiceStatusQueryClass": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "InvoiceStatusQueryClassExpireLessThen60Days"
            ]
        },
        "constvar.InvoiceTypeKeywordType": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "InvoiceTypeKeywordCustomerName"
            ]
        },
        "constvar.InvoiceTypeQueryClass": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "InvoiceTypeQueryClassExpireLessThen60Days"
            ]
        },
        "constvar.PaymentTypeKeywordType": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "PaymentTypeKeywordCustomerName"
            ]
        },
        "constvar.PaymentTypeQueryClass": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "PaymentTypeQueryClassExpireLessThen60Days"
            ]
        },
        "constvar.ReceiptKeywordType": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "ReceiptKeywordCustomerName"
            ]
        },
        "constvar.ReceiptQueryClass": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "ReceiptQueryClassExpireLessThen60Days"
            ]
        },
        "constvar.ReceiptSourceType": {
            "type": "integer",
            "enum": [
                1,
                2,
                3,
                4,
                5,
                6
                5
            ],
            "x-enum-varnames": [
                "ReceiptSourceTypeSalesDetails",
                "ReceiptSourceTypeServiceContract",
                "ReceiptSourceTypeInvoice",
                "ReceiptSourceTypeCollectionPlan",
                "ReceiptSourceTypeChuKuDan"
            ]
        },
        "constvar.RefundSourceType": {
            "type": "integer",
            "enum": [
                1
            ],
            "x-enum-comments": {
                "RefundSourceTypeSalesReturn": "销售退货"
            },
            "x-enum-varnames": [
                "RefundSourceTypeSalesReturn"
            ]
        },
        "constvar.SalesDetailsKeywordType": {
            "type": "string",
            "enum": [
                "客户名称",
                "订单编号",
                "签约日期",
                "销售负责人",
                "产品名称"
            ],
            "x-enum-varnames": [
                "SalesDetailsKeywordTypeCustomerName",
                "SalesDetailsKeywordTypeOrderNumber",
                "SalesDetailsKeywordTypeSignTime",
                "SalesDetailsKeywordTypePrincipal",
                "SalesDetailsKeywordTypeProductName"
            ]
        },
        "constvar.SalesRefundKeywordType": {
            "type": "string",
            "enum": [
                "销售退货单编号",
                "客户名称",
                "退款日期",
                "账户",
                "是否开票",
                "付款方式",
                "销售负责人",
                "修改时间",
                "价税合计"
            ],
            "x-enum-varnames": [
                "SalesRefundKeywordRefundNumber",
                "SalesRefundKeywordClientName",
                "SalesRefundKeywordRefundDate",
                "SalesRefundKeywordAccount",
                "SalesRefundKeywordIsInvoice",
                "SalesRefundKeywordPaymentType",
                "SalesRefundKeywordPrincipal",
                "SalesRefundKeywordUpdateAt",
                "SalesRefundKeywordPriceTotal"
            ]
        },
        "constvar.SalesReturnSourceType": {
            "type": "integer",
            "enum": [
                1
            ],
            "x-enum-comments": {
                "SalesReturnSourceTypeSaleDetails": "销售明细"
            },
            "x-enum-varnames": [
                "SalesReturnSourceTypeSaleDetails"
            ]
        },
        "constvar.SalesStatus": {
            "type": "integer",
            "enum": [
                0,
                1,
                2,
                3,
                -1
            ],
            "x-enum-comments": {
                "SalesStatusFail": "失败",
                "SalesStatusIng": "进行中",
                "SalesStatusLevelUptoClient": "升级为客户",
                "SalesStatusLevelUptoClientAndSalesChance": "升级为客户并且有销售机会",
                "SalesStatusSuccess": "成功"
                "SalesStatusNew": "新建"
            },
            "x-enum-varnames": [
                "SalesStatusNew",
                "SalesStatusIng",
                "SalesStatusSuccess",
                "SalesStatusFail",
                "SalesStatusLevelUptoClient",
                "SalesStatusLevelUptoClientAndSalesChance"
                "SalesStatusLevelUptoClientAndSalesChance",
                "SalesStatusFail"
            ]
        },
        "constvar.ServiceContractKeywordType": {
@@ -8220,6 +10404,56 @@
                "ServiceFollowupKeywordSatisfactionDegree"
            ]
        },
        "constvar.ServiceOrderKeywordType": {
            "type": "string",
            "enum": [
                "服务单编号",
                "主题",
                "客户名称",
                "实际处理时间",
                "服务人员",
                "服务方式",
                "产品类别",
                "故障类别"
            ],
            "x-enum-varnames": [
                "ServiceOrderKeywordOrderNumber",
                "ServiceOrderKeywordSubject",
                "ServiceOrderKeywordClientName",
                "ServiceOrderKeywordRealProcessTime",
                "ServiceOrderKeywordServiceMan",
                "ServiceOrderKeywordServiceType",
                "ServiceOrderKeywordProductType",
                "ServiceOrderKeywordFaultType"
            ]
        },
        "constvar.ServiceOrderQueryClass": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "ServiceOrderQueryClassExpireLessThen60Days"
            ]
        },
        "constvar.ServiceOrderStatusKeywordType": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "ServiceOrderStatusKeywordCustomerName"
            ]
        },
        "constvar.ServiceOrderStatusQueryClass": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "ServiceOrderStatusQueryClassExpireLessThen60Days"
            ]
        },
        "constvar.UserType": {
            "type": "integer",
            "enum": [
@@ -8236,6 +10470,24 @@
                "UserTypeSuper",
                "UserTypePrimary",
                "UserTypeSub"
            ]
        },
        "constvar.WechatOrderStatusKeywordType": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "WechatOrderStatusKeywordCustomerName"
            ]
        },
        "constvar.WechatOrderStatusQueryClass": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "WechatOrderStatusQueryClassExpireLessThen60Days"
            ]
        },
        "contextx.Response": {
@@ -8281,6 +10533,17 @@
                    "items": {
                        "$ref": "#/definitions/model.Menu"
                    }
                }
            }
        },
        "model.BankAccount": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
@@ -8382,6 +10645,9 @@
                "latest_service_time": {
                    "type": "string"
                },
                "member": {
                    "$ref": "#/definitions/model.User"
                },
                "member_id": {
                    "type": "integer"
                },
@@ -8470,6 +10736,42 @@
                }
            }
        },
        "model.CollectionProjection": {
            "type": "object",
            "properties": {
                "_": {
                    "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25",
                    "type": "string"
                },
                "created_at": {
                    "description": "The date when the item was created\nexample: 2023-08-10 15:48:25",
                    "type": "string"
                },
                "creator": {
                    "type": "integer"
                },
                "estimated_collection_amount": {
                    "type": "number"
                },
                "estimated_collection_date": {
                    "type": "string"
                },
                "id": {
                    "description": "The ID of the item\nexample: 1",
                    "type": "integer"
                },
                "modifier": {
                    "type": "integer"
                },
                "sale_chance_id": {
                    "type": "integer"
                },
                "updated_at": {
                    "description": "The date when the item was last updated\nexample: 2023-08-10 15:48:25",
                    "type": "string"
                }
            }
        },
        "model.Contact": {
            "type": "object",
            "properties": {
@@ -8502,6 +10804,9 @@
                },
                "is_first": {
                    "type": "boolean"
                },
                "member": {
                    "$ref": "#/definitions/model.User"
                },
                "member_id": {
                    "type": "integer"
@@ -8577,6 +10882,9 @@
                "is_first": {
                    "type": "boolean"
                },
                "member": {
                    "$ref": "#/definitions/model.User"
                },
                "member_id": {
                    "type": "integer"
                },
@@ -8612,14 +10920,29 @@
        "model.Contract": {
            "type": "object",
            "properties": {
                "_": {
                    "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25",
                    "type": "string"
                },
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
                "clientId": {
                    "type": "integer"
                },
                "created_at": {
                    "description": "The date when the item was created\nexample: 2023-08-10 15:48:25",
                    "type": "string"
                },
                "file": {
                    "type": "string"
                },
                "id": {
                    "description": "The ID of the item\nexample: 1",
                    "type": "integer"
                },
                "member": {
                    "$ref": "#/definitions/model.User"
                },
                "memberId": {
                    "type": "integer"
@@ -8635,6 +10958,10 @@
                },
                "statusId": {
                    "type": "integer"
                },
                "updated_at": {
                    "description": "The date when the item was last updated\nexample: 2023-08-10 15:48:25",
                    "type": "string"
                }
            }
        },
@@ -8655,7 +10982,7 @@
                }
            }
        },
        "model.Currency": {
        "model.CourierCompany": {
            "type": "object",
            "properties": {
                "id": {
@@ -8666,29 +10993,14 @@
                }
            }
        },
        "model.CustomerServiceSheet": {
        "model.Currency": {
            "type": "object",
            "properties": {
                "handleStatus": {
                    "type": "integer"
                },
                "id": {
                    "type": "integer"
                },
                "memberId": {
                    "type": "integer"
                },
                "number": {
                "name": {
                    "type": "string"
                },
                "priority": {
                    "type": "integer"
                },
                "serviceFollowupId": {
                    "type": "integer"
                },
                "serviceMode": {
                    "type": "integer"
                }
            }
        },
@@ -8756,6 +11068,9 @@
                "client_id": {
                    "type": "integer"
                },
                "client_status": {
                    "$ref": "#/definitions/model.ClientStatus"
                },
                "client_status_id": {
                    "type": "integer"
                },
@@ -8777,6 +11092,9 @@
                "id": {
                    "type": "integer"
                },
                "member": {
                    "$ref": "#/definitions/model.User"
                },
                "member_id": {
                    "type": "integer"
                },
@@ -8792,8 +11110,14 @@
                "record": {
                    "type": "string"
                },
                "sale_chance": {
                    "$ref": "#/definitions/model.SaleChance"
                },
                "sale_chance_id": {
                    "type": "integer"
                },
                "sales_leads": {
                    "$ref": "#/definitions/model.SalesLeads"
                },
                "sales_leads_id": {
                    "type": "integer"
@@ -8804,6 +11128,106 @@
            }
        },
        "model.Industry": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "model.Invoice": {
            "type": "object",
            "properties": {
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
                },
                "courierCompany": {
                    "$ref": "#/definitions/model.CourierCompany"
                },
                "courierCompanyId": {
                    "description": "物流公司",
                    "type": "integer"
                },
                "courierNumber": {
                    "description": "物流单号",
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "invoiceDate": {
                    "description": "开票日期",
                    "type": "string"
                },
                "invoiceNumber": {
                    "description": "发票号码",
                    "type": "string"
                },
                "invoiceStatus": {
                    "$ref": "#/definitions/model.InvoiceStatus"
                },
                "invoiceStatusId": {
                    "description": "发票状态id",
                    "type": "integer"
                },
                "invoiceType": {
                    "$ref": "#/definitions/model.InvoiceType"
                },
                "invoiceTypeId": {
                    "description": "发票类型id",
                    "type": "integer"
                },
                "principalId": {
                    "description": "销售负责人id",
                    "type": "integer"
                },
                "products": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "sourceId": {
                    "description": "源单id",
                    "type": "integer"
                },
                "sourceType": {
                    "description": "源单类型(1销售明细单2服务合同)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.InvoiceSourceType"
                        }
                    ]
                },
                "subject": {
                    "description": "主题",
                    "type": "string"
                },
                "taxpayerIdNumber": {
                    "description": "纳税识别号",
                    "type": "string"
                }
            }
        },
        "model.InvoiceStatus": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "model.InvoiceType": {
            "type": "object",
            "properties": {
                "id": {
@@ -8850,6 +11274,9 @@
                },
                "id": {
                    "type": "integer"
                },
                "member": {
                    "$ref": "#/definitions/model.User"
                },
                "member_id": {
                    "type": "integer"
@@ -8941,6 +11368,17 @@
                }
            }
        },
        "model.PaymentType": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "model.Plan": {
            "type": "object",
            "properties": {
@@ -9008,7 +11446,7 @@
            "type": "object",
            "properties": {
                "amount": {
                    "type": "integer"
                    "type": "number"
                },
                "desc": {
                    "type": "string"
@@ -9071,11 +11509,23 @@
                "id": {
                    "type": "integer"
                },
                "member": {
                    "$ref": "#/definitions/model.User"
                },
                "member_id": {
                    "type": "integer"
                },
                "number": {
                    "type": "string"
                },
                "products": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "quotation_status": {
                    "$ref": "#/definitions/model.QuotationStatus"
                },
                "quotation_status_id": {
                    "type": "integer"
@@ -9099,6 +11549,76 @@
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "model.Receipt": {
            "type": "object",
            "properties": {
                "amount": {
                    "description": "收款金额",
                    "type": "number"
                },
                "bankAccount": {
                    "$ref": "#/definitions/model.BankAccount"
                },
                "bankAccountId": {
                    "description": "账户id",
                    "type": "integer"
                },
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
                },
                "fileId": {
                    "description": "附件id",
                    "type": "integer"
                },
                "id": {
                    "type": "integer"
                },
                "moneyType": {
                    "description": "币种",
                    "type": "string"
                },
                "paymentType": {
                    "$ref": "#/definitions/model.PaymentType"
                },
                "paymentTypeId": {
                    "description": "收款方式ID",
                    "type": "integer"
                },
                "principal": {
                    "description": "负责人id",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.User"
                        }
                    ]
                },
                "principalId": {
                    "description": "负责人id",
                    "type": "integer"
                },
                "receiptDate": {
                    "description": "收款日期",
                    "type": "string"
                },
                "remark": {
                    "description": "备注",
                    "type": "string"
                },
                "sourceId": {
                    "description": "源单id",
                    "type": "integer"
                },
                "sourceType": {
                    "description": "来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.ReceiptSourceType"
                        }
                    ]
                }
            }
        },
@@ -9192,6 +11712,12 @@
                "client_id": {
                    "type": "integer"
                },
                "collection_projections": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.CollectionProjection"
                    }
                },
                "competitors": {
                    "type": "string"
                },
@@ -9228,6 +11754,9 @@
                "key_maker": {
                    "type": "string"
                },
                "member": {
                    "$ref": "#/definitions/model.User"
                },
                "member_id": {
                    "type": "integer"
                },
@@ -9245,6 +11774,9 @@
                },
                "possibilities_id": {
                    "type": "integer"
                },
                "possibility": {
                    "$ref": "#/definitions/model.Possibility"
                },
                "process": {
                    "type": "string"
@@ -9264,19 +11796,28 @@
                "region_id": {
                    "type": "integer"
                },
                "regular_customers": {
                    "$ref": "#/definitions/model.RegularCustomers"
                },
                "regular_customers_id": {
                    "type": "integer"
                },
                "remark": {
                    "type": "string"
                },
                "sale_stage": {
                    "$ref": "#/definitions/model.SaleStage"
                },
                "sale_stage_id": {
                    "type": "integer"
                },
                "sale_type": {
                    "$ref": "#/definitions/model.SaleType"
                },
                "sale_type_id": {
                    "type": "integer"
                },
                "salesSources": {
                "sales_sources": {
                    "$ref": "#/definitions/model.SalesSources"
                },
                "sales_sources_id": {
@@ -9321,11 +11862,34 @@
        "model.SalesDetails": {
            "type": "object",
            "properties": {
                "Member": {
                    "$ref": "#/definitions/model.User"
                },
                "address": {
                    "type": "string"
                },
                "addressee": {
                    "type": "string"
                },
                "amountInvoiced": {
                    "description": "已开票金额",
                    "type": "number"
                },
                "amountReceivable": {
                    "description": "应收金额",
                    "type": "number"
                },
                "amountReceived": {
                    "description": "已收金额",
                    "type": "number"
                },
                "amountTotal": {
                    "description": "价税合计",
                    "type": "number"
                },
                "amountUnInvoiced": {
                    "description": "未开票金额",
                    "type": "number"
                },
                "client": {
                    "$ref": "#/definitions/model.Client"
@@ -9334,6 +11898,15 @@
                    "type": "integer"
                },
                "conditions": {
                    "type": "string"
                },
                "createTime": {
                    "type": "string"
                },
                "creatorId": {
                    "type": "integer"
                },
                "creatorName": {
                    "type": "string"
                },
                "deliveryDate": {
@@ -9369,6 +11942,9 @@
                "remark": {
                    "type": "string"
                },
                "saleChance": {
                    "$ref": "#/definitions/model.SaleChance"
                },
                "saleChanceId": {
                    "type": "integer"
                },
@@ -9379,6 +11955,9 @@
                    "type": "string"
                },
                "wechatOrderStatus": {
                    "$ref": "#/definitions/model.WechatOrderStatus"
                },
                "wechatOrderStatusId": {
                    "type": "integer"
                }
            }
@@ -9419,6 +11998,9 @@
                "id": {
                    "type": "integer"
                },
                "member": {
                    "$ref": "#/definitions/model.User"
                },
                "member_id": {
                    "type": "integer"
                },
@@ -9434,11 +12016,17 @@
                "province_id": {
                    "type": "integer"
                },
                "reason": {
                    "type": "string"
                },
                "region": {
                    "$ref": "#/definitions/model.Region"
                },
                "region_id": {
                    "type": "integer"
                },
                "sales_sources": {
                    "$ref": "#/definitions/model.SalesSources"
                },
                "sales_sources_id": {
                    "type": "integer"
@@ -9451,11 +12039,28 @@
        "model.SalesRefund": {
            "type": "object",
            "properties": {
                "accountId": {
                "amountTotal": {
                    "description": "价税合计",
                    "type": "number"
                },
                "bankAccount": {
                    "$ref": "#/definitions/model.BankAccount"
                },
                "bankAccountId": {
                    "description": "账户id",
                    "type": "integer"
                },
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
                "clientId": {
                    "type": "integer"
                },
                "createTime": {
                    "type": "string"
                },
                "creatorName": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
@@ -9463,11 +12068,21 @@
                "isInvoice": {
                    "type": "integer"
                },
                "member": {
                    "$ref": "#/definitions/model.User"
                },
                "memberId": {
                    "type": "integer"
                },
                "number": {
                    "type": "string"
                },
                "paymentType": {
                    "$ref": "#/definitions/model.PaymentType"
                },
                "paymentTypeId": {
                    "description": "收款方式ID",
                    "type": "integer"
                },
                "products": {
                    "type": "array",
@@ -9481,16 +12096,45 @@
                "refundDate": {
                    "type": "string"
                },
                "refundMethod": {
                    "type": "string"
                "sourceId": {
                    "description": "源单id",
                    "type": "integer"
                },
                "sourceType": {
                    "description": "来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.RefundSourceType"
                        }
                    ]
                }
            }
        },
        "model.SalesReturn": {
            "type": "object",
            "properties": {
                "Member": {
                    "$ref": "#/definitions/model.User"
                },
                "SalesReturnStatus": {
                    "description": "退货状态",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.SalesReturnStatus"
                        }
                    ]
                },
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
                "clientId": {
                    "type": "integer"
                },
                "createTime": {
                    "type": "string"
                },
                "creatorName": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
@@ -9502,22 +12146,38 @@
                    "type": "string"
                },
                "products": {
                    "description": "退货产品",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "reason": {
                    "description": "退货原因",
                    "type": "string"
                },
                "repository": {
                    "type": "string"
                },
                "returnDate": {
                    "description": "退货日期",
                    "type": "string"
                },
                "salesReturnStatus": {
                "salesReturnStatusId": {
                    "description": "退货状态id",
                    "type": "integer"
                },
                "sourceId": {
                    "description": "源单id",
                    "type": "integer"
                },
                "sourceType": {
                    "description": "源单类型(1销售明细)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.SalesReturnSourceType"
                        }
                    ]
                }
            }
        },
@@ -9561,6 +12221,18 @@
                    "description": "金额",
                    "type": "number"
                },
                "amountReceivable": {
                    "description": "应收金额",
                    "type": "number"
                },
                "amountReceived": {
                    "description": "已收金额",
                    "type": "number"
                },
                "amountTotal": {
                    "description": "总额",
                    "type": "number"
                },
                "collectionDate": {
                    "description": "计划收款日期",
                    "type": "string"
@@ -9584,7 +12256,7 @@
                    "description": "比例",
                    "type": "number"
                },
                "principal": {
                "principalId": {
                    "description": "收款负责人ID",
                    "type": "integer"
                },
@@ -9592,13 +12264,25 @@
                    "description": "备注",
                    "type": "string"
                },
                "serviceContractId": {
                    "description": "服务合同id",
                "sourceId": {
                    "description": "源单id",
                    "type": "integer"
                },
                "sourceType": {
                    "description": "源单类型(1销售明细2服务合同3销售发票)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.CollectionSourceType"
                        }
                    ]
                },
                "status": {
                    "description": "状态(1未收2已收)",
                    "type": "integer"
                    "description": "状态(1未收2部分已收3已收)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.CollectionStatus"
                        }
                    ]
                },
                "term": {
                    "description": "期次",
@@ -9609,13 +12293,39 @@
        "model.ServiceContract": {
            "type": "object",
            "properties": {
                "SaleChance": {
                    "$ref": "#/definitions/model.SaleChance"
                },
                "amountInvoiced": {
                    "description": "已开票金额",
                    "type": "number"
                },
                "amountReceivable": {
                    "description": "应收金额",
                    "type": "number"
                },
                "amountReceived": {
                    "description": "已收金额",
                    "type": "number"
                },
                "amountTotal": {
                    "description": "价税合计",
                    "type": "number"
                },
                "amountUnInvoiced": {
                    "description": "未开票金额",
                    "type": "number"
                },
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
                "clientId": {
                    "type": "integer"
                },
                "contactId": {
                    "type": "integer"
                "contact": {
                    "$ref": "#/definitions/model.Contact"
                },
                "contractId": {
                "contactId": {
                    "type": "integer"
                },
                "endTime": {
@@ -9636,6 +12346,9 @@
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "quotation": {
                    "$ref": "#/definitions/model.Quotation"
                },
                "quotationId": {
                    "type": "integer"
                },
@@ -9645,8 +12358,20 @@
                "saleChanceId": {
                    "type": "integer"
                },
                "salesDetails": {
                    "$ref": "#/definitions/model.SalesDetails"
                },
                "salesDetailsId": {
                    "type": "integer"
                },
                "serviceContractStatus": {
                    "$ref": "#/definitions/model.ServiceContractStatus"
                },
                "serviceContractStatusId": {
                    "type": "integer"
                },
                "serviceContractType": {
                    "$ref": "#/definitions/model.ServiceContractType"
                },
                "serviceContractTypeId": {
                    "type": "integer"
@@ -9716,20 +12441,29 @@
        "model.ServiceFollowup": {
            "type": "object",
            "properties": {
                "Member": {
                    "$ref": "#/definitions/model.User"
                },
                "client": {
                    "$ref": "#/definitions/model.Client"
                },
                "clientId": {
                    "type": "integer"
                },
                "contact": {
                    "$ref": "#/definitions/model.Contact"
                },
                "contactId": {
                    "type": "integer"
                },
                "customerServiceSheet": {
                    "$ref": "#/definitions/model.CustomerServiceSheet"
                },
                "file": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "isVisit": {
                    "$ref": "#/definitions/model.IsVisit"
                },
                "isVisitId": {
                    "type": "integer"
@@ -9740,6 +12474,9 @@
                "number": {
                    "type": "string"
                },
                "oldMember": {
                    "$ref": "#/definitions/model.User"
                },
                "oldMemberId": {
                    "type": "integer"
                },
@@ -9749,17 +12486,26 @@
                "remark": {
                    "type": "string"
                },
                "satisfactionId": {
                    "type": "integer"
                "satisfaction": {
                    "$ref": "#/definitions/model.Satisfaction"
                },
                "serviceId": {
                "satisfactionId": {
                    "type": "integer"
                },
                "serviceOrder": {
                    "$ref": "#/definitions/model.ServiceOrder"
                },
                "serviceOrderId": {
                    "type": "integer"
                },
                "solveRate": {
                    "$ref": "#/definitions/model.SolveRate"
                },
                "solveRateId": {
                    "type": "integer"
                },
                "timelyRate": {
                    "$ref": "#/definitions/model.TimelyRate"
                },
                "timelyRateId": {
                    "type": "integer"
@@ -9778,11 +12524,11 @@
                    "type": "string"
                },
                "carFare": {
                    "description": "交通费",
                    "description": "交通费                                                                 // 交通费",
                    "type": "number"
                },
                "chargeAmount": {
                    "description": "收费金额",
                    "description": "收费金额                                                       // 收费金额",
                    "type": "number"
                },
                "client": {
@@ -9797,13 +12543,6 @@
                },
                "contactId": {
                    "description": "联系人id",
                    "type": "integer"
                },
                "contract": {
                    "$ref": "#/definitions/model.Contract"
                },
                "contractId": {
                    "description": "合同id",
                    "type": "integer"
                },
                "expectTime": {
@@ -9826,13 +12565,6 @@
                },
                "id": {
                    "type": "integer"
                },
                "orderId": {
                    "description": "销售订单id",
                    "type": "integer"
                },
                "orderManage": {
                    "$ref": "#/definitions/model.OrderManage"
                },
                "priorityLevel": {
                    "$ref": "#/definitions/model.PriorityLevel"
@@ -9867,6 +12599,20 @@
                    "description": "销售机会id",
                    "type": "integer"
                },
                "salesDetails": {
                    "$ref": "#/definitions/model.SalesDetails"
                },
                "salesDetailsId": {
                    "description": "销售明细id",
                    "type": "integer"
                },
                "serviceContract": {
                    "$ref": "#/definitions/model.ServiceContract"
                },
                "serviceContractId": {
                    "description": "服务合同id",
                    "type": "integer"
                },
                "serviceManId": {
                    "description": "服务人员",
                    "type": "integer"
@@ -9874,6 +12620,13 @@
                "serviceNumber": {
                    "description": "服务单编号",
                    "type": "string"
                },
                "serviceOrderStatus": {
                    "$ref": "#/definitions/model.ServiceOrderStatus"
                },
                "serviceOrderStatusId": {
                    "description": "处理状态",
                    "type": "integer"
                },
                "serviceType": {
                    "$ref": "#/definitions/model.ServiceType"
@@ -9893,10 +12646,6 @@
                    "description": "内部备注",
                    "type": "string"
                },
                "status": {
                    "description": "处理状态",
                    "type": "integer"
                },
                "subject": {
                    "description": "主题",
                    "type": "string"
@@ -9907,6 +12656,17 @@
                "timeSpentId": {
                    "description": "花费时间",
                    "type": "integer"
                }
            }
        },
        "model.ServiceOrderStatus": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
@@ -9966,8 +12726,14 @@
                "id": {
                    "type": "integer"
                },
                "masterOrder": {
                    "$ref": "#/definitions/model.MasterOrder"
                },
                "masterOrderId": {
                    "type": "integer"
                },
                "member": {
                    "$ref": "#/definitions/model.User"
                },
                "memberId": {
                    "type": "integer"
@@ -10057,6 +12823,55 @@
                }
            }
        },
        "model.WechatOrderStatus": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "product.Product": {
            "type": "object",
            "properties": {
                "Amount": {
                    "description": "库存剩余量",
                    "type": "number"
                },
                "IsSale": {
                    "description": "是否销售",
                    "type": "boolean"
                },
                "MaterialMode": {
                    "description": "物料类型",
                    "type": "string"
                },
                "MinInventory": {
                    "description": "安全库存",
                    "type": "integer"
                },
                "Name": {
                    "type": "string"
                },
                "Number": {
                    "type": "string"
                },
                "PurchaseType": {
                    "description": "采购类型",
                    "type": "string"
                },
                "SalePrice": {
                    "description": "销售价格",
                    "type": "number"
                },
                "Unit": {
                    "type": "string"
                }
            }
        },
        "request.AddAccountId": {
            "type": "object",
            "required": [
@@ -10079,6 +12894,17 @@
                    "items": {
                        "$ref": "#/definitions/request.CasbinInfo"
                    }
                }
            }
        },
        "request.AddBankAccount": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
@@ -10184,6 +13010,10 @@
                    "description": "法人代表",
                    "type": "string"
                },
                "sales_leads_id": {
                    "description": "销售线索ID",
                    "type": "integer"
                },
                "service_member_id": {
                    "description": "服务负责人ID",
                    "type": "integer"
@@ -10220,6 +13050,23 @@
            "properties": {
                "name": {
                    "type": "string"
                }
            }
        },
        "request.AddCollectionProjection": {
            "type": "object",
            "properties": {
                "estimated_collection_amount": {
                    "description": "预计收款金额",
                    "type": "number"
                },
                "estimated_collection_time": {
                    "description": "预计收款时间",
                    "type": "string"
                },
                "sale_chance_id": {
                    "description": "销售机会id",
                    "type": "integer"
                }
            }
        },
@@ -10317,6 +13164,17 @@
            "properties": {
                "name": {
                    "description": "国家名称",
                    "type": "string"
                }
            }
        },
        "request.AddCourierCompany": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
@@ -10429,6 +13287,92 @@
                }
            }
        },
        "request.AddInvoice": {
            "type": "object",
            "properties": {
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
                },
                "courierCompanyId": {
                    "description": "物流公司",
                    "type": "integer"
                },
                "courierNumber": {
                    "description": "物流单号",
                    "type": "string"
                },
                "invoiceDate": {
                    "description": "开票日期",
                    "type": "string"
                },
                "invoiceNumber": {
                    "description": "发票号码",
                    "type": "string"
                },
                "invoiceStatusId": {
                    "description": "发票状态id",
                    "type": "integer"
                },
                "invoiceTypeId": {
                    "description": "发票类型id",
                    "type": "integer"
                },
                "principalId": {
                    "description": "销售负责人id",
                    "type": "integer"
                },
                "products": {
                    "description": "发票对应产品,从相应源单里获取",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "sourceId": {
                    "description": "源单id",
                    "type": "integer"
                },
                "sourceType": {
                    "description": "源单类型(1销售明细单2服务合同)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.InvoiceSourceType"
                        }
                    ]
                },
                "subject": {
                    "description": "主题",
                    "type": "string"
                },
                "taxpayerIdNumber": {
                    "description": "纳税识别号",
                    "type": "string"
                }
            }
        },
        "request.AddInvoiceStatus": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.AddInvoiceType": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.AddIsInvoice": {
            "type": "object",
            "required": [
@@ -10517,6 +13461,17 @@
                }
            }
        },
        "request.AddPaymentType": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.AddPlan": {
            "type": "object",
            "properties": {
@@ -10577,6 +13532,12 @@
                "number": {
                    "type": "string"
                },
                "products": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "quotation_status_id": {
                    "type": "integer"
                },
@@ -10596,6 +13557,76 @@
            "properties": {
                "name": {
                    "type": "string"
                }
            }
        },
        "request.AddReceipt": {
            "type": "object",
            "properties": {
                "amount": {
                    "description": "收款金额",
                    "type": "number"
                },
                "bankAccount": {
                    "$ref": "#/definitions/model.BankAccount"
                },
                "bankAccountId": {
                    "description": "账户id",
                    "type": "integer"
                },
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
                },
                "fileId": {
                    "description": "附件id",
                    "type": "integer"
                },
                "id": {
                    "type": "integer"
                },
                "moneyType": {
                    "description": "币种",
                    "type": "string"
                },
                "paymentType": {
                    "$ref": "#/definitions/model.PaymentType"
                },
                "paymentTypeId": {
                    "description": "收款方式ID",
                    "type": "integer"
                },
                "principal": {
                    "description": "负责人id",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.User"
                        }
                    ]
                },
                "principalId": {
                    "description": "负责人id",
                    "type": "integer"
                },
                "receiptDate": {
                    "description": "收款日期",
                    "type": "string"
                },
                "remark": {
                    "description": "备注",
                    "type": "string"
                },
                "sourceId": {
                    "description": "源单id",
                    "type": "integer"
                },
                "sourceType": {
                    "description": "来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.ReceiptSourceType"
                        }
                    ]
                }
            }
        },
@@ -10792,8 +13823,59 @@
        "request.AddSalesDetails": {
            "type": "object",
            "properties": {
                "salesDetails": {
                    "$ref": "#/definitions/request.SalesDetails"
                "address": {
                    "type": "string"
                },
                "addressee": {
                    "type": "string"
                },
                "clientId": {
                    "type": "integer"
                },
                "conditions": {
                    "type": "string"
                },
                "deliveryDate": {
                    "type": "string"
                },
                "logisticCompany": {
                    "type": "string"
                },
                "logisticCost": {
                    "type": "number"
                },
                "logisticNumber": {
                    "type": "string"
                },
                "memberId": {
                    "type": "integer"
                },
                "number": {
                    "type": "string"
                },
                "phone": {
                    "type": "string"
                },
                "products": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "remark": {
                    "type": "string"
                },
                "saleChanceId": {
                    "type": "integer"
                },
                "saleType": {
                    "type": "integer"
                },
                "signTime": {
                    "type": "string"
                },
                "wechatOrderStatusId": {
                    "type": "integer"
                }
            }
        },
@@ -10897,6 +13979,9 @@
        },
        "request.AddServiceCollectionPlan": {
            "type": "object",
            "required": [
                "list"
            ],
            "properties": {
                "list": {
                    "type": "array",
@@ -10908,14 +13993,14 @@
        },
        "request.AddServiceContract": {
            "type": "object",
            "required": [
                "memberId"
            ],
            "properties": {
                "clientId": {
                    "type": "integer"
                },
                "contactId": {
                    "type": "integer"
                },
                "contractId": {
                    "type": "integer"
                },
                "endTime": {
@@ -10940,6 +14025,9 @@
                    "type": "string"
                },
                "saleChanceId": {
                    "type": "integer"
                },
                "salesDetailsId": {
                    "type": "integer"
                },
                "serviceTimes": {
@@ -11080,6 +14168,10 @@
                    "description": "法人代表",
                    "type": "string"
                },
                "sales_leads_id": {
                    "description": "销售线索ID",
                    "type": "integer"
                },
                "service_member_id": {
                    "description": "服务负责人ID",
                    "type": "integer"
@@ -11119,7 +14211,7 @@
                "satisfaction": {
                    "type": "integer"
                },
                "serviceId": {
                "serviceOrderId": {
                    "type": "integer"
                },
                "solveRate": {
@@ -11157,10 +14249,6 @@
                    "description": "联系人id",
                    "type": "integer"
                },
                "contractId": {
                    "description": "合同id",
                    "type": "integer"
                },
                "expectTime": {
                    "description": "希望处理时间",
                    "type": "string"
@@ -11171,10 +14259,6 @@
                },
                "faultTypeId": {
                    "description": "故障类别id",
                    "type": "integer"
                },
                "orderId": {
                    "description": "销售订单id",
                    "type": "integer"
                },
                "priorityLevelId": {
@@ -11201,6 +14285,14 @@
                    "description": "销售机会id",
                    "type": "integer"
                },
                "salesDetailsId": {
                    "description": "销售订单id",
                    "type": "integer"
                },
                "serviceContractId": {
                    "description": "合同id",
                    "type": "integer"
                },
                "serviceManId": {
                    "description": "服务人员",
                    "type": "integer"
@@ -11208,6 +14300,10 @@
                "serviceNumber": {
                    "description": "服务单编号",
                    "type": "string"
                },
                "serviceOrderStatusId": {
                    "description": "处理状态",
                    "type": "integer"
                },
                "serviceTypeId": {
                    "description": "服务方式id",
@@ -11225,10 +14321,6 @@
                    "description": "内部备注",
                    "type": "string"
                },
                "status": {
                    "description": "处理状态",
                    "type": "integer"
                },
                "subject": {
                    "description": "主题",
                    "type": "string"
@@ -11236,6 +14328,17 @@
                "timeSpentId": {
                    "description": "花费时间",
                    "type": "integer"
                }
            }
        },
        "request.AddServiceOrderStatus": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
@@ -11355,16 +14458,31 @@
                }
            }
        },
        "request.Assign": {
        "request.AddWechatOrderStatus": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.Assign": {
            "type": "object",
            "properties": {
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                },
                "member_id": {
                    "type": "integer"
                },
                "type": {
                    "description": "类型: client: 客户; salesLead: 销售线索; contact: 联系人; followRecord: 跟进记录",
                    "type": "string"
                }
            }
@@ -11421,6 +14539,20 @@
                "pos": {
                    "description": "用户岗位",
                    "type": "string"
                }
            }
        },
        "request.CommonIds": {
            "type": "object",
            "required": [
                "ids"
            ],
            "properties": {
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                }
            }
        },
@@ -11501,6 +14633,17 @@
                }
            }
        },
        "request.DeleteContact": {
            "type": "object",
            "properties": {
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                }
            }
        },
        "request.DeleteCountry": {
            "type": "object",
            "properties": {
@@ -11510,11 +14653,104 @@
                }
            }
        },
        "request.DeleteFollowRecord": {
            "type": "object",
            "properties": {
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                }
            }
        },
        "request.DeleteOrderManage": {
            "type": "object",
            "properties": {
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                }
            }
        },
        "request.DeleteSalesLeads": {
            "type": "object",
            "properties": {
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                }
            }
        },
        "request.DeleteServiceContract": {
            "type": "object",
            "properties": {
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                }
            }
        },
        "request.DeleteServiceFeeManage": {
            "type": "object",
            "properties": {
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                }
            }
        },
        "request.DeleteServiceFollowup": {
            "type": "object",
            "properties": {
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                }
            }
        },
        "request.DeleteUserReq": {
            "type": "object",
            "properties": {
                "userId": {
                    "description": "用户ID",
                    "type": "string"
                }
            }
        },
        "request.DownloadFile": {
            "type": "object",
            "required": [
                "id",
                "key",
                "sourceId",
                "sourceType"
            ],
            "properties": {
                "id": {
                    "description": "附件id",
                    "type": "integer"
                },
                "key": {
                    "description": "附件存储key",
                    "type": "string"
                },
                "sourceId": {
                    "description": "来源id",
                    "type": "integer"
                },
                "sourceType": {
                    "description": "附件来源",
                    "type": "string"
                }
            }
@@ -11569,9 +14805,6 @@
        "request.GetClientList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
@@ -11579,15 +14812,17 @@
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                },
                "search_map": {
                    "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"}; {\"name\": \"客户名称\", \"phone\": \"手机号码\", \"detail_address\":\"详细地址\", \"next_visit_time\":\"下回回访日期\", \"member_name\": \"销售负责人\", \"client_status\": \"客户状态\", \"client_level\": \"重要级别\"}",
                    "type": "object",
                    "additionalProperties": true
                }
            }
        },
        "request.GetContactList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
@@ -11595,15 +14830,17 @@
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                },
                "search_map": {
                    "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"}; {\"name\": \"客户名称\", \"phone\": \"手机号码\", \"detail_address\":\"详细地址\", \"next_visit_time\":\"下回回访日期\", \"member_name\": \"销售负责人\", \"client_status\": \"客户状态\", \"client_level\": \"重要级别\", \"is_first\": \"是否是首要联系人\"}",
                    "type": "object",
                    "additionalProperties": true
                }
            }
        },
        "request.GetContractList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
@@ -11611,6 +14848,11 @@
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                },
                "search_map": {
                    "description": "搜索条件: map[string]interface{} {\"member_name\": \"销售负责人\", \"number\": \"合同编号\", \"created_at\": \"创建时间\"}",
                    "type": "object",
                    "additionalProperties": true
                }
            }
        },
@@ -11639,9 +14881,6 @@
        "request.GetFollowRecordList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
@@ -11649,15 +14888,17 @@
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                },
                "search_map": {
                    "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"}; {\"topic\": \"跟进主题\", \"member_name\": \"跟进人\", \"client_name\": \"客户名称\", \"client_status\": \"客户状态\", \"follow_time\": \"跟进时间\", \"next_follow_time\": \"下次跟进时间\", \"record\": \"跟进记录\", \"phone\": \"联系人电话\", \"contact_name\": \"联系人姓名\"}",
                    "type": "object",
                    "additionalProperties": true
                }
            }
        },
        "request.GetMasterOrderList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
@@ -11665,6 +14906,11 @@
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                },
                "search_map": {
                    "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"}; {\"number\": \"销售总单号\", \"client_name\": \"客户名称\", \"member_name\": \"销售负责人\", \"start_time\": \"开始时间\", \"end_time\": \"结束时间\", \"money\": \"总金额\", \"member_name\": \"负责人\"}",
                    "type": "object",
                    "additionalProperties": true
                }
            }
        },
@@ -11703,9 +14949,6 @@
        "request.GetQuotationList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
@@ -11713,15 +14956,17 @@
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                },
                "searchMap": {
                    "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"}; {\"sale_chance_id\": 销售线索id, \"client_name\": \"客户名称\", \"member_name\": \"销售负责人\", \"contact_name\": \"联系人\", \"validity_date\": \"有效期\"}",
                    "type": "object",
                    "additionalProperties": true
                }
            }
        },
        "request.GetSaleChanceList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
@@ -11729,6 +14974,11 @@
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                },
                "search_map": {
                    "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"}; {\"name\": \"机会名称\", \"client_name\": \"客户名称\",\"number\":\"编号\", \"contact_name\":\"联系人姓名\", \"member_name\": \"销售负责人\", \"status\": \"状态\", \"sale_stage\": \"阶段\", \"possibilities\": \"可能性\", \"expected_time\": \"预计成交时间\", \"budget\": \"资金绝对值\", \"projected_amount\": \"预计合同金额\"}",
                    "type": "object",
                    "additionalProperties": true
                }
            }
        },
@@ -11737,6 +14987,9 @@
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "keywordType": {
                    "$ref": "#/definitions/constvar.SalesDetailsKeywordType"
                },
                "page": {
                    "description": "页码",
@@ -11751,9 +15004,6 @@
        "request.GetSalesLeadsList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "page": {
                    "description": "页码",
                    "type": "integer"
@@ -11761,6 +15011,11 @@
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                },
                "search_map": {
                    "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"} {\"name\": \"客户名称\", \"number\": \"销售线索编号\", \"contact_name\": \"联系人姓名\", \"phone\": \"手机号码\", \"sales_resources\": \"商机来源\", \"city\": \"城市\", \"province\": \"省份\", \"member_name\": \"负责人\"}",
                    "type": "object",
                    "additionalProperties": true
                }
            }
        },
@@ -11769,6 +15024,9 @@
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "keywordType": {
                    "$ref": "#/definitions/constvar.SalesRefundKeywordType"
                },
                "page": {
                    "description": "页码",
@@ -11856,14 +15114,21 @@
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                },
                "serviceOrderId": {
                    "description": "服务回访单id",
                    "type": "integer"
                }
            }
        },
        "request.GetSubOrderList": {
        "request.GetServiceOrderList": {
            "type": "object",
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "keywordType": {
                    "$ref": "#/definitions/constvar.ServiceOrderKeywordType"
                },
                "page": {
                    "description": "页码",
@@ -11872,6 +15137,33 @@
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                },
                "queryClass": {
                    "$ref": "#/definitions/constvar.ServiceOrderQueryClass"
                },
                "salesDetailsId": {
                    "type": "integer"
                },
                "serviceContractId": {
                    "type": "integer"
                }
            }
        },
        "request.GetSubOrderList": {
            "type": "object",
            "properties": {
                "page": {
                    "description": "页码",
                    "type": "integer"
                },
                "pageSize": {
                    "description": "每页大小",
                    "type": "integer"
                },
                "search_map": {
                    "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"}; {\"number\": \"销售子单号\", \"client_name\": \"客户名称\", \"master_order_number\": \"销售总单号\", \"member_name\": \"销售负责人\", \"master_order_id\": \"销售总单id\"}",
                    "type": "object",
                    "additionalProperties": true
                }
            }
        },
@@ -11942,6 +15234,40 @@
                },
                "subOrderId": {
                    "type": "integer"
                }
            }
        },
        "request.PushSaleChance": {
            "type": "object",
            "required": [
                "id",
                "step"
            ],
            "properties": {
                "id": {
                    "type": "integer"
                },
                "step": {
                    "type": "integer"
                }
            }
        },
        "request.PushSalesLeads": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "reason": {
                    "type": "string"
                },
                "step": {
                    "description": "商机状态: 1: 跟进中; -1:失败",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.SalesStatus"
                        }
                    ]
                }
            }
        },
@@ -12045,7 +15371,7 @@
                "signTime": {
                    "type": "string"
                },
                "wechatOrderStatus": {
                "wechatOrderStatusId": {
                    "type": "integer"
                }
            }
@@ -12053,7 +15379,8 @@
        "request.SalesRefund": {
            "type": "object",
            "properties": {
                "accountId": {
                "bankAccountId": {
                    "description": "账户id",
                    "type": "integer"
                },
                "clientId": {
@@ -12068,6 +15395,10 @@
                "number": {
                    "type": "string"
                },
                "paymentTypeId": {
                    "description": "收款方式ID",
                    "type": "integer"
                },
                "products": {
                    "type": "array",
                    "items": {
@@ -12080,8 +15411,17 @@
                "refundDate": {
                    "type": "string"
                },
                "refundMethod": {
                    "type": "string"
                "sourceId": {
                    "description": "源单id",
                    "type": "integer"
                },
                "sourceType": {
                    "description": "来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.RefundSourceType"
                        }
                    ]
                }
            }
        },
@@ -12098,22 +15438,38 @@
                    "type": "string"
                },
                "products": {
                    "description": "退货产品",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "reason": {
                    "description": "退货原因",
                    "type": "string"
                },
                "repository": {
                    "type": "string"
                },
                "returnDate": {
                    "description": "退货日期",
                    "type": "string"
                },
                "status": {
                "salesReturnStatusId": {
                    "description": "退货状态id",
                    "type": "integer"
                },
                "sourceId": {
                    "description": "源单id",
                    "type": "integer"
                },
                "sourceType": {
                    "description": "源单类型(1销售明细)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.SalesReturnSourceType"
                        }
                    ]
                }
            }
        },
@@ -12205,6 +15561,17 @@
                    "items": {
                        "$ref": "#/definitions/request.UpdateAccountId"
                    }
                }
            }
        },
        "request.UpdateBankAccount": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
@@ -12326,6 +15693,10 @@
                    "description": "法人代表",
                    "type": "string"
                },
                "sales_leads_id": {
                    "description": "销售线索ID",
                    "type": "integer"
                },
                "service_member_id": {
                    "description": "服务负责人ID",
                    "type": "integer"
@@ -12445,6 +15816,22 @@
                }
            }
        },
        "request.UpdateCollectionProjection": {
            "type": "object",
            "properties": {
                "estimated_collection_amount": {
                    "description": "预计收款金额",
                    "type": "number"
                },
                "estimated_collection_time": {
                    "description": "预计收款时间",
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                }
            }
        },
        "request.UpdateContact": {
            "type": "object",
            "properties": {
@@ -12549,6 +15936,17 @@
                },
                "name": {
                    "description": "国家名称",
                    "type": "string"
                }
            }
        },
        "request.UpdateCourierCompany": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
@@ -12751,6 +16149,94 @@
                }
            }
        },
        "request.UpdateInvoice": {
            "type": "object",
            "required": [
                "id"
            ],
            "properties": {
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
                },
                "courierCompanyId": {
                    "description": "物流公司",
                    "type": "integer"
                },
                "courierNumber": {
                    "description": "物流单号",
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "invoiceDate": {
                    "description": "开票日期",
                    "type": "integer"
                },
                "invoiceNumber": {
                    "description": "发票号码",
                    "type": "string"
                },
                "invoiceStatusId": {
                    "description": "发票状态id",
                    "type": "integer"
                },
                "invoiceTypeId": {
                    "description": "发票类型id",
                    "type": "integer"
                },
                "principalId": {
                    "description": "销售负责人id",
                    "type": "integer"
                },
                "products": {
                    "description": "发票对应产品,从相应源单里获取",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "sourceId": {
                    "description": "源单id",
                    "type": "integer"
                },
                "sourceType": {
                    "description": "源单类型(1销售明细单2服务合同)",
                    "type": "integer"
                },
                "subject": {
                    "description": "主题",
                    "type": "string"
                },
                "taxpayerIdNumber": {
                    "description": "纳税识别号",
                    "type": "string"
                }
            }
        },
        "request.UpdateInvoiceStatus": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.UpdateInvoiceType": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.UpdateIsInvoice": {
            "type": "object",
            "required": [
@@ -12899,6 +16385,17 @@
                }
            }
        },
        "request.UpdatePaymentType": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.UpdatePlan": {
            "type": "object",
            "properties": {
@@ -12999,6 +16496,12 @@
                "number": {
                    "type": "string"
                },
                "products": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Product"
                    }
                },
                "quotation_status_id": {
                    "type": "integer"
                },
@@ -13036,6 +16539,76 @@
                    "items": {
                        "$ref": "#/definitions/request.UpdateQuotationStatus"
                    }
                }
            }
        },
        "request.UpdateReceipt": {
            "type": "object",
            "properties": {
                "amount": {
                    "description": "收款金额",
                    "type": "number"
                },
                "bankAccount": {
                    "$ref": "#/definitions/model.BankAccount"
                },
                "bankAccountId": {
                    "description": "账户id",
                    "type": "integer"
                },
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
                },
                "fileId": {
                    "description": "附件id",
                    "type": "integer"
                },
                "id": {
                    "type": "integer"
                },
                "moneyType": {
                    "description": "币种",
                    "type": "string"
                },
                "paymentType": {
                    "$ref": "#/definitions/model.PaymentType"
                },
                "paymentTypeId": {
                    "description": "收款方式ID",
                    "type": "integer"
                },
                "principal": {
                    "description": "负责人id",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.User"
                        }
                    ]
                },
                "principalId": {
                    "description": "负责人id",
                    "type": "integer"
                },
                "receiptDate": {
                    "description": "收款日期",
                    "type": "string"
                },
                "remark": {
                    "description": "备注",
                    "type": "string"
                },
                "sourceId": {
                    "description": "源单id",
                    "type": "integer"
                },
                "sourceType": {
                    "description": "来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.ReceiptSourceType"
                        }
                    ]
                }
            }
        },
@@ -13550,6 +17123,18 @@
                    "description": "金额",
                    "type": "number"
                },
                "amountReceivable": {
                    "description": "应收金额",
                    "type": "number"
                },
                "amountReceived": {
                    "description": "已收金额",
                    "type": "number"
                },
                "amountTotal": {
                    "description": "总额",
                    "type": "number"
                },
                "collectionDate": {
                    "description": "计划收款日期",
                    "type": "string"
@@ -13573,7 +17158,7 @@
                    "description": "比例",
                    "type": "number"
                },
                "principal": {
                "principalId": {
                    "description": "收款负责人ID",
                    "type": "integer"
                },
@@ -13581,13 +17166,25 @@
                    "description": "备注",
                    "type": "string"
                },
                "serviceContractId": {
                    "description": "服务合同id",
                "sourceId": {
                    "description": "源单id",
                    "type": "integer"
                },
                "sourceType": {
                    "description": "源单类型(1销售明细2服务合同3销售发票)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.CollectionSourceType"
                        }
                    ]
                },
                "status": {
                    "description": "状态(1未收2已收)",
                    "type": "integer"
                    "description": "状态(1未收2部分已收3已收)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.CollectionStatus"
                        }
                    ]
                },
                "term": {
                    "description": "期次",
@@ -13597,14 +17194,14 @@
        },
        "request.UpdateServiceContract": {
            "type": "object",
            "required": [
                "memberId"
            ],
            "properties": {
                "clientId": {
                    "type": "integer"
                },
                "contactId": {
                    "type": "integer"
                },
                "contractId": {
                    "type": "integer"
                },
                "endTime": {
@@ -13632,6 +17229,9 @@
                    "type": "string"
                },
                "saleChanceId": {
                    "type": "integer"
                },
                "salesDetailsId": {
                    "type": "integer"
                },
                "serviceTimes": {
@@ -13809,6 +17409,10 @@
                    "description": "法人代表",
                    "type": "string"
                },
                "sales_leads_id": {
                    "description": "销售线索ID",
                    "type": "integer"
                },
                "service_member_id": {
                    "description": "服务负责人ID",
                    "type": "integer"
@@ -13851,7 +17455,7 @@
                "satisfaction": {
                    "type": "integer"
                },
                "serviceId": {
                "serviceOrderId": {
                    "type": "integer"
                },
                "solveRate": {
@@ -13889,10 +17493,6 @@
                    "description": "联系人id",
                    "type": "integer"
                },
                "contractId": {
                    "description": "合同id",
                    "type": "integer"
                },
                "expectTime": {
                    "description": "希望处理时间",
                    "type": "string"
@@ -13906,10 +17506,6 @@
                    "type": "integer"
                },
                "id": {
                    "type": "integer"
                },
                "orderId": {
                    "description": "销售订单id",
                    "type": "integer"
                },
                "priorityLevelId": {
@@ -13936,6 +17532,14 @@
                    "description": "销售机会id",
                    "type": "integer"
                },
                "salesDetailsId": {
                    "description": "销售订单id",
                    "type": "integer"
                },
                "serviceContractId": {
                    "description": "合同id",
                    "type": "integer"
                },
                "serviceManId": {
                    "description": "服务人员",
                    "type": "integer"
@@ -13943,6 +17547,10 @@
                "serviceNumber": {
                    "description": "服务单编号",
                    "type": "string"
                },
                "serviceOrderStatusId": {
                    "description": "处理状态",
                    "type": "integer"
                },
                "serviceTypeId": {
                    "description": "服务方式id",
@@ -13960,10 +17568,6 @@
                    "description": "内部备注",
                    "type": "string"
                },
                "status": {
                    "description": "处理状态",
                    "type": "integer"
                },
                "subject": {
                    "description": "主题",
                    "type": "string"
@@ -13971,6 +17575,17 @@
                "timeSpentId": {
                    "description": "花费时间",
                    "type": "integer"
                }
            }
        },
        "request.UpdateServiceOrderStatus": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
@@ -14135,6 +17750,17 @@
                }
            }
        },
        "request.UpdateWechatOrderStatus": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "response.AccountIdResponse": {
            "type": "object",
            "properties": {