From 50d0889137ea0dcce7d414607119a04dd730196f Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期五, 25 八月 2023 16:02:24 +0800 Subject: [PATCH] fix --- api/v1/test/industry.go | 12 api/v1/test/supplier.go | 14 config.yaml | 2 api/v1/test/supplier_type.go | 12 docs/swagger.yaml | 1624 ++++++------ api/v1/test/contract.go | 14 docs/docs.go | 2666 +++++++++++----------- docs/swagger.json | 2666 +++++++++++----------- 8 files changed, 3,505 insertions(+), 3,505 deletions(-) diff --git a/api/v1/test/contract.go b/api/v1/test/contract.go index eccd62c..886bab3 100644 --- a/api/v1/test/contract.go +++ b/api/v1/test/contract.go @@ -25,7 +25,7 @@ // @Param file formData file true "涓婁紶鏂囦欢" // @Param name formData string true "鏂囦欢鍚嶇О" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}" -// @Router /api/con/createContract [post] +// @Router /con/createContract [post] func (conApi *ContractApi) CreateContract(c *gin.Context) { name := c.Param("name") file, err := c.FormFile("file") @@ -61,7 +61,7 @@ // @Produce application/json // @Param data body test.Contract true "鍒犻櫎Contract" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鍒犻櫎鎴愬姛"}" -// @Router /api/con/deleteContract [delete] +// @Router /con/deleteContract [delete] func (conApi *ContractApi) DeleteContract(c *gin.Context) { var con test.Contract err := c.ShouldBindJSON(&con) @@ -85,7 +85,7 @@ // @Produce application/json // @Param data body request.IdsReq true "鎵归噺鍒犻櫎Contract" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鎵归噺鍒犻櫎鎴愬姛"}" -// @Router /api/con/deleteContractByIds [delete] +// @Router /con/deleteContractByIds [delete] func (conApi *ContractApi) DeleteContractByIds(c *gin.Context) { var IDS request.IdsReq err := c.ShouldBindJSON(&IDS) @@ -109,7 +109,7 @@ // @Produce application/json // @Param data body test.Contract true "鏇存柊Contract" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鏇存柊鎴愬姛"}" -// @Router /api/con/updateContract [put] +// @Router /con/updateContract [put] func (conApi *ContractApi) UpdateContract(c *gin.Context) { var con test.Contract err := c.ShouldBindJSON(&con) @@ -133,7 +133,7 @@ // @Produce application/json // @Param data query test.Contract true "鐢╥d鏌ヨContract" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鏌ヨ鎴愬姛"}" -// @Router /api/con/findContract [get] +// @Router /con/findContract [get] func (conApi *ContractApi) FindContract(c *gin.Context) { var con test.Contract err := c.ShouldBindQuery(&con) @@ -157,7 +157,7 @@ // @Produce application/json // @Param data query testReq.ContractSearch true "鍒嗛〉鑾峰彇Contract鍒楄〃" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}" -// @Router /api/con/getContractList [get] +// @Router /con/getContractList [get] func (conApi *ContractApi) GetContractList(c *gin.Context) { var pageInfo testReq.ContractSearch err := c.ShouldBindQuery(&pageInfo) @@ -186,7 +186,7 @@ // @Produce application/json // @Param data query testReq.ContractSearch true "棰勮Contract" // @Success 200 {string} string "{"success":true,"data":{},"msg":"棰勮鎴愬姛"}" -// @Router /api/con/previewContract [get] +// @Router /con/previewContract [get] func (conApi *ContractApi) PreviewContract(c *gin.Context) { var pageInfo testReq.ContractSearch err := c.ShouldBindQuery(&pageInfo) diff --git a/api/v1/test/industry.go b/api/v1/test/industry.go index 8e97898..6ff455e 100644 --- a/api/v1/test/industry.go +++ b/api/v1/test/industry.go @@ -24,7 +24,7 @@ // @Produce application/json // @Param data body test.Industry true "鍒涘缓Industry" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}" -// @Router /api/i/createIndustry [post] +// @Router /i/createIndustry [post] func (iApi *IndustryApi) CreateIndustry(c *gin.Context) { var i test.Industry err := c.ShouldBindJSON(&i) @@ -48,7 +48,7 @@ // @Produce application/json // @Param data body test.Industry true "鍒犻櫎Industry" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鍒犻櫎鎴愬姛"}" -// @Router /api/i/deleteIndustry [delete] +// @Router /i/deleteIndustry [delete] func (iApi *IndustryApi) DeleteIndustry(c *gin.Context) { var i test.Industry err := c.ShouldBindJSON(&i) @@ -72,7 +72,7 @@ // @Produce application/json // @Param data body request.IdsReq true "鎵归噺鍒犻櫎Industry" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鎵归噺鍒犻櫎鎴愬姛"}" -// @Router /api/i/deleteIndustryByIds [delete] +// @Router /i/deleteIndustryByIds [delete] func (iApi *IndustryApi) DeleteIndustryByIds(c *gin.Context) { var IDS request.IdsReq err := c.ShouldBindJSON(&IDS) @@ -96,7 +96,7 @@ // @Produce application/json // @Param data body test.Industry true "鏇存柊Industry" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鏇存柊鎴愬姛"}" -// @Router /api/i/updateIndustry [put] +// @Router /i/updateIndustry [put] func (iApi *IndustryApi) UpdateIndustry(c *gin.Context) { var i test.Industry err := c.ShouldBindJSON(&i) @@ -120,7 +120,7 @@ // @Produce application/json // @Param data query test.Industry true "鐢╥d鏌ヨIndustry" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鏌ヨ鎴愬姛"}" -// @Router /api/i/findIndustry [get] +// @Router /i/findIndustry [get] func (iApi *IndustryApi) FindIndustry(c *gin.Context) { var i test.Industry err := c.ShouldBindQuery(&i) @@ -144,7 +144,7 @@ // @Produce application/json // @Param data query testReq.IndustrySearch true "鍒嗛〉鑾峰彇Industry鍒楄〃" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}" -// @Router /api/i/getIndustryList [get] +// @Router /i/getIndustryList [get] func (iApi *IndustryApi) GetIndustryList(c *gin.Context) { var pageInfo testReq.IndustrySearch err := c.ShouldBindQuery(&pageInfo) diff --git a/api/v1/test/supplier.go b/api/v1/test/supplier.go index 6884436..27943a5 100644 --- a/api/v1/test/supplier.go +++ b/api/v1/test/supplier.go @@ -25,7 +25,7 @@ // @Produce application/json // @Param data body test.Supplier true "鍒涘缓Supplier" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}" -// @Router /api/s/createSupplier [post] +// @Router /s/createSupplier [post] func (sApi *SupplierApi) CreateSupplier(c *gin.Context) { var s test.Supplier err := c.ShouldBindJSON(&s) @@ -57,7 +57,7 @@ // @Produce application/json // @Param data body test.Supplier true "鍒犻櫎Supplier" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鍒犻櫎鎴愬姛"}" -// @Router /api/s/deleteSupplier [delete] +// @Router /s/deleteSupplier [delete] func (sApi *SupplierApi) DeleteSupplier(c *gin.Context) { var s test.Supplier err := c.ShouldBindJSON(&s) @@ -81,7 +81,7 @@ // @Produce application/json // @Param data body request.IdsReq true "鎵归噺鍒犻櫎Supplier" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鎵归噺鍒犻櫎鎴愬姛"}" -// @Router /api/s/deleteSupplierByIds [delete] +// @Router /s/deleteSupplierByIds [delete] func (sApi *SupplierApi) DeleteSupplierByIds(c *gin.Context) { var IDS request.IdsReq err := c.ShouldBindJSON(&IDS) @@ -105,7 +105,7 @@ // @Produce application/json // @Param data body test.Supplier true "鏇存柊Supplier" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鏇存柊鎴愬姛"}" -// @Router /api/s/updateSupplier [put] +// @Router /s/updateSupplier [put] func (sApi *SupplierApi) UpdateSupplier(c *gin.Context) { var s test.Supplier err := c.ShouldBindJSON(&s) @@ -137,7 +137,7 @@ // @Produce application/json // @Param data query test.Supplier true "鐢╥d鏌ヨSupplier" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鏌ヨ鎴愬姛"}" -// @Router /api/s/findSupplier [get] +// @Router /s/findSupplier [get] func (sApi *SupplierApi) FindSupplier(c *gin.Context) { var s test.Supplier err := c.ShouldBindQuery(&s) @@ -161,7 +161,7 @@ // @Produce application/json // @Param data query testReq.SupplierSearch true "鍒嗛〉鑾峰彇Supplier鍒楄〃" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}" -// @Router /api/s/getSupplierList [get] +// @Router /s/getSupplierList [get] func (sApi *SupplierApi) GetSupplierList(c *gin.Context) { var pageInfo testReq.SupplierSearch err := c.ShouldBindQuery(&pageInfo) @@ -190,7 +190,7 @@ // @Produce application/json // @Param data body testReq.SupplierStatus true "淇敼Supplier鐘舵��" // @Success 200 {string} string "{"success":true,"data":{},"msg":"淇敼鎴愬姛"}" -// @Router /api/s/changeSupplierStatus [post] +// @Router /s/changeSupplierStatus [post] func (sApi *SupplierApi) ChangeSupplierStatus(c *gin.Context) { var params testReq.SupplierStatus err := c.ShouldBindJSON(¶ms) diff --git a/api/v1/test/supplier_type.go b/api/v1/test/supplier_type.go index 7d479b1..9cd5b4d 100644 --- a/api/v1/test/supplier_type.go +++ b/api/v1/test/supplier_type.go @@ -24,7 +24,7 @@ // @Produce application/json // @Param data body test.SupplierType true "鍒涘缓SupplierType" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}" -// @Router /api/st/createSupplierType [post] +// @Router /st/createSupplierType [post] func (stApi *SupplierTypeApi) CreateSupplierType(c *gin.Context) { var st test.SupplierType err := c.ShouldBindJSON(&st) @@ -48,7 +48,7 @@ // @Produce application/json // @Param data body test.SupplierType true "鍒犻櫎SupplierType" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鍒犻櫎鎴愬姛"}" -// @Router /api/st/deleteSupplierType [delete] +// @Router /st/deleteSupplierType [delete] func (stApi *SupplierTypeApi) DeleteSupplierType(c *gin.Context) { var st test.SupplierType err := c.ShouldBindJSON(&st) @@ -72,7 +72,7 @@ // @Produce application/json // @Param data body request.IdsReq true "鎵归噺鍒犻櫎SupplierType" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鎵归噺鍒犻櫎鎴愬姛"}" -// @Router /api/st/deleteSupplierTypeByIds [delete] +// @Router /st/deleteSupplierTypeByIds [delete] func (stApi *SupplierTypeApi) DeleteSupplierTypeByIds(c *gin.Context) { var IDS request.IdsReq err := c.ShouldBindJSON(&IDS) @@ -96,7 +96,7 @@ // @Produce application/json // @Param data body test.SupplierType true "鏇存柊SupplierType" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鏇存柊鎴愬姛"}" -// @Router /api/st/updateSupplierType [put] +// @Router /st/updateSupplierType [put] func (stApi *SupplierTypeApi) UpdateSupplierType(c *gin.Context) { var st test.SupplierType err := c.ShouldBindJSON(&st) @@ -120,7 +120,7 @@ // @Produce application/json // @Param data query test.SupplierType true "鐢╥d鏌ヨSupplierType" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鏌ヨ鎴愬姛"}" -// @Router /api/st/findSupplierType [get] +// @Router /st/findSupplierType [get] func (stApi *SupplierTypeApi) FindSupplierType(c *gin.Context) { var st test.SupplierType err := c.ShouldBindQuery(&st) @@ -144,7 +144,7 @@ // @Produce application/json // @Param data query testReq.SupplierTypeSearch true "鍒嗛〉鑾峰彇SupplierType鍒楄〃" // @Success 200 {string} string "{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}" -// @Router /api/st/getSupplierTypeList [get] +// @Router /st/getSupplierTypeList [get] func (stApi *SupplierTypeApi) GetSupplierTypeList(c *gin.Context) { var pageInfo testReq.SupplierTypeSearch err := c.ShouldBindQuery(&pageInfo) diff --git a/config.yaml b/config.yaml index f3af31c..7ce8f58 100644 --- a/config.yaml +++ b/config.yaml @@ -176,7 +176,7 @@ env: public db-type: mysql oss-type: local - router-prefix: "api" + router-prefix: "/api" addr: 8889 iplimit-count: 15000 iplimit-time: 3600 diff --git a/docs/docs.go b/docs/docs.go index 0fdcfa3..c4ef0fd 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,381 @@ } } }, + "/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": "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/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 +2792,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/test.Industry" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, "/init/checkdb": { "post": { "produces": [ @@ -4326,6 +3628,704 @@ } } }, + "/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": "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" + } + } + } + } + }, + "/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" + } + } + } + } + }, + "/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/test.SupplierType" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, "/sysDictionary/createSysDictionary": { "post": { "security": [ diff --git a/docs/swagger.json b/docs/swagger.json index 8fb82dc..435228f 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -7,381 +7,6 @@ "version": "0.0.1" }, "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": [ @@ -706,964 +331,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" } } } @@ -3104,6 +1771,381 @@ } } }, + "/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": "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/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": [ @@ -3741,6 +2783,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/test.Industry" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, "/init/checkdb": { "post": { "produces": [ @@ -4317,6 +3619,704 @@ } } }, + "/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": "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" + } + } + } + } + }, + "/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" + } + } + } + } + }, + "/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/test.SupplierType" + } + } + ], + "responses": { + "200": { + "description": "{\"success\":true,\"data\":{},\"msg\":\"鏇存柊鎴愬姛\"}", + "schema": { + "type": "string" + } + } + } + } + }, "/sysDictionary/createSysDictionary": { "post": { "security": [ diff --git a/docs/swagger.yaml b/docs/swagger.yaml index e0bc5f0..99c85eb 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -1545,237 +1545,6 @@ title: Swagger Example API version: 0.0.1 paths: - /api/con/createContract: - post: - consumes: - - multipart/form-data - parameters: - - description: 涓婁紶鏂囦欢 - in: formData - name: file - required: true - type: file - - description: 鏂囦欢鍚嶇О - in: formData - name: name - required: true - type: string - produces: - - multipart/form-data - responses: - "200": - description: '{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鍒涘缓Contract - tags: - - Contract - /api/con/deleteContract: - delete: - consumes: - - application/json - parameters: - - description: 鍒犻櫎Contract - in: body - name: data - required: true - schema: - $ref: '#/definitions/test.Contract' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鍒犻櫎鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鍒犻櫎Contract - tags: - - Contract - /api/con/deleteContractByIds: - delete: - consumes: - - application/json - parameters: - - description: 鎵归噺鍒犻櫎Contract - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.IdsReq' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鎵归噺鍒犻櫎鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鎵归噺鍒犻櫎Contract - tags: - - Contract - /api/con/findContract: - get: - consumes: - - application/json - parameters: - - collectionFormat: csv - in: query - items: - type: integer - name: fileContent - type: array - - in: query - name: fileName - type: string - - description: 涓婚敭ID - in: query - name: id - type: integer - - in: query - name: supplierID - type: integer - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鏌ヨ鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鐢╥d鏌ヨContract - tags: - - Contract - /api/con/getContractList: - get: - consumes: - - application/json - parameters: - - in: query - name: endCreatedAt - type: string - - collectionFormat: csv - in: query - items: - type: integer - name: fileContent - type: array - - in: query - name: fileName - type: string - - description: 涓婚敭ID - in: query - name: id - type: integer - - description: 鍏抽敭瀛� - in: query - name: keyword - type: string - - description: 椤电爜 - in: query - name: page - type: integer - - description: 姣忛〉澶у皬 - in: query - name: pageSize - type: integer - - in: query - name: startCreatedAt - type: string - - in: query - name: supplierID - type: integer - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鍒嗛〉鑾峰彇Contract鍒楄〃 - tags: - - Contract - /api/con/previewContract: - get: - consumes: - - application/json - parameters: - - in: query - name: endCreatedAt - type: string - - collectionFormat: csv - in: query - items: - type: integer - name: fileContent - type: array - - in: query - name: fileName - type: string - - description: 涓婚敭ID - in: query - name: id - type: integer - - description: 鍏抽敭瀛� - in: query - name: keyword - type: string - - description: 椤电爜 - in: query - name: page - type: integer - - description: 姣忛〉澶у皬 - in: query - name: pageSize - type: integer - - in: query - name: startCreatedAt - type: string - - in: query - name: supplierID - type: integer - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"棰勮鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 棰勮Contract - tags: - - Contract - /api/con/updateContract: - put: - consumes: - - application/json - parameters: - - description: 鏇存柊Contract - in: body - name: data - required: true - schema: - $ref: '#/definitions/test.Contract' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鏇存柊鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鏇存柊Contract - tags: - - Contract /api/createApi: post: consumes: @@ -1960,587 +1729,6 @@ summary: 鍒嗛〉鑾峰彇API鍒楄〃 tags: - SysApi - /api/i/createIndustry: - post: - consumes: - - application/json - parameters: - - description: 鍒涘缓Industry - in: body - name: data - required: true - schema: - $ref: '#/definitions/test.Industry' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鍒涘缓Industry - tags: - - Industry - /api/i/deleteIndustry: - delete: - consumes: - - application/json - parameters: - - description: 鍒犻櫎Industry - in: body - name: data - required: true - schema: - $ref: '#/definitions/test.Industry' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鍒犻櫎鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鍒犻櫎Industry - tags: - - Industry - /api/i/deleteIndustryByIds: - delete: - consumes: - - application/json - parameters: - - description: 鎵归噺鍒犻櫎Industry - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.IdsReq' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鎵归噺鍒犻櫎鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鎵归噺鍒犻櫎Industry - tags: - - Industry - /api/i/findIndustry: - get: - consumes: - - application/json - parameters: - - description: 涓婚敭ID - in: query - name: id - type: integer - - in: query - name: name - type: string - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鏌ヨ鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鐢╥d鏌ヨIndustry - tags: - - Industry - /api/i/getIndustryList: - get: - consumes: - - application/json - parameters: - - in: query - name: endCreatedAt - type: string - - description: 涓婚敭ID - in: query - name: id - type: integer - - description: 鍏抽敭瀛� - in: query - name: keyword - type: string - - in: query - name: name - type: string - - description: 椤电爜 - in: query - name: page - type: integer - - description: 姣忛〉澶у皬 - in: query - name: pageSize - type: integer - - in: query - name: startCreatedAt - type: string - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鍒嗛〉鑾峰彇Industry鍒楄〃 - tags: - - Industry - /api/i/updateIndustry: - put: - consumes: - - application/json - parameters: - - description: 鏇存柊Industry - in: body - name: data - required: true - schema: - $ref: '#/definitions/test.Industry' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鏇存柊鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鏇存柊Industry - tags: - - Industry - /api/s/changeSupplierStatus: - post: - consumes: - - application/json - parameters: - - description: 淇敼Supplier鐘舵�� - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.SupplierStatus' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"淇敼鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 淇敼Supplier鐘舵�� - tags: - - Supplier - /api/s/createSupplier: - post: - consumes: - - application/json - parameters: - - description: 鍒涘缓Supplier - in: body - name: data - required: true - schema: - $ref: '#/definitions/test.Supplier' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鍒涘缓Supplier - tags: - - Supplier - /api/s/deleteSupplier: - delete: - consumes: - - application/json - parameters: - - description: 鍒犻櫎Supplier - in: body - name: data - required: true - schema: - $ref: '#/definitions/test.Supplier' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鍒犻櫎鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鍒犻櫎Supplier - tags: - - Supplier - /api/s/deleteSupplierByIds: - delete: - consumes: - - application/json - parameters: - - description: 鎵归噺鍒犻櫎Supplier - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.IdsReq' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鎵归噺鍒犻櫎鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鎵归噺鍒犻櫎Supplier - tags: - - Supplier - /api/s/findSupplier: - get: - consumes: - - application/json - parameters: - - in: query - name: account - type: string - - in: query - name: accountName - type: string - - in: query - name: bank - type: string - - in: query - name: contact - type: string - - in: query - name: detailAddress - type: string - - in: query - name: email - type: string - - in: query - name: file - type: string - - description: 涓婚敭ID - in: query - name: id - type: integer - - in: query - name: industry - type: string - - in: query - name: name - type: string - - in: query - name: number - type: string - - in: query - name: phone - type: string - - in: query - name: responsiblePersonId - type: integer - - in: query - name: status - type: integer - - in: query - name: supplierType - type: string - - in: query - name: url - type: string - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鏌ヨ鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鐢╥d鏌ヨSupplier - tags: - - Supplier - /api/s/getSupplierList: - get: - consumes: - - application/json - parameters: - - in: query - name: account - type: string - - in: query - name: accountName - type: string - - in: query - name: bank - type: string - - in: query - name: contact - type: string - - in: query - name: detailAddress - type: string - - in: query - name: email - type: string - - in: query - name: endCreatedAt - type: string - - in: query - name: file - type: string - - description: 涓婚敭ID - in: query - name: id - type: integer - - in: query - name: industry - type: string - - description: 鍏抽敭瀛� - in: query - name: keyword - type: string - - in: query - name: name - type: string - - in: query - name: number - type: string - - description: 椤电爜 - in: query - name: page - type: integer - - description: 姣忛〉澶у皬 - in: query - name: pageSize - type: integer - - in: query - name: phone - type: string - - in: query - name: responsiblePersonId - type: integer - - in: query - name: startCreatedAt - type: string - - in: query - name: status - type: integer - - in: query - name: supplierType - type: string - - in: query - name: url - type: string - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鍒嗛〉鑾峰彇Supplier鍒楄〃 - tags: - - Supplier - /api/s/updateSupplier: - put: - consumes: - - application/json - parameters: - - description: 鏇存柊Supplier - in: body - name: data - required: true - schema: - $ref: '#/definitions/test.Supplier' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鏇存柊鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鏇存柊Supplier - tags: - - Supplier - /api/st/createSupplierType: - post: - consumes: - - application/json - parameters: - - description: 鍒涘缓SupplierType - in: body - name: data - required: true - schema: - $ref: '#/definitions/test.SupplierType' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鍒涘缓SupplierType - tags: - - SupplierType - /api/st/deleteSupplierType: - delete: - consumes: - - application/json - parameters: - - description: 鍒犻櫎SupplierType - in: body - name: data - required: true - schema: - $ref: '#/definitions/test.SupplierType' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鍒犻櫎鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鍒犻櫎SupplierType - tags: - - SupplierType - /api/st/deleteSupplierTypeByIds: - delete: - consumes: - - application/json - parameters: - - description: 鎵归噺鍒犻櫎SupplierType - in: body - name: data - required: true - schema: - $ref: '#/definitions/request.IdsReq' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鎵归噺鍒犻櫎鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鎵归噺鍒犻櫎SupplierType - tags: - - SupplierType - /api/st/findSupplierType: - get: - consumes: - - application/json - parameters: - - description: 涓婚敭ID - in: query - name: id - type: integer - - in: query - name: name - type: string - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鏌ヨ鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鐢╥d鏌ヨSupplierType - tags: - - SupplierType - /api/st/getSupplierTypeList: - get: - consumes: - - application/json - parameters: - - in: query - name: endCreatedAt - type: string - - description: 涓婚敭ID - in: query - name: id - type: integer - - description: 鍏抽敭瀛� - in: query - name: keyword - type: string - - in: query - name: name - type: string - - description: 椤电爜 - in: query - name: page - type: integer - - description: 姣忛〉澶у皬 - in: query - name: pageSize - type: integer - - in: query - name: startCreatedAt - type: string - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鍒嗛〉鑾峰彇SupplierType鍒楄〃 - tags: - - SupplierType - /api/st/updateSupplierType: - put: - consumes: - - application/json - parameters: - - description: 鏇存柊SupplierType - in: body - name: data - required: true - schema: - $ref: '#/definitions/test.SupplierType' - produces: - - application/json - responses: - "200": - description: '{"success":true,"data":{},"msg":"鏇存柊鎴愬姛"}' - schema: - type: string - security: - - ApiKeyAuth: [] - summary: 鏇存柊SupplierType - tags: - - SupplierType /api/updateApi: post: consumes: @@ -3353,6 +2541,237 @@ summary: 鑾峰彇鏉冮檺鍒楄〃 tags: - Casbin + /con/createContract: + post: + consumes: + - multipart/form-data + parameters: + - description: 涓婁紶鏂囦欢 + in: formData + name: file + required: true + type: file + - description: 鏂囦欢鍚嶇О + in: formData + name: name + required: true + type: string + produces: + - multipart/form-data + responses: + "200": + description: '{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鍒涘缓Contract + tags: + - Contract + /con/deleteContract: + delete: + consumes: + - application/json + parameters: + - description: 鍒犻櫎Contract + in: body + name: data + required: true + schema: + $ref: '#/definitions/test.Contract' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鍒犻櫎鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鍒犻櫎Contract + tags: + - Contract + /con/deleteContractByIds: + delete: + consumes: + - application/json + parameters: + - description: 鎵归噺鍒犻櫎Contract + in: body + name: data + required: true + schema: + $ref: '#/definitions/request.IdsReq' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鎵归噺鍒犻櫎鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鎵归噺鍒犻櫎Contract + tags: + - Contract + /con/findContract: + get: + consumes: + - application/json + parameters: + - collectionFormat: csv + in: query + items: + type: integer + name: fileContent + type: array + - in: query + name: fileName + type: string + - description: 涓婚敭ID + in: query + name: id + type: integer + - in: query + name: supplierID + type: integer + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鏌ヨ鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鐢╥d鏌ヨContract + tags: + - Contract + /con/getContractList: + get: + consumes: + - application/json + parameters: + - in: query + name: endCreatedAt + type: string + - collectionFormat: csv + in: query + items: + type: integer + name: fileContent + type: array + - in: query + name: fileName + type: string + - description: 涓婚敭ID + in: query + name: id + type: integer + - description: 鍏抽敭瀛� + in: query + name: keyword + type: string + - description: 椤电爜 + in: query + name: page + type: integer + - description: 姣忛〉澶у皬 + in: query + name: pageSize + type: integer + - in: query + name: startCreatedAt + type: string + - in: query + name: supplierID + type: integer + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鍒嗛〉鑾峰彇Contract鍒楄〃 + tags: + - Contract + /con/previewContract: + get: + consumes: + - application/json + parameters: + - in: query + name: endCreatedAt + type: string + - collectionFormat: csv + in: query + items: + type: integer + name: fileContent + type: array + - in: query + name: fileName + type: string + - description: 涓婚敭ID + in: query + name: id + type: integer + - description: 鍏抽敭瀛� + in: query + name: keyword + type: string + - description: 椤电爜 + in: query + name: page + type: integer + - description: 姣忛〉澶у皬 + in: query + name: pageSize + type: integer + - in: query + name: startCreatedAt + type: string + - in: query + name: supplierID + type: integer + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"棰勮鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 棰勮Contract + tags: + - Contract + /con/updateContract: + put: + consumes: + - application/json + parameters: + - description: 鏇存柊Contract + in: body + name: data + required: true + schema: + $ref: '#/definitions/test.Contract' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鏇存柊鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鏇存柊Contract + tags: + - Contract /customer/customer: delete: consumes: @@ -3717,6 +3136,164 @@ summary: 涓婁紶鏂囦欢绀轰緥 tags: - ExaFileUploadAndDownload + /i/createIndustry: + post: + consumes: + - application/json + parameters: + - description: 鍒涘缓Industry + in: body + name: data + required: true + schema: + $ref: '#/definitions/test.Industry' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鍒涘缓Industry + tags: + - Industry + /i/deleteIndustry: + delete: + consumes: + - application/json + parameters: + - description: 鍒犻櫎Industry + in: body + name: data + required: true + schema: + $ref: '#/definitions/test.Industry' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鍒犻櫎鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鍒犻櫎Industry + tags: + - Industry + /i/deleteIndustryByIds: + delete: + consumes: + - application/json + parameters: + - description: 鎵归噺鍒犻櫎Industry + in: body + name: data + required: true + schema: + $ref: '#/definitions/request.IdsReq' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鎵归噺鍒犻櫎鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鎵归噺鍒犻櫎Industry + tags: + - Industry + /i/findIndustry: + get: + consumes: + - application/json + parameters: + - description: 涓婚敭ID + in: query + name: id + type: integer + - in: query + name: name + type: string + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鏌ヨ鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鐢╥d鏌ヨIndustry + tags: + - Industry + /i/getIndustryList: + get: + consumes: + - application/json + parameters: + - in: query + name: endCreatedAt + type: string + - description: 涓婚敭ID + in: query + name: id + type: integer + - description: 鍏抽敭瀛� + in: query + name: keyword + type: string + - in: query + name: name + type: string + - description: 椤电爜 + in: query + name: page + type: integer + - description: 姣忛〉澶у皬 + in: query + name: pageSize + type: integer + - in: query + name: startCreatedAt + type: string + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鍒嗛〉鑾峰彇Industry鍒楄〃 + tags: + - Industry + /i/updateIndustry: + put: + consumes: + - application/json + parameters: + - description: 鏇存柊Industry + in: body + name: data + required: true + schema: + $ref: '#/definitions/test.Industry' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鏇存柊鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鏇存柊Industry + tags: + - Industry /init/checkdb: post: produces: @@ -4041,6 +3618,429 @@ summary: 鏇存柊鑿滃崟 tags: - Menu + /s/changeSupplierStatus: + post: + consumes: + - application/json + parameters: + - description: 淇敼Supplier鐘舵�� + in: body + name: data + required: true + schema: + $ref: '#/definitions/request.SupplierStatus' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"淇敼鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 淇敼Supplier鐘舵�� + tags: + - Supplier + /s/createSupplier: + post: + consumes: + - application/json + parameters: + - description: 鍒涘缓Supplier + in: body + name: data + required: true + schema: + $ref: '#/definitions/test.Supplier' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鍒涘缓Supplier + tags: + - Supplier + /s/deleteSupplier: + delete: + consumes: + - application/json + parameters: + - description: 鍒犻櫎Supplier + in: body + name: data + required: true + schema: + $ref: '#/definitions/test.Supplier' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鍒犻櫎鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鍒犻櫎Supplier + tags: + - Supplier + /s/deleteSupplierByIds: + delete: + consumes: + - application/json + parameters: + - description: 鎵归噺鍒犻櫎Supplier + in: body + name: data + required: true + schema: + $ref: '#/definitions/request.IdsReq' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鎵归噺鍒犻櫎鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鎵归噺鍒犻櫎Supplier + tags: + - Supplier + /s/findSupplier: + get: + consumes: + - application/json + parameters: + - in: query + name: account + type: string + - in: query + name: accountName + type: string + - in: query + name: bank + type: string + - in: query + name: contact + type: string + - in: query + name: detailAddress + type: string + - in: query + name: email + type: string + - in: query + name: file + type: string + - description: 涓婚敭ID + in: query + name: id + type: integer + - in: query + name: industry + type: string + - in: query + name: name + type: string + - in: query + name: number + type: string + - in: query + name: phone + type: string + - in: query + name: responsiblePersonId + type: integer + - in: query + name: status + type: integer + - in: query + name: supplierType + type: string + - in: query + name: url + type: string + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鏌ヨ鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鐢╥d鏌ヨSupplier + tags: + - Supplier + /s/getSupplierList: + get: + consumes: + - application/json + parameters: + - in: query + name: account + type: string + - in: query + name: accountName + type: string + - in: query + name: bank + type: string + - in: query + name: contact + type: string + - in: query + name: detailAddress + type: string + - in: query + name: email + type: string + - in: query + name: endCreatedAt + type: string + - in: query + name: file + type: string + - description: 涓婚敭ID + in: query + name: id + type: integer + - in: query + name: industry + type: string + - description: 鍏抽敭瀛� + in: query + name: keyword + type: string + - in: query + name: name + type: string + - in: query + name: number + type: string + - description: 椤电爜 + in: query + name: page + type: integer + - description: 姣忛〉澶у皬 + in: query + name: pageSize + type: integer + - in: query + name: phone + type: string + - in: query + name: responsiblePersonId + type: integer + - in: query + name: startCreatedAt + type: string + - in: query + name: status + type: integer + - in: query + name: supplierType + type: string + - in: query + name: url + type: string + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鍒嗛〉鑾峰彇Supplier鍒楄〃 + tags: + - Supplier + /s/updateSupplier: + put: + consumes: + - application/json + parameters: + - description: 鏇存柊Supplier + in: body + name: data + required: true + schema: + $ref: '#/definitions/test.Supplier' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鏇存柊鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鏇存柊Supplier + tags: + - Supplier + /st/createSupplierType: + post: + consumes: + - application/json + parameters: + - description: 鍒涘缓SupplierType + in: body + name: data + required: true + schema: + $ref: '#/definitions/test.SupplierType' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鍒涘缓SupplierType + tags: + - SupplierType + /st/deleteSupplierType: + delete: + consumes: + - application/json + parameters: + - description: 鍒犻櫎SupplierType + in: body + name: data + required: true + schema: + $ref: '#/definitions/test.SupplierType' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鍒犻櫎鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鍒犻櫎SupplierType + tags: + - SupplierType + /st/deleteSupplierTypeByIds: + delete: + consumes: + - application/json + parameters: + - description: 鎵归噺鍒犻櫎SupplierType + in: body + name: data + required: true + schema: + $ref: '#/definitions/request.IdsReq' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鎵归噺鍒犻櫎鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鎵归噺鍒犻櫎SupplierType + tags: + - SupplierType + /st/findSupplierType: + get: + consumes: + - application/json + parameters: + - description: 涓婚敭ID + in: query + name: id + type: integer + - in: query + name: name + type: string + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鏌ヨ鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鐢╥d鏌ヨSupplierType + tags: + - SupplierType + /st/getSupplierTypeList: + get: + consumes: + - application/json + parameters: + - in: query + name: endCreatedAt + type: string + - description: 涓婚敭ID + in: query + name: id + type: integer + - description: 鍏抽敭瀛� + in: query + name: keyword + type: string + - in: query + name: name + type: string + - description: 椤电爜 + in: query + name: page + type: integer + - description: 姣忛〉澶у皬 + in: query + name: pageSize + type: integer + - in: query + name: startCreatedAt + type: string + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鍒嗛〉鑾峰彇SupplierType鍒楄〃 + tags: + - SupplierType + /st/updateSupplierType: + put: + consumes: + - application/json + parameters: + - description: 鏇存柊SupplierType + in: body + name: data + required: true + schema: + $ref: '#/definitions/test.SupplierType' + produces: + - application/json + responses: + "200": + description: '{"success":true,"data":{},"msg":"鏇存柊鎴愬姛"}' + schema: + type: string + security: + - ApiKeyAuth: [] + summary: 鏇存柊SupplierType + tags: + - SupplierType /sysDictionary/createSysDictionary: post: consumes: -- Gitblit v1.8.0