add
wangpengfei
2023-08-17 efdfa2d6754354c021a19b340088c296fff74ca6
docs/docs.go
@@ -1525,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": [
@@ -6746,6 +6777,36 @@
                }
            }
        },
        "/api/salesDetails/delete": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SalesDetails 销售明细"
                ],
                "summary": "批量删除销售明细",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.CommonIds"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/salesDetails/delete/{id}": {
            "delete": {
                "produces": [
@@ -7014,7 +7075,7 @@
                    "application/json"
                ],
                "tags": [
                    "SalesRefund"
                    "销售退款单"
                ],
                "summary": "添加销售退款",
                "parameters": [
@@ -7038,13 +7099,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 +7163,7 @@
                    "application/json"
                ],
                "tags": [
                    "SalesRefund"
                    "销售退款单"
                ],
                "summary": "销售退款单列表",
                "parameters": [
@@ -7114,7 +7205,7 @@
                    "application/json"
                ],
                "tags": [
                    "SalesRefund"
                    "销售退款单"
                ],
                "summary": "更新销售退款",
                "parameters": [
@@ -7144,7 +7235,7 @@
                    "application/json"
                ],
                "tags": [
                    "SalesReturn"
                    "销售退货单"
                ],
                "summary": "添加销售退货",
                "parameters": [
@@ -7168,13 +7259,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": [
@@ -7202,7 +7323,7 @@
                    "application/json"
                ],
                "tags": [
                    "SalesReturn"
                    "销售退货单"
                ],
                "summary": "销售退货单列表",
                "parameters": [
@@ -7244,7 +7365,7 @@
                    "application/json"
                ],
                "tags": [
                    "SalesReturn"
                    "销售退货单"
                ],
                "summary": "更新销售退货",
                "parameters": [
@@ -7793,15 +7914,15 @@
                "tags": [
                    "ServiceContract"
                ],
                "summary": "删除服务合同",
                "summary": "批量删除服务合同",
                "parameters": [
                    {
                        "description": "查询参数",
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.DeleteServiceContract"
                            "$ref": "#/definitions/request.CommonIds"
                        }
                    }
                ],
@@ -8406,6 +8527,36 @@
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddServiceOrder"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/serviceOrder/delete": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "服务单"
                ],
                "summary": "批量删除服务单",
                "parameters": [
                    {
                        "description": "参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.CommonIds"
                        }
                    }
                ],
@@ -10940,6 +11091,17 @@
                }
            }
        },
        "model.ContactInformation": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "model.Contract": {
            "type": "object",
            "properties": {
@@ -12124,7 +12286,7 @@
                    "type": "integer"
                },
                "sourceType": {
                    "description": "来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单)",
                    "description": "来源类型(1销售退货)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.RefundSourceType"
@@ -12611,12 +12773,13 @@
                    "description": "问题描述",
                    "type": "string"
                },
                "product": {
                    "$ref": "#/definitions/model.Product"
                "productName": {
                    "description": "产品名称",
                    "type": "string"
                },
                "productId": {
                    "description": "产品id",
                    "type": "integer"
                "productTypeName": {
                    "description": "产品分类名称",
                    "type": "string"
                },
                "realTime": {
                    "description": "实际处理时间",
@@ -12982,6 +13145,10 @@
                },
                "contact": {
                    "$ref": "#/definitions/request.Contact"
                },
                "contact_id": {
                    "description": "联系人ID",
                    "type": "integer"
                },
                "country_id": {
                    "type": "integer"
@@ -14135,6 +14302,10 @@
                "contact": {
                    "$ref": "#/definitions/request.Contact"
                },
                "contact_id": {
                    "description": "联系人ID",
                    "type": "integer"
                },
                "country_id": {
                    "type": "integer"
                },
@@ -14303,9 +14474,13 @@
                    "description": "问题描述",
                    "type": "string"
                },
                "productId": {
                    "description": "产品id",
                    "type": "integer"
                "productName": {
                    "description": "产品名称",
                    "type": "string"
                },
                "productTypeName": {
                    "description": "产品分类名称",
                    "type": "string"
                },
                "realTime": {
                    "description": "实际处理时间",
@@ -14584,6 +14759,20 @@
                }
            }
        },
        "request.CommonIds": {
            "type": "object",
            "required": [
                "ids"
            ],
            "properties": {
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                }
            }
        },
        "request.Contact": {
            "type": "object",
            "properties": {
@@ -14704,17 +14893,6 @@
            }
        },
        "request.DeleteSalesLeads": {
            "type": "object",
            "properties": {
                "ids": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                }
            }
        },
        "request.DeleteServiceContract": {
            "type": "object",
            "properties": {
                "ids": {
@@ -14918,7 +15096,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
                }
@@ -14985,7 +15163,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
@@ -15409,6 +15587,10 @@
        },
        "request.SalesRefund": {
            "type": "object",
            "required": [
                "sourceId",
                "sourceType"
            ],
            "properties": {
                "bankAccountId": {
                    "description": "账户id",
@@ -15447,7 +15629,7 @@
                    "type": "integer"
                },
                "sourceType": {
                    "description": "来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单)",
                    "description": "来源类型(1销售退款单)",
                    "allOf": [
                        {
                            "$ref": "#/definitions/constvar.RefundSourceType"
@@ -15659,6 +15841,10 @@
                },
                "contact": {
                    "$ref": "#/definitions/request.Contact"
                },
                "contact_id": {
                    "description": "联系人ID",
                    "type": "integer"
                },
                "country_id": {
                    "type": "integer"
@@ -17372,6 +17558,10 @@
                "contact": {
                    "$ref": "#/definitions/request.Contact"
                },
                "contact_id": {
                    "description": "联系人ID",
                    "type": "integer"
                },
                "country_id": {
                    "type": "integer"
                },
@@ -17547,9 +17737,13 @@
                    "description": "问题描述",
                    "type": "string"
                },
                "productId": {
                    "description": "产品id",
                    "type": "integer"
                "productName": {
                    "description": "产品名称",
                    "type": "string"
                },
                "productTypeName": {
                    "description": "产品分类名称",
                    "type": "string"
                },
                "realTime": {
                    "description": "实际处理时间",
@@ -17872,6 +18066,17 @@
                }
            }
        },
        "response.ContactInformationResponse": {
            "type": "object",
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.ContactInformation"
                    }
                }
            }
        },
        "response.ContactResponse": {
            "type": "object",
            "properties": {