add
wangpengfei
2023-07-07 045199a75fceedea2e310d8798922c302f317849
docs/docs.go
@@ -2223,6 +2223,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": [
@@ -3378,6 +3497,17 @@
                }
            }
        },
        "model.SaleType": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "model.SalesLeads": {
            "type": "object",
            "properties": {
@@ -3907,6 +4037,17 @@
            }
        },
        "request.AddSaleStage": {
            "type": "object",
            "required": [
                "name"
            ],
            "properties": {
                "name": {
                    "type": "string"
                }
            }
        },
        "request.AddSaleType": {
            "type": "object",
            "required": [
                "name"
@@ -4888,6 +5029,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": {
@@ -5171,6 +5341,17 @@
                }
            }
        },
        "response.SaleTypeResponse": {
            "type": "object",
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.SaleType"
                    }
                }
            }
        },
        "response.SalesLeadsResponse": {
            "type": "object",
            "properties": {