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.yaml | 34 +++++++++++++++++++++++++++++++--- 1 files changed, 31 insertions(+), 3 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 2dc5f06..80597bb 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -246,13 +246,16 @@ models.Material: properties: HSCode: + description: HS缂栫爜 type: string amount: + description: 鏁伴噺 type: number barcode: description: 鏉$爜 type: string buyExplain: + description: 閲囪喘璇存槑 type: string canBePurchased: description: 鏄惁鍙噰璐� @@ -261,24 +264,31 @@ description: 浜у搧绫诲埆id type: integer companyId: + description: 鍏徃id type: integer companyName: + description: 鍏徃鍚嶇О type: string controlStrategy: - $ref: '#/definitions/constvar.InvoicingStrategy' + allOf: + - $ref: '#/definitions/constvar.InvoicingStrategy' + description: 鎺у埗绛栫暐 cost: description: 鎴愭湰 type: number currencyName: + description: 甯佺鍚嶇О type: string customerTaxes: description: 瀹㈡埛绋庣櫨鍒嗘瘮 type: number deliveryAdvanceTime: + description: 浜よ揣鎻愬墠鏃堕棿(澶�) type: integer id: type: string inStorageExplain: + description: 鍏ュ簱璇存槑 type: string internalNotes: description: 鍐呴儴璇存槑 @@ -287,6 +297,7 @@ description: 鍐呴儴鍙傝�� type: string internalTransferExplain: + description: 鍐呴儴璋冩嫧璇存槑 type: string invoicingStrategy: allOf: @@ -297,6 +308,7 @@ json:"purchaseType"` type: boolean maxInventory: + description: 鏈�澶у簱瀛� type: number minInventory: description: |- @@ -316,35 +328,50 @@ description: MaterialType constvar.ProductType `gorm:"index;type:int(11);comment:鐗╂枡绫诲瀷(鏁板瓧)" json:"materialType"` name: + description: 鐗╂枡鍚嶇О type: string orderCreation: - $ref: '#/definitions/constvar.OrderCreation' + allOf: + - $ref: '#/definitions/constvar.OrderCreation' + description: 璁㈠崟鍒涘缓 originCountryId: + description: 鍘熶骇鍦癷d type: integer originCountryName: + description: 鍘熶骇鍦板悕绉� type: string outStorageExplain: + description: 鍑哄簱璇存槑 type: string principal: description: 璐熻矗浜� 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:"-"` Status 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: description: LockAmount decimal.Decimal `gorm:"type:decimal(35,18);default:0;comment:閿佸畾鏁伴噺" @@ -450,6 +477,7 @@ description: 涓婄骇id type: integer routeId: + description: 璺嚎id type: integer routeName: description: 鍏徃 -- Gitblit v1.8.0