fix
wangpengfei
2023-08-28 c5a0eb549cba2cd358a2d0496c44f3a289f15d9c
docs/docs.go
@@ -664,6 +664,36 @@
                }
            }
        },
        "/api/client/checkName": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Client"
                ],
                "summary": "检查客户名称是否重复",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.CheckClientName"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/client/delete": {
            "delete": {
                "produces": [
@@ -1495,6 +1525,37 @@
                }
            }
        },
        "/api/contactInformation/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "ContactInformation"
                ],
                "summary": "联系方式列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/contextx.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/response.ContactInformationResponse"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/contract/add": {
            "post": {
                "produces": [
@@ -1525,7 +1586,7 @@
                }
            }
        },
        "/api/contract/delete/{id}": {
        "/api/contract/delete": {
            "delete": {
                "produces": [
                    "application/json"
@@ -1536,11 +1597,13 @@
                "summary": "删除合同",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.DeleteContract"
                        }
                    }
                ],
                "responses": {
@@ -3947,7 +4010,7 @@
                }
            }
        },
        "/api/masterOrder/delete/{id}": {
        "/api/masterOrder/delete": {
            "delete": {
                "produces": [
                    "application/json"
@@ -3958,11 +4021,13 @@
                "summary": "删除主订单",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.DeleteMasterOrder"
                        }
                    }
                ],
                "responses": {
@@ -5165,7 +5230,7 @@
                }
            }
        },
        "/api/quotation/delete/{id}": {
        "/api/quotation/delete": {
            "delete": {
                "produces": [
                    "application/json"
@@ -5176,11 +5241,13 @@
                "summary": "删除报价单",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.DeleteQuotation"
                        }
                    }
                ],
                "responses": {
@@ -5453,22 +5520,6 @@
                "summary": "获取收款单列表",
                "parameters": [
                    {
                        "type": "string",
                        "name": "keyword",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                        ],
                        "type": "string",
                        "x-enum-varnames": [
                            "ReceiptKeywordCustomerName"
                        ],
                        "name": "keywordType",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "页码",
                        "name": "page",
@@ -5481,14 +5532,34 @@
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "name": "sourceId",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                            1,
                            2,
                            3,
                            4,
                            5
                        ],
                        "type": "string",
                        "type": "integer",
                        "x-enum-comments": {
                            "ReceiptSourceTypeChuKuDan": "出库单it",
                            "ReceiptSourceTypeCollectionPlan": "收款计划",
                            "ReceiptSourceTypeInvoice": "销售发票",
                            "ReceiptSourceTypeSalesDetails": "销售明细单",
                            "ReceiptSourceTypeServiceContract": "服务合同"
                        },
                        "x-enum-varnames": [
                            "ReceiptQueryClassExpireLessThen60Days"
                            "ReceiptSourceTypeSalesDetails",
                            "ReceiptSourceTypeServiceContract",
                            "ReceiptSourceTypeInvoice",
                            "ReceiptSourceTypeCollectionPlan",
                            "ReceiptSourceTypeChuKuDan"
                        ],
                        "name": "queryClass",
                        "name": "sourceType",
                        "in": "query"
                    }
                ],
@@ -6318,7 +6389,7 @@
                }
            }
        },
        "/api/saleChance/delete/{id}": {
        "/api/saleChance/delete": {
            "delete": {
                "produces": [
                    "application/json"
@@ -6329,11 +6400,13 @@
                "summary": "删除销售机会",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.DeleteSaleChance"
                        }
                    }
                ],
                "responses": {
@@ -6710,7 +6783,19 @@
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                            "allOf": [
                                {
                                    "$ref": "#/definitions/contextx.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/request.AddSalesDetails"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
@@ -7014,7 +7099,7 @@
                    "application/json"
                ],
                "tags": [
                    "SalesRefund"
                    "销售退款单"
                ],
                "summary": "添加销售退款",
                "parameters": [
@@ -7038,13 +7123,43 @@
                }
            }
        },
        "/api/salesRefund/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/salesRefund/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SalesRefund"
                    "销售退款单"
                ],
                "summary": "删除销售退款",
                "parameters": [
@@ -7072,7 +7187,7 @@
                    "application/json"
                ],
                "tags": [
                    "SalesRefund"
                    "销售退款单"
                ],
                "summary": "销售退款单列表",
                "parameters": [
@@ -7114,7 +7229,7 @@
                    "application/json"
                ],
                "tags": [
                    "SalesRefund"
                    "销售退款单"
                ],
                "summary": "更新销售退款",
                "parameters": [
@@ -7725,9 +7840,27 @@
                "parameters": [
                    {
                        "type": "integer",
                        "description": "服务合同id",
                        "name": "serviceContractId",
                        "in": "query"
                        "name": "sourceId",
                        "in": "query",
                        "required": true
                    },
                    {
                        "enum": [
                            1,
                            2
                        ],
                        "type": "integer",
                        "x-enum-comments": {
                            "CollectionSourceTypeSaleDetails": "销售明细",
                            "CollectionSourceTypeServiceContract": "服务合同"
                        },
                        "x-enum-varnames": [
                            "CollectionSourceTypeSaleDetails",
                            "CollectionSourceTypeServiceContract"
                        ],
                        "name": "sourceType",
                        "in": "query",
                        "required": true
                    }
                ],
                "responses": {
@@ -7923,9 +8056,9 @@
                    "application/json"
                ],
                "tags": [
                    "ServiceContractStatus"
                    "合同状态"
                ],
                "summary": "添加服务合同状态",
                "summary": "添加合同状态",
                "parameters": [
                    {
                        "description": "查询参数",
@@ -7953,9 +8086,9 @@
                    "application/json"
                ],
                "tags": [
                    "ServiceContractStatus"
                    "合同状态"
                ],
                "summary": "删除服务合同状态",
                "summary": "删除合同状态",
                "parameters": [
                    {
                        "type": "integer",
@@ -7981,22 +8114,66 @@
                    "application/json"
                ],
                "tags": [
                    "ServiceContractStatus"
                    "合同状态"
                ],
                "summary": "获取服务合同状态列表",
                "summary": "获取合同状态列表",
                "parameters": [
                    {
                        "type": "string",
                        "name": "keyword",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                        ],
                        "type": "string",
                        "x-enum-varnames": [
                            "ServiceContractStatusKeywordCustomerName"
                        ],
                        "name": "keywordType",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "页码",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "每页大小",
                        "name": "pageSize",
                        "in": "query"
                    },
                    {
                        "enum": [
                            ""
                        ],
                        "type": "string",
                        "x-enum-varnames": [
                            "ServiceContractStatusQueryClassExpireLessThen60Days"
                        ],
                        "name": "queryClass",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/contextx.Response"
                                    "$ref": "#/definitions/response.ListResponse"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/response.ServiceContractStatusResponse"
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/definitions/model.ServiceContractStatus"
                                            }
                                        }
                                    }
                                }
@@ -8012,9 +8189,9 @@
                    "application/json"
                ],
                "tags": [
                    "ServiceContractStatus"
                    "合同状态"
                ],
                "summary": "更新服务合同状态",
                "summary": "更新合同状态",
                "parameters": [
                    {
                        "description": "查询参数",
@@ -8022,7 +8199,7 @@
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateServiceContractStatuss"
                            "$ref": "#/definitions/request.UpdateServiceContractStatus"
                        }
                    }
                ],
@@ -9245,7 +9422,7 @@
                }
            }
        },
        "/api/subOrder/delete/{id}": {
        "/api/subOrder/delete": {
            "delete": {
                "produces": [
                    "application/json"
@@ -9256,11 +9433,13 @@
                "summary": "删除子订单",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.DeleteSubOrder"
                        }
                    }
                ],
                "responses": {
@@ -10234,24 +10413,6 @@
                "PaymentTypeQueryClassExpireLessThen60Days"
            ]
        },
        "constvar.ReceiptKeywordType": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "ReceiptKeywordCustomerName"
            ]
        },
        "constvar.ReceiptQueryClass": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "ReceiptQueryClassExpireLessThen60Days"
            ]
        },
        "constvar.ReceiptSourceType": {
            "type": "integer",
            "enum": [
@@ -10261,6 +10422,13 @@
                4,
                5
            ],
            "x-enum-comments": {
                "ReceiptSourceTypeChuKuDan": "出库单it",
                "ReceiptSourceTypeCollectionPlan": "收款计划",
                "ReceiptSourceTypeInvoice": "销售发票",
                "ReceiptSourceTypeSalesDetails": "销售明细单",
                "ReceiptSourceTypeServiceContract": "服务合同"
            },
            "x-enum-varnames": [
                "ReceiptSourceTypeSalesDetails",
                "ReceiptSourceTypeServiceContract",
@@ -10321,6 +10489,29 @@
                "SalesRefundKeywordPrincipal",
                "SalesRefundKeywordUpdateAt",
                "SalesRefundKeywordPriceTotal"
            ]
        },
        "constvar.SalesReturnKeywordType": {
            "type": "string",
            "enum": [
                "销售退货单编号",
                "客户名称",
                "退款日期",
                "状态",
                "退入仓库",
                "应退款",
                "已退款",
                "销售负责人"
            ],
            "x-enum-varnames": [
                "SalesReturnKeywordReturnNumber",
                "SalesReturnKeywordClientName",
                "SalesReturnKeywordReturnDate",
                "SalesReturnKeywordStatus",
                "SalesReturnKeywordRepository",
                "SalesReturnKeywordAmountShouldRefund",
                "SalesReturnKeywordAmountHasRefund",
                "SalesReturnKeywordPrincipal"
            ]
        },
        "constvar.SalesReturnSourceType": {
@@ -10399,6 +10590,24 @@
                "ServiceContractQueryClassExpireAfter60Day",
                "ServiceContractQueryClassExpiredBefore15Day",
                "ServiceContractQueryClassExpiredBefore60Day"
            ]
        },
        "constvar.ServiceContractStatusKeywordType": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "ServiceContractStatusKeywordCustomerName"
            ]
        },
        "constvar.ServiceContractStatusQueryClass": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "ServiceContractStatusQueryClassExpireLessThen60Days"
            ]
        },
        "constvar.ServiceFeeKeywordType": {
@@ -10627,6 +10836,10 @@
        "model.Client": {
            "type": "object",
            "properties": {
                "_": {
                    "description": "The date when the item was deleted\nexample: 2023-08-10 15:48:25",
                    "type": "string"
                },
                "business_scope": {
                    "type": "string"
                },
@@ -10672,6 +10885,13 @@
                "country_id": {
                    "type": "integer"
                },
                "created_at": {
                    "description": "The date when the item was created\nexample: 2023-08-10 15:48:25",
                    "type": "string"
                },
                "creator_id": {
                    "type": "integer"
                },
                "detail_address": {
                    "type": "string"
                },
@@ -10694,6 +10914,7 @@
                    }
                },
                "id": {
                    "description": "The ID of the item\nexample: 1",
                    "type": "integer"
                },
                "industry": {
@@ -10749,6 +10970,10 @@
                },
                "service_member_id": {
                    "type": "integer"
                },
                "updated_at": {
                    "description": "The date when the item was last updated\nexample: 2023-08-10 15:48:25",
                    "type": "string"
                }
            }
        },
@@ -10977,6 +11202,17 @@
                }
            }
        },
        "model.ContactInformation": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "model.Contract": {
            "type": "object",
            "properties": {
@@ -11015,6 +11251,9 @@
                },
                "quotationId": {
                    "type": "integer"
                },
                "serviceContractStatus": {
                    "$ref": "#/definitions/model.ServiceContractStatus"
                },
                "statusId": {
                    "type": "integer"
@@ -11139,6 +11378,9 @@
                },
                "contact_id": {
                    "type": "integer"
                },
                "contact_information": {
                    "$ref": "#/definitions/model.ContactInformation"
                },
                "contact_information_id": {
                    "type": "integer"
@@ -11626,6 +11868,14 @@
                    "description": "账户id",
                    "type": "integer"
                },
                "client": {
                    "description": "客户id",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.Client"
                        }
                    ]
                },
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
@@ -12014,6 +12264,9 @@
                "signTime": {
                    "type": "string"
                },
                "updateTime": {
                    "type": "string"
                },
                "wechatOrderStatus": {
                    "$ref": "#/definitions/model.WechatOrderStatus"
                },
@@ -12047,6 +12300,9 @@
                    "type": "integer"
                },
                "desc": {
                    "type": "string"
                },
                "detail_address": {
                    "type": "string"
                },
                "followRecord": {
@@ -12099,6 +12355,9 @@
        "model.SalesRefund": {
            "type": "object",
            "properties": {
                "Source": {
                    "$ref": "#/definitions/model.SalesReturn"
                },
                "amountTotal": {
                    "description": "价税合计",
                    "type": "number"
@@ -12126,7 +12385,7 @@
                    "type": "integer"
                },
                "isInvoice": {
                    "type": "integer"
                    "type": "string"
                },
                "member": {
                    "$ref": "#/definitions/model.User"
@@ -12161,12 +12420,15 @@
                    "type": "integer"
                },
                "sourceType": {
                    "description": "来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单)",
                    "description": "来源类型(1销售退货)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.RefundSourceType"
                        }
                    ]
                },
                "updateTime": {
                    "type": "string"
                }
            }
        },
@@ -12183,6 +12445,14 @@
                            "$ref": "#/definitions/model.SalesReturnStatus"
                        }
                    ]
                },
                "amountHasRefund": {
                    "description": "已退款金额",
                    "type": "number"
                },
                "amountShouldRefund": {
                    "description": "应退款金额",
                    "type": "number"
                },
                "client": {
                    "$ref": "#/definitions/model.Client"
@@ -12238,6 +12508,9 @@
                            "$ref": "#/definitions/constvar.SalesReturnSourceType"
                        }
                    ]
                },
                "updateTime": {
                    "type": "string"
                }
            }
        },
@@ -12316,6 +12589,14 @@
                    "description": "比例",
                    "type": "number"
                },
                "principal": {
                    "description": "收款负责人ID",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.User"
                        }
                    ]
                },
                "principalId": {
                    "description": "收款负责人ID",
                    "type": "integer"
@@ -12388,11 +12669,20 @@
                "contactId": {
                    "type": "integer"
                },
                "createTime": {
                    "type": "string"
                },
                "creatorName": {
                    "type": "string"
                },
                "endTime": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "member": {
                    "$ref": "#/definitions/model.User"
                },
                "memberId": {
                    "type": "integer"
@@ -12446,6 +12736,9 @@
                    "type": "string"
                },
                "terms": {
                    "type": "string"
                },
                "updateTime": {
                    "type": "string"
                }
            }
@@ -12516,6 +12809,12 @@
                "contactId": {
                    "type": "integer"
                },
                "createTime": {
                    "type": "string"
                },
                "creatorName": {
                    "type": "string"
                },
                "file": {
                    "type": "string"
                },
@@ -12569,6 +12868,9 @@
                },
                "timelyRateId": {
                    "type": "integer"
                },
                "updateTime": {
                    "type": "string"
                }
            }
        },
@@ -12605,6 +12907,12 @@
                    "description": "联系人id",
                    "type": "integer"
                },
                "createTime": {
                    "type": "string"
                },
                "creatorName": {
                    "type": "string"
                },
                "expectTime": {
                    "description": "希望处理时间",
                    "type": "string"
@@ -12637,12 +12945,13 @@
                    "description": "问题描述",
                    "type": "string"
                },
                "product": {
                    "$ref": "#/definitions/model.Product"
                "productName": {
                    "description": "产品名称",
                    "type": "string"
                },
                "productId": {
                    "description": "产品id",
                    "type": "integer"
                "productTypeName": {
                    "description": "产品分类名称",
                    "type": "string"
                },
                "realTime": {
                    "description": "实际处理时间",
@@ -12672,6 +12981,14 @@
                "serviceContractId": {
                    "description": "服务合同id",
                    "type": "integer"
                },
                "serviceMan": {
                    "description": "服务人员",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.User"
                        }
                    ]
                },
                "serviceManId": {
                    "description": "服务人员",
@@ -12716,6 +13033,9 @@
                "timeSpentId": {
                    "description": "花费时间",
                    "type": "integer"
                },
                "updateTime": {
                    "type": "string"
                }
            }
        },
@@ -12909,11 +13229,19 @@
                    "description": "物料类型",
                    "type": "string"
                },
                "MaxInventory": {
                    "description": "最大库存",
                    "type": "integer"
                },
                "MinInventory": {
                    "description": "安全库存",
                    "type": "integer"
                },
                "Name": {
                    "type": "string"
                },
                "Node": {
                    "description": "备注",
                    "type": "string"
                },
                "Number": {
@@ -12926,6 +13254,14 @@
                "SalePrice": {
                    "description": "销售价格",
                    "type": "number"
                },
                "Specs": {
                    "description": "规格",
                    "type": "string"
                },
                "Type": {
                    "description": "型号",
                    "type": "string"
                },
                "Unit": {
                    "type": "string"
@@ -13008,6 +13344,10 @@
                },
                "contact": {
                    "$ref": "#/definitions/request.Contact"
                },
                "contact_id": {
                    "description": "联系人ID",
                    "type": "integer"
                },
                "country_id": {
                    "type": "integer"
@@ -13634,6 +13974,14 @@
                    "description": "账户id",
                    "type": "integer"
                },
                "client": {
                    "description": "客户id",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.Client"
                        }
                    ]
                },
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
@@ -13964,6 +14312,10 @@
                    "description": "备注",
                    "type": "string"
                },
                "detail_address": {
                    "description": "详细地址",
                    "type": "string"
                },
                "member_id": {
                    "description": "销售负责人ID",
                    "type": "integer"
@@ -14090,6 +14442,12 @@
                "salesDetailsId": {
                    "type": "integer"
                },
                "serviceContractStatusId": {
                    "type": "integer"
                },
                "serviceContractTypeId": {
                    "type": "integer"
                },
                "serviceTimes": {
                    "type": "integer"
                },
@@ -14112,10 +14470,10 @@
        },
        "request.AddServiceContractStatus": {
            "type": "object",
            "required": [
                "name"
            ],
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
@@ -14160,6 +14518,10 @@
                },
                "contact": {
                    "$ref": "#/definitions/request.Contact"
                },
                "contact_id": {
                    "description": "联系人ID",
                    "type": "integer"
                },
                "country_id": {
                    "type": "integer"
@@ -14329,9 +14691,13 @@
                    "description": "问题描述",
                    "type": "string"
                },
                "productId": {
                    "description": "产品id",
                    "type": "integer"
                "productName": {
                    "description": "产品名称",
                    "type": "string"
                },
                "productTypeName": {
                    "description": "产品分类名称",
                    "type": "string"
                },
                "realTime": {
                    "description": "实际处理时间",
@@ -14602,6 +14968,14 @@
                }
            }
        },
        "request.CheckClientName": {
            "type": "object",
            "properties": {
                "name": {
                    "type": "string"
                }
            }
        },
        "request.CommonIds": {
            "type": "object",
            "required": [
@@ -14704,6 +15078,17 @@
                }
            }
        },
        "request.DeleteContract": {
            "type": "object",
            "properties": {
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                }
            }
        },
        "request.DeleteCountry": {
            "type": "object",
            "properties": {
@@ -14724,7 +15109,40 @@
                }
            }
        },
        "request.DeleteMasterOrder": {
            "type": "object",
            "properties": {
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                }
            }
        },
        "request.DeleteOrderManage": {
            "type": "object",
            "properties": {
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                }
            }
        },
        "request.DeleteQuotation": {
            "type": "object",
            "properties": {
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                }
            }
        },
        "request.DeleteSaleChance": {
            "type": "object",
            "properties": {
                "ids": {
@@ -14758,6 +15176,17 @@
            }
        },
        "request.DeleteServiceFollowup": {
            "type": "object",
            "properties": {
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                }
            }
        },
        "request.DeleteSubOrder": {
            "type": "object",
            "properties": {
                "ids": {
@@ -14863,7 +15292,7 @@
                    "type": "integer"
                },
                "search_map": {
                    "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"}; {\"name\": \"客户名称\", \"phone\": \"手机号码\", \"detail_address\":\"详细地址\", \"next_visit_time\":\"下回回访日期\", \"member_name\": \"销售负责人\", \"client_status\": \"客户状态\", \"client_level\": \"重要级别\"}",
                    "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"}; {\"name\": \"客户名称\", \"phone\": \"手机号码\", \"detail_address\":\"详细地址\", \"next_visit_time\":\"下回回访日期\", \"member_name\": \"销售负责人\", \"client_status\": \"客户状态\", \"client_level\": \"重要级别\",\"representative\": \"法定代表人\", \"registration_time\": \"注册时间\", \"business_scope\": \"经营范围\", \"remark\": \"备注\", \"not_admin\":\"1:我的客户; 2:admin客户\"}",
                    "type": "object",
                    "additionalProperties": true
                }
@@ -14881,7 +15310,7 @@
                    "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\": \"是否是首要联系人\"}",
                    "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"}; {\"name\": \"客户名称\", \"phone\": \"手机号码\", \"detail_address\":\"详细地址\", \"next_visit_time\":\"下回回访日期\", \"member_name\": \"销售负责人\", \"client_status\": \"客户状态\", \"client_level\": \"重要级别\", \"is_first\": \"是否是首要联系人\", \"client_id\": \"clientId 用于返回首要联系人\"}",
                    "type": "object",
                    "additionalProperties": true
                }
@@ -14939,7 +15368,7 @@
                    "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\": \"联系人姓名\"}",
                    "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"}; {\"topic\": \"跟进主题\", \"member_name\": \"跟进人\", \"client_name\": \"客户名称\", \"client_status\": \"客户状态\", \"follow_time\": \"跟进时间\", \"next_follow_time\": \"下次跟进时间\", \"record\": \"跟进记录\", \"phone\": \"联系人电话\", \"contact_name\": \"联系人姓名\", \"sales_leads_id\": \"销售线索id\", \"sale_chance_id\": \"销售机会id\"}",
                    "type": "object",
                    "additionalProperties": true
                }
@@ -15006,7 +15435,7 @@
                    "description": "每页大小",
                    "type": "integer"
                },
                "searchMap": {
                "search_map": {
                    "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"}; {\"sale_chance_id\": 销售线索id, \"client_name\": \"客户名称\", \"member_name\": \"销售负责人\", \"contact_name\": \"联系人\", \"validity_date\": \"有效期\"}",
                    "type": "object",
                    "additionalProperties": true
@@ -15092,6 +15521,9 @@
            "properties": {
                "keyword": {
                    "type": "string"
                },
                "keywordType": {
                    "$ref": "#/definitions/constvar.SalesReturnKeywordType"
                },
                "page": {
                    "description": "页码",
@@ -15427,6 +15859,10 @@
        },
        "request.SalesRefund": {
            "type": "object",
            "required": [
                "sourceId",
                "sourceType"
            ],
            "properties": {
                "bankAccountId": {
                    "description": "账户id",
@@ -15436,7 +15872,7 @@
                    "type": "integer"
                },
                "isInvoice": {
                    "type": "integer"
                    "type": "string"
                },
                "memberId": {
                    "type": "integer"
@@ -15465,7 +15901,7 @@
                    "type": "integer"
                },
                "sourceType": {
                    "description": "来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单)",
                    "description": "来源类型(1销售退款单)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.RefundSourceType"
@@ -15677,6 +16113,10 @@
                },
                "contact": {
                    "$ref": "#/definitions/request.Contact"
                },
                "contact_id": {
                    "description": "联系人ID",
                    "type": "integer"
                },
                "country_id": {
                    "type": "integer"
@@ -16605,6 +17045,14 @@
                    "description": "账户id",
                    "type": "integer"
                },
                "client": {
                    "description": "客户id",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.Client"
                        }
                    ]
                },
                "clientId": {
                    "description": "客户id",
                    "type": "integer"
@@ -17032,6 +17480,10 @@
                    "description": "备注",
                    "type": "string"
                },
                "detail_address": {
                    "description": "详细地址",
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
@@ -17207,6 +17659,14 @@
                    "description": "比例",
                    "type": "number"
                },
                "principal": {
                    "description": "收款负责人ID",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.User"
                        }
                    ]
                },
                "principalId": {
                    "description": "收款负责人ID",
                    "type": "integer"
@@ -17283,6 +17743,12 @@
                "salesDetailsId": {
                    "type": "integer"
                },
                "serviceContractStatusId": {
                    "type": "integer"
                },
                "serviceContractTypeId": {
                    "type": "integer"
                },
                "serviceTimes": {
                    "type": "integer"
                },
@@ -17305,30 +17771,12 @@
        },
        "request.UpdateServiceContractStatus": {
            "type": "object",
            "required": [
                "id",
                "name"
            ],
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.UpdateServiceContractStatuss": {
            "type": "object",
            "required": [
                "service_contract_status"
            ],
            "properties": {
                "service_contract_status": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/request.UpdateServiceContractStatus"
                    }
                }
            }
        },
@@ -17389,6 +17837,10 @@
                },
                "contact": {
                    "$ref": "#/definitions/request.Contact"
                },
                "contact_id": {
                    "description": "联系人ID",
                    "type": "integer"
                },
                "country_id": {
                    "type": "integer"
@@ -17565,9 +18017,13 @@
                    "description": "问题描述",
                    "type": "string"
                },
                "productId": {
                    "description": "产品id",
                    "type": "integer"
                "productName": {
                    "description": "产品名称",
                    "type": "string"
                },
                "productTypeName": {
                    "description": "产品分类名称",
                    "type": "string"
                },
                "realTime": {
                    "description": "实际处理时间",
@@ -17886,6 +18342,17 @@
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.ClientType"
                    }
                }
            }
        },
        "response.ContactInformationResponse": {
            "type": "object",
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.ContactInformation"
                    }
                }
            }
@@ -18601,17 +19068,6 @@
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Satisfaction"
                    }
                }
            }
        },
        "response.ServiceContractStatusResponse": {
            "type": "object",
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.ServiceContractStatus"
                    }
                }
            }