From f1fbbbf99f7fa820f51cb47aee4df7e7cf3df6f0 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期一, 10 七月 2023 19:43:57 +0800
Subject: [PATCH] add

---
 docs/docs.go |  232 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 232 insertions(+), 0 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 6cbada4..9a8241c 100644
--- a/docs/docs.go
+++ b/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": {

--
Gitblit v1.8.0