fix
wangpengfei
2023-08-18 9a7e0a7da01a9f9625ceaca0c61a59c540c6438f
docs/docs.go
@@ -1586,7 +1586,7 @@
                }
            }
        },
        "/api/contract/delete/{id}": {
        "/api/contract/delete": {
            "delete": {
                "produces": [
                    "application/json"
@@ -1597,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": {
@@ -4008,7 +4010,7 @@
                }
            }
        },
        "/api/masterOrder/delete/{id}": {
        "/api/masterOrder/delete": {
            "delete": {
                "produces": [
                    "application/json"
@@ -4019,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": {
@@ -5226,7 +5230,7 @@
                }
            }
        },
        "/api/quotation/delete/{id}": {
        "/api/quotation/delete": {
            "delete": {
                "produces": [
                    "application/json"
@@ -5237,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": {
@@ -6379,7 +6385,7 @@
                }
            }
        },
        "/api/saleChance/delete/{id}": {
        "/api/saleChance/delete": {
            "delete": {
                "produces": [
                    "application/json"
@@ -6390,11 +6396,13 @@
                "summary": "删除销售机会",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.DeleteSaleChance"
                        }
                    }
                ],
                "responses": {
@@ -7075,7 +7083,7 @@
                    "application/json"
                ],
                "tags": [
                    "SalesRefund"
                    "销售退款单"
                ],
                "summary": "添加销售退款",
                "parameters": [
@@ -7099,13 +7107,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": [
@@ -7133,7 +7171,7 @@
                    "application/json"
                ],
                "tags": [
                    "SalesRefund"
                    "销售退款单"
                ],
                "summary": "销售退款单列表",
                "parameters": [
@@ -7175,7 +7213,7 @@
                    "application/json"
                ],
                "tags": [
                    "SalesRefund"
                    "销售退款单"
                ],
                "summary": "更新销售退款",
                "parameters": [
@@ -7205,7 +7243,7 @@
                    "application/json"
                ],
                "tags": [
                    "SalesReturn"
                    "销售退货单"
                ],
                "summary": "添加销售退货",
                "parameters": [
@@ -7229,13 +7267,43 @@
                }
            }
        },
        "/api/salesReturn/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/salesReturn/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SalesReturn"
                    "销售退货单"
                ],
                "summary": "删除销售退货",
                "parameters": [
@@ -7263,7 +7331,7 @@
                    "application/json"
                ],
                "tags": [
                    "SalesReturn"
                    "销售退货单"
                ],
                "summary": "销售退货单列表",
                "parameters": [
@@ -7305,7 +7373,7 @@
                    "application/json"
                ],
                "tags": [
                    "SalesReturn"
                    "销售退货单"
                ],
                "summary": "更新销售退货",
                "parameters": [
@@ -7954,9 +8022,9 @@
                    "application/json"
                ],
                "tags": [
                    "ServiceContractStatus"
                    "合同状态"
                ],
                "summary": "添加服务合同状态",
                "summary": "添加合同状态",
                "parameters": [
                    {
                        "description": "查询参数",
@@ -7984,9 +8052,9 @@
                    "application/json"
                ],
                "tags": [
                    "ServiceContractStatus"
                    "合同状态"
                ],
                "summary": "删除服务合同状态",
                "summary": "删除合同状态",
                "parameters": [
                    {
                        "type": "integer",
@@ -8012,22 +8080,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"
                                            }
                                        }
                                    }
                                }
@@ -8043,9 +8155,9 @@
                    "application/json"
                ],
                "tags": [
                    "ServiceContractStatus"
                    "合同状态"
                ],
                "summary": "更新服务合同状态",
                "summary": "更新合同状态",
                "parameters": [
                    {
                        "description": "查询参数",
@@ -8053,7 +8165,7 @@
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateServiceContractStatuss"
                            "$ref": "#/definitions/request.UpdateServiceContractStatus"
                        }
                    }
                ],
@@ -9276,7 +9388,7 @@
                }
            }
        },
        "/api/subOrder/delete/{id}": {
        "/api/subOrder/delete": {
            "delete": {
                "produces": [
                    "application/json"
@@ -9287,11 +9399,13 @@
                "summary": "删除子订单",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.DeleteSubOrder"
                        }
                    }
                ],
                "responses": {
@@ -10455,6 +10569,24 @@
                "ServiceContractQueryClassExpiredBefore60Day"
            ]
        },
        "constvar.ServiceContractStatusKeywordType": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "ServiceContractStatusKeywordCustomerName"
            ]
        },
        "constvar.ServiceContractStatusQueryClass": {
            "type": "string",
            "enum": [
                ""
            ],
            "x-enum-varnames": [
                "ServiceContractStatusQueryClassExpireLessThen60Days"
            ]
        },
        "constvar.ServiceFeeKeywordType": {
            "type": "string",
            "enum": [
@@ -10681,6 +10813,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"
                },
@@ -10726,6 +10862,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"
                },
@@ -10748,6 +10891,7 @@
                    }
                },
                "id": {
                    "description": "The ID of the item\nexample: 1",
                    "type": "integer"
                },
                "industry": {
@@ -10803,6 +10947,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"
                }
            }
        },
@@ -12226,7 +12374,7 @@
                    "type": "integer"
                },
                "sourceType": {
                    "description": "来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单)",
                    "description": "来源类型(1销售退货)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.RefundSourceType"
@@ -12713,12 +12861,13 @@
                    "description": "问题描述",
                    "type": "string"
                },
                "product": {
                    "$ref": "#/definitions/model.Product"
                "productName": {
                    "description": "产品名称",
                    "type": "string"
                },
                "productId": {
                    "description": "产品id",
                    "type": "integer"
                "productTypeName": {
                    "description": "产品分类名称",
                    "type": "string"
                },
                "realTime": {
                    "description": "实际处理时间",
@@ -12748,6 +12897,14 @@
                "serviceContractId": {
                    "description": "服务合同id",
                    "type": "integer"
                },
                "serviceMan": {
                    "description": "服务人员",
                    "allOf": [
                        {
                            "$ref": "#/definitions/model.User"
                        }
                    ]
                },
                "serviceManId": {
                    "description": "服务人员",
@@ -14192,10 +14349,10 @@
        },
        "request.AddServiceContractStatus": {
            "type": "object",
            "required": [
                "name"
            ],
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
@@ -14413,9 +14570,13 @@
                    "description": "问题描述",
                    "type": "string"
                },
                "productId": {
                    "description": "产品id",
                    "type": "integer"
                "productName": {
                    "description": "产品名称",
                    "type": "string"
                },
                "productTypeName": {
                    "description": "产品分类名称",
                    "type": "string"
                },
                "realTime": {
                    "description": "实际处理时间",
@@ -14796,6 +14957,17 @@
                }
            }
        },
        "request.DeleteContract": {
            "type": "object",
            "properties": {
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                }
            }
        },
        "request.DeleteCountry": {
            "type": "object",
            "properties": {
@@ -14816,7 +14988,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": {
@@ -14850,6 +15055,17 @@
            }
        },
        "request.DeleteServiceFollowup": {
            "type": "object",
            "properties": {
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                }
            }
        },
        "request.DeleteSubOrder": {
            "type": "object",
            "properties": {
                "ids": {
@@ -14973,7 +15189,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
                }
@@ -15031,7 +15247,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
                }
@@ -15522,6 +15738,10 @@
        },
        "request.SalesRefund": {
            "type": "object",
            "required": [
                "sourceId",
                "sourceType"
            ],
            "properties": {
                "bankAccountId": {
                    "description": "账户id",
@@ -15560,7 +15780,7 @@
                    "type": "integer"
                },
                "sourceType": {
                    "description": "来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单)",
                    "description": "来源类型(1销售退款单)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.RefundSourceType"
@@ -17404,30 +17624,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"
                    }
                }
            }
        },
@@ -17668,9 +17870,13 @@
                    "description": "问题描述",
                    "type": "string"
                },
                "productId": {
                    "description": "产品id",
                    "type": "integer"
                "productName": {
                    "description": "产品名称",
                    "type": "string"
                },
                "productTypeName": {
                    "description": "产品分类名称",
                    "type": "string"
                },
                "realTime": {
                    "description": "实际处理时间",
@@ -18715,17 +18921,6 @@
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Satisfaction"
                    }
                }
            }
        },
        "response.ServiceContractStatusResponse": {
            "type": "object",
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.ServiceContractStatus"
                    }
                }
            }