From a32c022b30a30982358464ba0f68aab0b2a103c2 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期三, 12 七月 2023 15:26:15 +0800 Subject: [PATCH] add --- docs/docs.go | 205 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 205 insertions(+), 0 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index d262056..e61468e 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -952,6 +952,125 @@ } } }, + "/api/contract/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "娣诲姞鍚堝悓", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddContract" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/contract/delete/{id}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "鍒犻櫎鍚堝悓", + "parameters": [ + { + "type": "integer", + "description": "鏌ヨ鍙傛暟", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/contract/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "鑾峰彇鍚堝悓鍒楄〃", + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/contextx.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.ContractResponse" + } + } + } + ] + } + } + } + } + }, + "/api/contract/update": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "Contract" + ], + "summary": "鏇存柊鍚堝悓", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateContract" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, "/api/country/add": { "post": { "produces": [ @@ -4272,6 +4391,32 @@ } } }, + "model.Contract": { + "type": "object", + "properties": { + "clientId": { + "type": "integer" + }, + "file": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "memberId": { + "type": "integer" + }, + "number": { + "type": "string" + }, + "quotationId": { + "type": "integer" + }, + "statusId": { + "type": "integer" + } + } + }, "model.Country": { "type": "object", "properties": { @@ -5135,6 +5280,29 @@ "wechat": { "description": "寰俊鍙�", "type": "string" + } + } + }, + "request.AddContract": { + "type": "object", + "properties": { + "client_id": { + "type": "integer" + }, + "file": { + "type": "string" + }, + "member_id": { + "type": "integer" + }, + "number": { + "type": "string" + }, + "quotation_id": { + "type": "integer" + }, + "status_id": { + "type": "integer" } } }, @@ -6254,6 +6422,32 @@ } } }, + "request.UpdateContract": { + "type": "object", + "properties": { + "client_id": { + "type": "integer" + }, + "file": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "member_id": { + "type": "integer" + }, + "number": { + "type": "string" + }, + "quotation_id": { + "type": "integer" + }, + "status_id": { + "type": "integer" + } + } + }, "request.UpdateCountry": { "type": "object", "properties": { @@ -6986,6 +7180,17 @@ } } }, + "response.ContractResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Contract" + } + } + } + }, "response.CountryResponse": { "type": "object", "properties": { -- Gitblit v1.8.0