add
wangpengfei
2023-07-10 f1fbbbf99f7fa820f51cb47aee4df7e7cf3df6f0
docs/docs.go
@@ -1580,6 +1580,125 @@
                }
            }
        },
        "/api/possibility/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Possibility"
                ],
                "summary": "添加商机可能性",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddPossibility"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/possibility/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Possibility"
                ],
                "summary": "删除商机可能性",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/possibility/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Possibility"
                ],
                "summary": "商机可能性列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/contextx.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/response.PossibilityResponse"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/possibility/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Possibility"
                ],
                "summary": "更新商机可能性",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdatePossibilities"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/province/add": {
            "post": {
                "produces": [
@@ -1716,6 +1835,125 @@
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateProvinces"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/quotation/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Quotation"
                ],
                "summary": "添加报价单",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddQuotation"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/quotation/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Quotation"
                ],
                "summary": "删除报价单",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/quotation/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Quotation"
                ],
                "summary": "报价单列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/contextx.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/response.QuotationResponse"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/quotation/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Quotation"
                ],
                "summary": "更新报价单",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateQuotation"
                        }
                    }
                ],
@@ -1985,6 +2223,125 @@
                }
            }
        },
        "/api/regularCustomers/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "RegularCustomers"
                ],
                "summary": "添加常客",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddRegularCustomers"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/regularCustomers/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "RegularCustomers"
                ],
                "summary": "删除常客",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/regularCustomers/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "RegularCustomers"
                ],
                "summary": "常客列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/contextx.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/response.RegularCustomersResponse"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/regularCustomers/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "RegularCustomers"
                ],
                "summary": "更新常客",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateRegularCustomersList"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/saleChance/add": {
            "post": {
                "produces": [
@@ -2223,6 +2580,125 @@
                }
            }
        },
        "/api/saleType/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SaleType"
                ],
                "summary": "添加销售类型",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddSaleType"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/saleType/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SaleType"
                ],
                "summary": "删除销售类型",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/saleType/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SaleType"
                ],
                "summary": "获取销售类型列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/contextx.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/response.SaleTypeResponse"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/saleType/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "SaleType"
                ],
                "summary": "更新销售类型",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateSaleTypes"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/salesLeads/add": {
            "post": {
                "produces": [
@@ -2448,6 +2924,113 @@
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateSalesSourcesList"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/status/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Status"
                ],
                "summary": "添加状态",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddStatus"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/status/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Status"
                ],
                "summary": "删除状态",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/status/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Status"
                ],
                "summary": "状态列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/status/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "Status"
                ],
                "summary": "更新状态",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateStatusList"
                        }
                    }
                ],
@@ -3206,6 +3789,17 @@
                }
            }
        },
        "model.Possibility": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "model.Province": {
            "type": "object",
            "properties": {
@@ -3223,6 +3817,41 @@
                }
            }
        },
        "model.Quotation": {
            "type": "object",
            "properties": {
                "client_id": {
                    "type": "integer"
                },
                "conditions": {
                    "type": "string"
                },
                "contact_id": {
                    "type": "integer"
                },
                "file": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "member_id": {
                    "type": "integer"
                },
                "number": {
                    "type": "string"
                },
                "quotation_status_id": {
                    "type": "integer"
                },
                "sale_chance_id": {
                    "type": "integer"
                },
                "validity_date": {
                    "type": "string"
                }
            }
        },
        "model.Region": {
            "type": "object",
            "properties": {
@@ -3235,6 +3864,17 @@
            }
        },
        "model.RegisteredCapital": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "model.RegularCustomers": {
            "type": "object",
            "properties": {
                "id": {
@@ -3317,7 +3957,7 @@
                "pain_points": {
                    "type": "string"
                },
                "possibilities": {
                "possibilities_id": {
                    "type": "integer"
                },
                "process": {
@@ -3368,6 +4008,17 @@
            }
        },
        "model.SaleStage": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "model.SaleType": {
            "type": "object",
            "properties": {
                "id": {
@@ -3779,11 +4430,54 @@
                }
            }
        },
        "request.AddPossibility": {
            "type": "object",
            "required": [
                "name"
            ],
            "properties": {
                "name": {
                    "type": "string"
                }
            }
        },
        "request.AddProvince": {
            "type": "object",
            "properties": {
                "name": {
                    "description": "省份名称",
                    "type": "string"
                }
            }
        },
        "request.AddQuotation": {
            "type": "object",
            "properties": {
                "client_id": {
                    "type": "integer"
                },
                "conditions": {
                    "type": "string"
                },
                "contact_id": {
                    "type": "integer"
                },
                "file": {
                    "type": "string"
                },
                "member_id": {
                    "type": "integer"
                },
                "number": {
                    "type": "string"
                },
                "quotation_status_id": {
                    "type": "integer"
                },
                "sale_chance_id": {
                    "type": "integer"
                },
                "validity_date": {
                    "type": "string"
                }
            }
@@ -3798,6 +4492,17 @@
            }
        },
        "request.AddRegisteredCapital": {
            "type": "object",
            "required": [
                "name"
            ],
            "properties": {
                "name": {
                    "type": "string"
                }
            }
        },
        "request.AddRegularCustomers": {
            "type": "object",
            "required": [
                "name"
@@ -3917,6 +4622,17 @@
                }
            }
        },
        "request.AddSaleType": {
            "type": "object",
            "required": [
                "name"
            ],
            "properties": {
                "name": {
                    "type": "string"
                }
            }
        },
        "request.AddSalesLeads": {
            "type": "object",
            "properties": {
@@ -3967,6 +4683,17 @@
            }
        },
        "request.AddSalesSources": {
            "type": "object",
            "required": [
                "name"
            ],
            "properties": {
                "name": {
                    "type": "string"
                }
            }
        },
        "request.AddStatus": {
            "type": "object",
            "required": [
                "name"
@@ -4679,6 +5406,35 @@
                }
            }
        },
        "request.UpdatePossibilities": {
            "type": "object",
            "required": [
                "possibilities"
            ],
            "properties": {
                "possibilities": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/request.UpdatePossibility"
                    }
                }
            }
        },
        "request.UpdatePossibility": {
            "type": "object",
            "required": [
                "id",
                "name"
            ],
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.UpdateProvince": {
            "type": "object",
            "properties": {
@@ -4701,6 +5457,41 @@
                    "items": {
                        "$ref": "#/definitions/request.UpdateProvince"
                    }
                }
            }
        },
        "request.UpdateQuotation": {
            "type": "object",
            "properties": {
                "client_id": {
                    "type": "integer"
                },
                "conditions": {
                    "type": "string"
                },
                "contact_id": {
                    "type": "integer"
                },
                "file": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "member_id": {
                    "type": "integer"
                },
                "number": {
                    "type": "string"
                },
                "quotation_status_id": {
                    "type": "integer"
                },
                "sale_chance_id": {
                    "type": "integer"
                },
                "validity_date": {
                    "type": "string"
                }
            }
        },
@@ -4751,6 +5542,35 @@
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/request.UpdateRegisteredCapital"
                    }
                }
            }
        },
        "request.UpdateRegularCustomers": {
            "type": "object",
            "required": [
                "id",
                "name"
            ],
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.UpdateRegularCustomersList": {
            "type": "object",
            "required": [
                "regularCustomers"
            ],
            "properties": {
                "regularCustomers": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/request.UpdateRegularCustomers"
                    }
                }
            }
@@ -4888,6 +5708,35 @@
                }
            }
        },
        "request.UpdateSaleType": {
            "type": "object",
            "required": [
                "id",
                "name"
            ],
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.UpdateSaleTypes": {
            "type": "object",
            "required": [
                "sale_types"
            ],
            "properties": {
                "sale_types": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/request.UpdateSaleType"
                    }
                }
            }
        },
        "request.UpdateSalesLeads": {
            "type": "object",
            "properties": {
@@ -4962,6 +5811,35 @@
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/request.UpdateSalesSources"
                    }
                }
            }
        },
        "request.UpdateStatus": {
            "type": "object",
            "required": [
                "id",
                "name"
            ],
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.UpdateStatusList": {
            "type": "object",
            "required": [
                "list"
            ],
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/request.UpdateStatus"
                    }
                }
            }
@@ -5127,6 +6005,17 @@
                }
            }
        },
        "response.PossibilityResponse": {
            "type": "object",
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Possibility"
                    }
                }
            }
        },
        "response.ProvinceResponse": {
            "type": "object",
            "properties": {
@@ -5138,6 +6027,17 @@
                }
            }
        },
        "response.QuotationResponse": {
            "type": "object",
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Quotation"
                    }
                }
            }
        },
        "response.RegisteredCapitalResponse": {
            "type": "object",
            "properties": {
@@ -5145,6 +6045,17 @@
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.RegisteredCapital"
                    }
                }
            }
        },
        "response.RegularCustomersResponse": {
            "type": "object",
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.RegularCustomers"
                    }
                }
            }
@@ -5171,6 +6082,17 @@
                }
            }
        },
        "response.SaleTypeResponse": {
            "type": "object",
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.SaleType"
                    }
                }
            }
        },
        "response.SalesLeadsResponse": {
            "type": "object",
            "properties": {