From d8e60a242489d448cf9c0af8d3636ddadbc6476f Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期六, 26 八月 2023 11:58:57 +0800 Subject: [PATCH] add --- docs/docs.go | 3121 +++++++++++++++++++++++++++++++++------------------------- 1 files changed, 1,752 insertions(+), 1,369 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 0fdcfa3..6290ec0 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -16,381 +16,6 @@ "host": "{{.Host}}", "basePath": "{{.BasePath}}", "paths": { - "/api/con/createContract": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "multipart/form-data" - ], - "produces": [ - "multipart/form-data" - ], - "tags": [ - "Contract" - ], - "summary": "鍒涘缓Contract", - "parameters": [ - { - "type": "file", - "description": "涓婁紶鏂囦欢", - "name": "file", - "in": "formData", - "required": true - }, - { - "type": "string", - "description": "鏂囦欢鍚嶇О", - "name": "name", - "in": "formData", - "required": true - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/con/deleteContract": { - "delete": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Contract" - ], - "summary": "鍒犻櫎Contract", - "parameters": [ - { - "description": "鍒犻櫎Contract", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/test.Contract" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鍒犻櫎鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/con/deleteContractByIds": { - "delete": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Contract" - ], - "summary": "鎵归噺鍒犻櫎Contract", - "parameters": [ - { - "description": "鎵归噺鍒犻櫎Contract", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.IdsReq" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鎵归噺鍒犻櫎鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/con/findContract": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Contract" - ], - "summary": "鐢╥d鏌ヨContract", - "parameters": [ - { - "type": "array", - "items": { - "type": "integer" - }, - "collectionFormat": "csv", - "name": "fileContent", - "in": "query" - }, - { - "type": "string", - "name": "fileName", - "in": "query" - }, - { - "type": "integer", - "description": "涓婚敭ID", - "name": "id", - "in": "query" - }, - { - "type": "integer", - "name": "supplierID", - "in": "query" - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鏌ヨ鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/con/getContractList": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Contract" - ], - "summary": "鍒嗛〉鑾峰彇Contract鍒楄〃", - "parameters": [ - { - "type": "string", - "name": "endCreatedAt", - "in": "query" - }, - { - "type": "array", - "items": { - "type": "integer" - }, - "collectionFormat": "csv", - "name": "fileContent", - "in": "query" - }, - { - "type": "string", - "name": "fileName", - "in": "query" - }, - { - "type": "integer", - "description": "涓婚敭ID", - "name": "id", - "in": "query" - }, - { - "type": "string", - "description": "鍏抽敭瀛�", - "name": "keyword", - "in": "query" - }, - { - "type": "integer", - "description": "椤电爜", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "description": "姣忛〉澶у皬", - "name": "pageSize", - "in": "query" - }, - { - "type": "string", - "name": "startCreatedAt", - "in": "query" - }, - { - "type": "integer", - "name": "supplierID", - "in": "query" - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/con/previewContract": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Contract" - ], - "summary": "棰勮Contract", - "parameters": [ - { - "type": "string", - "name": "endCreatedAt", - "in": "query" - }, - { - "type": "array", - "items": { - "type": "integer" - }, - "collectionFormat": "csv", - "name": "fileContent", - "in": "query" - }, - { - "type": "string", - "name": "fileName", - "in": "query" - }, - { - "type": "integer", - "description": "涓婚敭ID", - "name": "id", - "in": "query" - }, - { - "type": "string", - "description": "鍏抽敭瀛�", - "name": "keyword", - "in": "query" - }, - { - "type": "integer", - "description": "椤电爜", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "description": "姣忛〉澶у皬", - "name": "pageSize", - "in": "query" - }, - { - "type": "string", - "name": "startCreatedAt", - "in": "query" - }, - { - "type": "integer", - "name": "supplierID", - "in": "query" - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"棰勮鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/con/updateContract": { - "put": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Contract" - ], - "summary": "鏇存柊Contract", - "parameters": [ - { - "description": "鏇存柊Contract", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/test.Contract" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, "/api/createApi": { "post": { "security": [ @@ -715,964 +340,6 @@ } } ] - } - } - } - } - }, - "/api/i/createIndustry": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Industry" - ], - "summary": "鍒涘缓Industry", - "parameters": [ - { - "description": "鍒涘缓Industry", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/test.Industry" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/i/deleteIndustry": { - "delete": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Industry" - ], - "summary": "鍒犻櫎Industry", - "parameters": [ - { - "description": "鍒犻櫎Industry", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/test.Industry" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鍒犻櫎鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/i/deleteIndustryByIds": { - "delete": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Industry" - ], - "summary": "鎵归噺鍒犻櫎Industry", - "parameters": [ - { - "description": "鎵归噺鍒犻櫎Industry", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.IdsReq" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鎵归噺鍒犻櫎鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/i/findIndustry": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Industry" - ], - "summary": "鐢╥d鏌ヨIndustry", - "parameters": [ - { - "type": "integer", - "description": "涓婚敭ID", - "name": "id", - "in": "query" - }, - { - "type": "string", - "name": "name", - "in": "query" - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鏌ヨ鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/i/getIndustryList": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Industry" - ], - "summary": "鍒嗛〉鑾峰彇Industry鍒楄〃", - "parameters": [ - { - "type": "string", - "name": "endCreatedAt", - "in": "query" - }, - { - "type": "integer", - "description": "涓婚敭ID", - "name": "id", - "in": "query" - }, - { - "type": "string", - "description": "鍏抽敭瀛�", - "name": "keyword", - "in": "query" - }, - { - "type": "string", - "name": "name", - "in": "query" - }, - { - "type": "integer", - "description": "椤电爜", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "description": "姣忛〉澶у皬", - "name": "pageSize", - "in": "query" - }, - { - "type": "string", - "name": "startCreatedAt", - "in": "query" - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/i/updateIndustry": { - "put": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Industry" - ], - "summary": "鏇存柊Industry", - "parameters": [ - { - "description": "鏇存柊Industry", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/test.Industry" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/s/changeSupplierStatus": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Supplier" - ], - "summary": "淇敼Supplier鐘舵��", - "parameters": [ - { - "description": "淇敼Supplier鐘舵��", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.SupplierStatus" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"淇敼鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/s/createSupplier": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Supplier" - ], - "summary": "鍒涘缓Supplier", - "parameters": [ - { - "description": "鍒涘缓Supplier", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/test.Supplier" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/s/deleteSupplier": { - "delete": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Supplier" - ], - "summary": "鍒犻櫎Supplier", - "parameters": [ - { - "description": "鍒犻櫎Supplier", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/test.Supplier" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鍒犻櫎鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/s/deleteSupplierByIds": { - "delete": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Supplier" - ], - "summary": "鎵归噺鍒犻櫎Supplier", - "parameters": [ - { - "description": "鎵归噺鍒犻櫎Supplier", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.IdsReq" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鎵归噺鍒犻櫎鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/s/findSupplier": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Supplier" - ], - "summary": "鐢╥d鏌ヨSupplier", - "parameters": [ - { - "type": "string", - "name": "account", - "in": "query" - }, - { - "type": "string", - "name": "accountName", - "in": "query" - }, - { - "type": "string", - "name": "bank", - "in": "query" - }, - { - "type": "string", - "name": "contact", - "in": "query" - }, - { - "type": "string", - "name": "detailAddress", - "in": "query" - }, - { - "type": "string", - "name": "email", - "in": "query" - }, - { - "type": "string", - "name": "file", - "in": "query" - }, - { - "type": "integer", - "description": "涓婚敭ID", - "name": "id", - "in": "query" - }, - { - "type": "string", - "name": "industry", - "in": "query" - }, - { - "type": "string", - "name": "name", - "in": "query" - }, - { - "type": "string", - "name": "number", - "in": "query" - }, - { - "type": "string", - "name": "phone", - "in": "query" - }, - { - "type": "integer", - "name": "responsiblePersonId", - "in": "query" - }, - { - "type": "integer", - "name": "status", - "in": "query" - }, - { - "type": "string", - "name": "supplierType", - "in": "query" - }, - { - "type": "string", - "name": "url", - "in": "query" - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鏌ヨ鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/s/getSupplierList": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Supplier" - ], - "summary": "鍒嗛〉鑾峰彇Supplier鍒楄〃", - "parameters": [ - { - "type": "string", - "name": "account", - "in": "query" - }, - { - "type": "string", - "name": "accountName", - "in": "query" - }, - { - "type": "string", - "name": "bank", - "in": "query" - }, - { - "type": "string", - "name": "contact", - "in": "query" - }, - { - "type": "string", - "name": "detailAddress", - "in": "query" - }, - { - "type": "string", - "name": "email", - "in": "query" - }, - { - "type": "string", - "name": "endCreatedAt", - "in": "query" - }, - { - "type": "string", - "name": "file", - "in": "query" - }, - { - "type": "integer", - "description": "涓婚敭ID", - "name": "id", - "in": "query" - }, - { - "type": "string", - "name": "industry", - "in": "query" - }, - { - "type": "string", - "description": "鍏抽敭瀛�", - "name": "keyword", - "in": "query" - }, - { - "type": "string", - "name": "name", - "in": "query" - }, - { - "type": "string", - "name": "number", - "in": "query" - }, - { - "type": "integer", - "description": "椤电爜", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "description": "姣忛〉澶у皬", - "name": "pageSize", - "in": "query" - }, - { - "type": "string", - "name": "phone", - "in": "query" - }, - { - "type": "integer", - "name": "responsiblePersonId", - "in": "query" - }, - { - "type": "string", - "name": "startCreatedAt", - "in": "query" - }, - { - "type": "integer", - "name": "status", - "in": "query" - }, - { - "type": "string", - "name": "supplierType", - "in": "query" - }, - { - "type": "string", - "name": "url", - "in": "query" - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/s/updateSupplier": { - "put": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "Supplier" - ], - "summary": "鏇存柊Supplier", - "parameters": [ - { - "description": "鏇存柊Supplier", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/test.Supplier" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/st/createSupplierType": { - "post": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SupplierType" - ], - "summary": "鍒涘缓SupplierType", - "parameters": [ - { - "description": "鍒涘缓SupplierType", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/test.SupplierType" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/st/deleteSupplierType": { - "delete": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SupplierType" - ], - "summary": "鍒犻櫎SupplierType", - "parameters": [ - { - "description": "鍒犻櫎SupplierType", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/test.SupplierType" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鍒犻櫎鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/st/deleteSupplierTypeByIds": { - "delete": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SupplierType" - ], - "summary": "鎵归噺鍒犻櫎SupplierType", - "parameters": [ - { - "description": "鎵归噺鍒犻櫎SupplierType", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/request.IdsReq" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鎵归噺鍒犻櫎鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/st/findSupplierType": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SupplierType" - ], - "summary": "鐢╥d鏌ヨSupplierType", - "parameters": [ - { - "type": "integer", - "description": "涓婚敭ID", - "name": "id", - "in": "query" - }, - { - "type": "string", - "name": "name", - "in": "query" - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鏌ヨ鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/st/getSupplierTypeList": { - "get": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SupplierType" - ], - "summary": "鍒嗛〉鑾峰彇SupplierType鍒楄〃", - "parameters": [ - { - "type": "string", - "name": "endCreatedAt", - "in": "query" - }, - { - "type": "integer", - "description": "涓婚敭ID", - "name": "id", - "in": "query" - }, - { - "type": "string", - "description": "鍏抽敭瀛�", - "name": "keyword", - "in": "query" - }, - { - "type": "string", - "name": "name", - "in": "query" - }, - { - "type": "integer", - "description": "椤电爜", - "name": "page", - "in": "query" - }, - { - "type": "integer", - "description": "姣忛〉澶у皬", - "name": "pageSize", - "in": "query" - }, - { - "type": "string", - "name": "startCreatedAt", - "in": "query" - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", - "schema": { - "type": "string" - } - } - } - } - }, - "/api/st/updateSupplierType": { - "put": { - "security": [ - { - "ApiKeyAuth": [] - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "SupplierType" - ], - "summary": "鏇存柊SupplierType", - "parameters": [ - { - "description": "鏇存柊SupplierType", - "name": "data", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/test.SupplierType" - } - } - ], - "responses": { - "200": { - "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", - "schema": { - "type": "string" } } } @@ -3113,6 +1780,353 @@ } } }, + "/con/createContract": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "multipart/form-data" + ], + "produces": [ + "multipart/form-data" + ], + "tags": [ + "Contract" + ], + "summary": "鍒涘缓Contract", + "parameters": [ + { + "type": "file", + "description": "涓婁紶鏂囦欢", + "name": "file", + "in": "formData", + "required": true + }, + { + "type": "string", + "description": "鏂囦欢鍚嶇О", + "name": "name", + "in": "formData", + "required": true + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/con/deleteContract": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "鍒犻櫎Contract", + "parameters": [ + { + "description": "鍒犻櫎Contract", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Contract" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/con/deleteContractByIds": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "鎵归噺鍒犻櫎Contract", + "parameters": [ + { + "description": "鎵归噺鍒犻櫎Contract", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.IdsReq" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鎵归噺鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/con/findContract": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "鐢╥d鏌ヨContract", + "parameters": [ + { + "type": "array", + "items": { + "type": "integer" + }, + "collectionFormat": "csv", + "name": "fileContent", + "in": "query" + }, + { + "type": "string", + "name": "fileName", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "integer", + "name": "supplierID", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏌ヨ鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/con/getContractList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "鍒嗛〉鑾峰彇Contract鍒楄〃", + "parameters": [ + { + "type": "string", + "name": "endCreatedAt", + "in": "query" + }, + { + "type": "array", + "items": { + "type": "integer" + }, + "collectionFormat": "csv", + "name": "fileContent", + "in": "query" + }, + { + "type": "string", + "name": "fileName", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "string", + "description": "鍏抽敭瀛�", + "name": "keyword", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "type": "string", + "name": "startCreatedAt", + "in": "query" + }, + { + "type": "integer", + "name": "supplierID", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/con/previewContract": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "棰勮Contract", + "parameters": [ + { + "type": "array", + "items": { + "type": "integer" + }, + "collectionFormat": "csv", + "name": "fileContent", + "in": "query" + }, + { + "type": "string", + "name": "fileName", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "integer", + "name": "supplierID", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"棰勮鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/con/updateContract": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "鏇存柊Contract", + "parameters": [ + { + "description": "鏇存柊Contract", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Contract" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, "/customer/customer": { "get": { "security": [ @@ -3750,6 +2764,266 @@ } } }, + "/i/createIndustry": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Industry" + ], + "summary": "鍒涘缓Industry", + "parameters": [ + { + "description": "鍒涘缓Industry", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Industry" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/i/deleteIndustry": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Industry" + ], + "summary": "鍒犻櫎Industry", + "parameters": [ + { + "description": "鍒犻櫎Industry", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Industry" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/i/deleteIndustryByIds": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Industry" + ], + "summary": "鎵归噺鍒犻櫎Industry", + "parameters": [ + { + "description": "鎵归噺鍒犻櫎Industry", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.IdsReq" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鎵归噺鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/i/findIndustry": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Industry" + ], + "summary": "鐢╥d鏌ヨIndustry", + "parameters": [ + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "string", + "name": "name", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏌ヨ鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/i/getIndustryList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Industry" + ], + "summary": "鍒嗛〉鑾峰彇Industry鍒楄〃", + "parameters": [ + { + "type": "string", + "name": "endCreatedAt", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "string", + "description": "鍏抽敭瀛�", + "name": "keyword", + "in": "query" + }, + { + "type": "string", + "name": "name", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "type": "string", + "name": "startCreatedAt", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/i/updateIndustry": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Industry" + ], + "summary": "鏇存柊Industry", + "parameters": [ + { + "description": "鏇存柊Industry", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.IndustryList" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, "/init/checkdb": { "post": { "produces": [ @@ -4321,6 +3595,1054 @@ } } ] + } + } + } + } + }, + "/p/createProduct": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Product" + ], + "summary": "鍒涘缓Product", + "parameters": [ + { + "description": "鍒涘缓Product", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Product" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/p/deleteProduct": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Product" + ], + "summary": "鍒犻櫎Product", + "parameters": [ + { + "description": "鍒犻櫎Product", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Product" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/p/deleteProductByIds": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Product" + ], + "summary": "鎵归噺鍒犻櫎Product", + "parameters": [ + { + "description": "鎵归噺鍒犻櫎Product", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.IdsReq" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鎵归噺鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/p/findProduct": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Product" + ], + "summary": "鐢╥d鏌ヨProduct", + "parameters": [ + { + "type": "integer", + "name": "deliveryTime", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "integer", + "name": "maximumStock", + "in": "query" + }, + { + "type": "integer", + "name": "minimumStock", + "in": "query" + }, + { + "type": "string", + "name": "name", + "in": "query" + }, + { + "type": "string", + "name": "number", + "in": "query" + }, + { + "type": "string", + "name": "productType", + "in": "query" + }, + { + "type": "number", + "name": "purchasePrice", + "in": "query" + }, + { + "type": "string", + "name": "remark", + "in": "query" + }, + { + "type": "integer", + "name": "shippingDuration", + "in": "query" + }, + { + "type": "string", + "name": "unit", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏌ヨ鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/p/getProductList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Product" + ], + "summary": "鍒嗛〉鑾峰彇Product鍒楄〃", + "parameters": [ + { + "type": "integer", + "name": "deliveryTime", + "in": "query" + }, + { + "type": "string", + "name": "endCreatedAt", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "string", + "description": "鍏抽敭瀛�", + "name": "keyword", + "in": "query" + }, + { + "type": "integer", + "name": "maximumStock", + "in": "query" + }, + { + "type": "integer", + "name": "minimumStock", + "in": "query" + }, + { + "type": "string", + "name": "name", + "in": "query" + }, + { + "type": "string", + "name": "number", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "type": "string", + "name": "productType", + "in": "query" + }, + { + "type": "number", + "name": "purchasePrice", + "in": "query" + }, + { + "type": "string", + "name": "remark", + "in": "query" + }, + { + "type": "integer", + "name": "shippingDuration", + "in": "query" + }, + { + "type": "string", + "name": "startCreatedAt", + "in": "query" + }, + { + "type": "string", + "name": "unit", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/p/updateProduct": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Product" + ], + "summary": "鏇存柊Product", + "parameters": [ + { + "description": "鏇存柊Product", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Product" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/s/changeSupplierStatus": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Supplier" + ], + "summary": "淇敼Supplier鐘舵��", + "parameters": [ + { + "description": "淇敼Supplier鐘舵��", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.SupplierStatus" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"淇敼鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/s/createSupplier": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Supplier" + ], + "summary": "鍒涘缓Supplier", + "parameters": [ + { + "description": "鍒涘缓Supplier", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Supplier" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/s/deleteSupplier": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Supplier" + ], + "summary": "鍒犻櫎Supplier", + "parameters": [ + { + "description": "鍒犻櫎Supplier", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Supplier" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/s/deleteSupplierByIds": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Supplier" + ], + "summary": "鎵归噺鍒犻櫎Supplier", + "parameters": [ + { + "description": "鎵归噺鍒犻櫎Supplier", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.IdsReq" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鎵归噺鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/s/findSupplier": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Supplier" + ], + "summary": "鐢╥d鏌ヨSupplier", + "parameters": [ + { + "type": "string", + "name": "account", + "in": "query" + }, + { + "type": "string", + "name": "accountName", + "in": "query" + }, + { + "type": "string", + "name": "bank", + "in": "query" + }, + { + "type": "string", + "name": "contact", + "in": "query" + }, + { + "type": "string", + "name": "detailAddress", + "in": "query" + }, + { + "type": "string", + "name": "email", + "in": "query" + }, + { + "type": "integer", + "name": "fileId", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "string", + "name": "industry", + "in": "query" + }, + { + "type": "string", + "name": "name", + "in": "query" + }, + { + "type": "string", + "name": "number", + "in": "query" + }, + { + "type": "string", + "name": "phone", + "in": "query" + }, + { + "type": "integer", + "name": "responsiblePersonId", + "in": "query" + }, + { + "type": "integer", + "name": "status", + "in": "query" + }, + { + "type": "string", + "name": "supplierType", + "in": "query" + }, + { + "type": "string", + "name": "url", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏌ヨ鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/s/getSupplierList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Supplier" + ], + "summary": "鍒嗛〉鑾峰彇Supplier鍒楄〃", + "parameters": [ + { + "type": "string", + "name": "account", + "in": "query" + }, + { + "type": "string", + "name": "accountName", + "in": "query" + }, + { + "type": "string", + "name": "bank", + "in": "query" + }, + { + "type": "string", + "name": "contact", + "in": "query" + }, + { + "type": "string", + "name": "detailAddress", + "in": "query" + }, + { + "type": "string", + "name": "email", + "in": "query" + }, + { + "type": "string", + "name": "endCreatedAt", + "in": "query" + }, + { + "type": "integer", + "name": "fileId", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "string", + "name": "industry", + "in": "query" + }, + { + "type": "string", + "description": "鍏抽敭瀛�", + "name": "keyword", + "in": "query" + }, + { + "type": "string", + "name": "name", + "in": "query" + }, + { + "type": "string", + "name": "number", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "type": "string", + "name": "phone", + "in": "query" + }, + { + "type": "integer", + "name": "responsiblePersonId", + "in": "query" + }, + { + "type": "string", + "name": "startCreatedAt", + "in": "query" + }, + { + "type": "integer", + "name": "status", + "in": "query" + }, + { + "type": "string", + "name": "supplierType", + "in": "query" + }, + { + "type": "string", + "name": "url", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/s/updateSupplier": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Supplier" + ], + "summary": "鏇存柊Supplier", + "parameters": [ + { + "description": "鏇存柊Supplier", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.Supplier" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/st/createSupplierType": { + "post": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SupplierType" + ], + "summary": "鍒涘缓SupplierType", + "parameters": [ + { + "description": "鍒涘缓SupplierType", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.SupplierType" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/st/deleteSupplierType": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SupplierType" + ], + "summary": "鍒犻櫎SupplierType", + "parameters": [ + { + "description": "鍒犻櫎SupplierType", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/test.SupplierType" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/st/deleteSupplierTypeByIds": { + "delete": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SupplierType" + ], + "summary": "鎵归噺鍒犻櫎SupplierType", + "parameters": [ + { + "description": "鎵归噺鍒犻櫎SupplierType", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.IdsReq" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鎵归噺鍒犻櫎鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/st/findSupplierType": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SupplierType" + ], + "summary": "鐢╥d鏌ヨSupplierType", + "parameters": [ + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "string", + "name": "name", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏌ヨ鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/st/getSupplierTypeList": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SupplierType" + ], + "summary": "鍒嗛〉鑾峰彇SupplierType鍒楄〃", + "parameters": [ + { + "type": "string", + "name": "endCreatedAt", + "in": "query" + }, + { + "type": "integer", + "description": "涓婚敭ID", + "name": "id", + "in": "query" + }, + { + "type": "string", + "description": "鍏抽敭瀛�", + "name": "keyword", + "in": "query" + }, + { + "type": "string", + "name": "name", + "in": "query" + }, + { + "type": "integer", + "description": "椤电爜", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "姣忛〉澶у皬", + "name": "pageSize", + "in": "query" + }, + { + "type": "string", + "name": "startCreatedAt", + "in": "query" + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鑾峰彇鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, + "/st/updateSupplierType": { + "put": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "SupplierType" + ], + "summary": "鏇存柊SupplierType", + "parameters": [ + { + "description": "鏇存柊SupplierType", + "name": "data", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.SupplierTypeList" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", + "schema": { + "type": "string" } } } @@ -6563,7 +6885,7 @@ } }, "email": { - "$ref": "#/definitions/github_com_flipped-aurora_gin-vue-admin_server_config.Email" + "$ref": "#/definitions/srm_config.Email" }, "excel": { "$ref": "#/definitions/config.Excel" @@ -6972,39 +7294,6 @@ } } }, - "github_com_flipped-aurora_gin-vue-admin_server_config.Email": { - "type": "object", - "properties": { - "from": { - "description": "鍙戜欢浜� 浣犺嚜宸辫鍙戦偖浠剁殑閭", - "type": "string" - }, - "host": { - "description": "鏈嶅姟鍣ㄥ湴鍧� 渚嬪 smtp.qq.com 璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚", - "type": "string" - }, - "is-ssl": { - "description": "鏄惁SSL 鏄惁寮�鍚疭SL", - "type": "boolean" - }, - "nickname": { - "description": "鏄电О 鍙戜欢浜烘樀绉� 閫氬父涓鸿嚜宸辩殑閭", - "type": "string" - }, - "port": { - "description": "绔彛 璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚 澶у涓� 465", - "type": "integer" - }, - "secret": { - "description": "瀵嗛挜 鐢ㄤ簬鐧诲綍鐨勫瘑閽� 鏈�濂戒笉瑕佺敤閭瀵嗙爜 鍘婚偖绠眘mtp鐢宠涓�涓敤浜庣櫥褰曠殑瀵嗛挜", - "type": "string" - }, - "to": { - "description": "鏀朵欢浜�:澶氫釜浠ヨ嫳鏂囬�楀彿鍒嗛殧 渚嬶細a@qq.com b@qq.com 姝e紡寮�鍙戜腑璇锋妸姝ら」鐩綔涓哄弬鏁颁娇鐢�", - "type": "string" - } - } - }, "request.AddMenuAuthorityInfo": { "type": "object", "properties": { @@ -7089,6 +7378,17 @@ "type": "array", "items": { "type": "integer" + } + } + } + }, + "request.IndustryList": { + "type": "object", + "properties": { + "industries": { + "type": "array", + "items": { + "$ref": "#/definitions/test.Industry" } } } @@ -7298,6 +7598,17 @@ }, "status": { "type": "integer" + } + } + }, + "request.SupplierTypeList": { + "type": "object", + "properties": { + "supplierTypes": { + "type": "array", + "items": { + "$ref": "#/definitions/test.SupplierType" + } } } }, @@ -7546,6 +7857,39 @@ "properties": { "user": { "$ref": "#/definitions/system.SysUser" + } + } + }, + "srm_config.Email": { + "type": "object", + "properties": { + "from": { + "description": "鍙戜欢浜� 浣犺嚜宸辫鍙戦偖浠剁殑閭", + "type": "string" + }, + "host": { + "description": "鏈嶅姟鍣ㄥ湴鍧� 渚嬪 smtp.qq.com 璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚", + "type": "string" + }, + "is-ssl": { + "description": "鏄惁SSL 鏄惁寮�鍚疭SL", + "type": "boolean" + }, + "nickname": { + "description": "鏄电О 鍙戜欢浜烘樀绉� 閫氬父涓鸿嚜宸辩殑閭", + "type": "string" + }, + "port": { + "description": "绔彛 璇峰墠寰�QQ鎴栬�呬綘瑕佸彂閭欢鐨勯偖绠辨煡鐪嬪叾smtp鍗忚 澶у涓� 465", + "type": "integer" + }, + "secret": { + "description": "瀵嗛挜 鐢ㄤ簬鐧诲綍鐨勫瘑閽� 鏈�濂戒笉瑕佺敤閭瀵嗙爜 鍘婚偖绠眘mtp鐢宠涓�涓敤浜庣櫥褰曠殑瀵嗛挜", + "type": "string" + }, + "to": { + "description": "鏀朵欢浜�:澶氫釜浠ヨ嫳鏂囬�楀彿鍒嗛殧 渚嬶細a@qq.com b@qq.com 姝e紡寮�鍙戜腑璇锋妸姝ら」鐩綔涓哄弬鏁颁娇鐢�", + "type": "string" } } }, @@ -8180,6 +8524,45 @@ } } }, + "test.Product": { + "type": "object", + "properties": { + "deliveryTime": { + "type": "integer" + }, + "id": { + "description": "涓婚敭ID", + "type": "integer" + }, + "maximumStock": { + "type": "integer" + }, + "minimumStock": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "number": { + "type": "string" + }, + "productType": { + "type": "string" + }, + "purchasePrice": { + "type": "number" + }, + "remark": { + "type": "string" + }, + "shippingDuration": { + "type": "integer" + }, + "unit": { + "type": "string" + } + } + }, "test.Supplier": { "type": "object", "properties": { @@ -8201,8 +8584,8 @@ "email": { "type": "string" }, - "file": { - "type": "string" + "fileId": { + "type": "integer" }, "id": { "description": "涓婚敭ID", -- Gitblit v1.8.0