From 624d15a1baedef4b872dfea64331532c9ef31b4e Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期五, 21 七月 2023 13:43:59 +0800
Subject: [PATCH] add

---
 docs/docs.go |  236 +++++++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 214 insertions(+), 22 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index cf08ca0..7f94009 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -1395,6 +1395,125 @@
                 }
             }
         },
+        "/api/currency/add": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Currency"
+                ],
+                "summary": "娣诲姞甯佺",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.AddCurrency"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/currency/delete/{id}": {
+            "delete": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Currency"
+                ],
+                "summary": "鍒犻櫎甯佺",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/currency/list": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Currency"
+                ],
+                "summary": "鑾峰彇甯佺鍒楄〃",
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/contextx.Response"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "$ref": "#/definitions/response.CurrencyResponse"
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/api/currency/update": {
+            "put": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "Currency"
+                ],
+                "summary": "鏇存柊甯佺",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.UpdateCurrencys"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
         "/api/customerServiceSheet/add": {
             "post": {
                 "produces": [
@@ -6696,27 +6815,6 @@
         }
     },
     "definitions": {
-        "constvar.CurrencyType": {
-            "type": "integer",
-            "enum": [
-                1,
-                2,
-                3,
-                4
-            ],
-            "x-enum-comments": {
-                "CurrencyTypeCNY": "浜烘皯甯�",
-                "CurrencyTypeEUR": "娆у厓",
-                "CurrencyTypeGBP": "鑻遍晳",
-                "CurrencyTypeUSD": "缇庡厓"
-            },
-            "x-enum-varnames": [
-                "CurrencyTypeCNY",
-                "CurrencyTypeUSD",
-                "CurrencyTypeEUR",
-                "CurrencyTypeGBP"
-            ]
-        },
         "constvar.SalesStatus": {
             "type": "integer",
             "enum": [
@@ -7175,6 +7273,17 @@
                     "items": {
                         "$ref": "#/definitions/model.Province"
                     }
+                }
+            }
+        },
+        "model.Currency": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
                 }
             }
         },
@@ -7649,7 +7758,7 @@
                     "type": "integer"
                 },
                 "currency": {
-                    "$ref": "#/definitions/constvar.CurrencyType"
+                    "type": "integer"
                 },
                 "detail_address": {
                     "type": "string"
@@ -8154,6 +8263,17 @@
                 }
             }
         },
+        "model.Status": {
+            "type": "object",
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
         "model.SubOrder": {
             "type": "object",
             "properties": {
@@ -8506,6 +8626,17 @@
             "properties": {
                 "name": {
                     "description": "鍥藉鍚嶇О",
+                    "type": "string"
+                }
+            }
+        },
+        "request.AddCurrency": {
+            "type": "object",
+            "required": [
+                "name"
+            ],
+            "properties": {
+                "name": {
                     "type": "string"
                 }
             }
@@ -10202,6 +10333,35 @@
                 }
             }
         },
+        "request.UpdateCurrency": {
+            "type": "object",
+            "required": [
+                "id",
+                "name"
+            ],
+            "properties": {
+                "id": {
+                    "type": "integer"
+                },
+                "name": {
+                    "type": "string"
+                }
+            }
+        },
+        "request.UpdateCurrencys": {
+            "type": "object",
+            "required": [
+                "currency"
+            ],
+            "properties": {
+                "currency": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/request.UpdateCurrency"
+                    }
+                }
+            }
+        },
         "request.UpdateCustomerServiceSheet": {
             "type": "object",
             "properties": {
@@ -11620,6 +11780,17 @@
                 }
             }
         },
+        "response.CurrencyResponse": {
+            "type": "object",
+            "properties": {
+                "list": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.Currency"
+                    }
+                }
+            }
+        },
         "response.DataResponse": {
             "type": "object",
             "properties": {
@@ -11670,6 +11841,13 @@
                     "type": "array",
                     "items": {
                         "$ref": "#/definitions/model.Country"
+                    }
+                },
+                "currency": {
+                    "description": "甯佺",
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.Currency"
                     }
                 },
                 "department": {
@@ -11726,6 +11904,13 @@
                     "type": "array",
                     "items": {
                         "$ref": "#/definitions/model.OrderType"
+                    }
+                },
+                "possibility": {
+                    "description": "鍙兘鎬�",
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.Possibility"
                     }
                 },
                 "province": {
@@ -11840,6 +12025,13 @@
                         "$ref": "#/definitions/model.SolveRate"
                     }
                 },
+                "status": {
+                    "description": "鐘舵��",
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/model.Status"
+                    }
+                },
                 "timely_rate": {
                     "description": "鍙婃椂鐜�",
                     "type": "array",

--
Gitblit v1.8.0