add
wangpengfei
2023-07-10 f1fbbbf99f7fa820f51cb47aee4df7e7cf3df6f0
docs/docs.go
@@ -1848,6 +1848,125 @@
                }
            }
        },
        "/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"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/region/add": {
            "post": {
                "produces": [
@@ -3698,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": {
@@ -4292,6 +4446,38 @@
            "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"
                }
            }
@@ -5274,6 +5460,41 @@
                }
            }
        },
        "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"
                }
            }
        },
        "request.UpdateRegion": {
            "type": "object",
            "properties": {
@@ -5806,6 +6027,17 @@
                }
            }
        },
        "response.QuotationResponse": {
            "type": "object",
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.Quotation"
                    }
                }
            }
        },
        "response.RegisteredCapitalResponse": {
            "type": "object",
            "properties": {