From 28240d14942e63d05c06531f04f7f7b5530f04c3 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期三, 20 九月 2023 10:46:32 +0800
Subject: [PATCH] 产品与产品类型注释添加

---
 docs/swagger.json |   40 +++++++++++++++++++++++++++++++++++++---
 1 files changed, 37 insertions(+), 3 deletions(-)

diff --git a/docs/swagger.json b/docs/swagger.json
index a6aa289..10ca3e1 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -1377,9 +1377,11 @@
             "type": "object",
             "properties": {
                 "HSCode": {
+                    "description": "HS缂栫爜",
                     "type": "string"
                 },
                 "amount": {
+                    "description": "鏁伴噺",
                     "type": "number"
                 },
                 "barcode": {
@@ -1387,6 +1389,7 @@
                     "type": "string"
                 },
                 "buyExplain": {
+                    "description": "閲囪喘璇存槑",
                     "type": "string"
                 },
                 "canBePurchased": {
@@ -1398,19 +1401,27 @@
                     "type": "integer"
                 },
                 "companyId": {
+                    "description": "鍏徃id",
                     "type": "integer"
                 },
                 "companyName": {
+                    "description": "鍏徃鍚嶇О",
                     "type": "string"
                 },
                 "controlStrategy": {
-                    "$ref": "#/definitions/constvar.InvoicingStrategy"
+                    "description": "鎺у埗绛栫暐",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.InvoicingStrategy"
+                        }
+                    ]
                 },
                 "cost": {
                     "description": "鎴愭湰",
                     "type": "number"
                 },
                 "currencyName": {
+                    "description": "甯佺鍚嶇О",
                     "type": "string"
                 },
                 "customerTaxes": {
@@ -1418,12 +1429,14 @@
                     "type": "number"
                 },
                 "deliveryAdvanceTime": {
+                    "description": "浜よ揣鎻愬墠鏃堕棿(澶�)",
                     "type": "integer"
                 },
                 "id": {
                     "type": "string"
                 },
                 "inStorageExplain": {
+                    "description": "鍏ュ簱璇存槑",
                     "type": "string"
                 },
                 "internalNotes": {
@@ -1435,6 +1448,7 @@
                     "type": "string"
                 },
                 "internalTransferExplain": {
+                    "description": "鍐呴儴璋冩嫧璇存槑",
                     "type": "string"
                 },
                 "invoicingStrategy": {
@@ -1450,6 +1464,7 @@
                     "type": "boolean"
                 },
                 "maxInventory": {
+                    "description": "鏈�澶у簱瀛�",
                     "type": "number"
                 },
                 "minInventory": {
@@ -1469,18 +1484,27 @@
                     ]
                 },
                 "name": {
+                    "description": "鐗╂枡鍚嶇О",
                     "type": "string"
                 },
                 "orderCreation": {
-                    "$ref": "#/definitions/constvar.OrderCreation"
+                    "description": "璁㈠崟鍒涘缓",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.OrderCreation"
+                        }
+                    ]
                 },
                 "originCountryId": {
+                    "description": "鍘熶骇鍦癷d",
                     "type": "integer"
                 },
                 "originCountryName": {
+                    "description": "鍘熶骇鍦板悕绉�",
                     "type": "string"
                 },
                 "outStorageExplain": {
+                    "description": "鍑哄簱璇存槑",
                     "type": "string"
                 },
                 "principal": {
@@ -1488,26 +1512,35 @@
                     "type": "string"
                 },
                 "productTagId": {
-                    "description": "浜у搧鏍囩",
+                    "description": "浜у搧鏍囩id",
                     "type": "integer"
                 },
                 "productTagName": {
+                    "description": "浜у搧鏍囩鍚嶇О",
                     "type": "string"
                 },
                 "purchasePrice": {
+                    "description": "閲囪喘浠锋牸",
                     "type": "number"
                 },
                 "salePrice": {
+                    "description": "閿�鍞崟浠�",
                     "type": "number"
                 },
                 "selectProduct": {
+                    "description": "鍙�変骇鍝乮d",
                     "type": "integer"
                 },
                 "sellExplain": {
+                    "description": "閿�鍞鏄�",
                     "type": "string"
                 },
                 "supplier": {
                     "description": "FSource           string                  `gorm:\"type:varchar(191);comment:鐢熶骇杞﹂棿\" json:\"-\"`\nStatus            constvar.MaterialStatus `gorm:\"type:int(11);comment:鐘舵�乗" json:\"status\"`",
+                    "type": "string"
+                },
+                "templateID": {
+                    "description": "Note              string                  `gorm:\"type:varchar(1024);comment:澶囨敞\" json:\"note\"`",
                     "type": "string"
                 },
                 "unit": {
@@ -1677,6 +1710,7 @@
                     "type": "integer"
                 },
                 "routeId": {
+                    "description": "璺嚎id",
                     "type": "integer"
                 },
                 "routeName": {

--
Gitblit v1.8.0