From 00c086f3158e8841ab495c62c3c41720e27456e0 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期二, 11 七月 2023 15:25:58 +0800 Subject: [PATCH] add --- docs/docs.go | 1147 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 1,146 insertions(+), 1 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index f8d51cf..1ef0d67 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1580,6 +1580,244 @@ } } }, + "/api/masterOrder/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "MasterOrder" + ], + "summary": "娣诲姞涓昏鍗�", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddMasterOrder" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/masterOrder/delete/{id}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "MasterOrder" + ], + "summary": "鍒犻櫎涓昏鍗�", + "parameters": [ + { + "type": "integer", + "description": "鏌ヨ鍙傛暟", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/masterOrder/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "MasterOrder" + ], + "summary": "涓昏鍗曞垪琛�", + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/contextx.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.MasterOrderResponse" + } + } + } + ] + } + } + } + } + }, + "/api/masterOrder/update": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "MasterOrder" + ], + "summary": "鏇存柊涓昏鍗�", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateMasterOrder" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/possibility/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "Possibility" + ], + "summary": "娣诲姞鍟嗘満鍙兘鎬�", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddPossibility" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/possibility/delete/{id}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "Possibility" + ], + "summary": "鍒犻櫎鍟嗘満鍙兘鎬�", + "parameters": [ + { + "type": "integer", + "description": "鏌ヨ鍙傛暟", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/possibility/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "Possibility" + ], + "summary": "鍟嗘満鍙兘鎬у垪琛�", + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/contextx.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.PossibilityResponse" + } + } + } + ] + } + } + } + } + }, + "/api/possibility/update": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "Possibility" + ], + "summary": "鏇存柊鍟嗘満鍙兘鎬�", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdatePossibilities" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, "/api/province/add": { "post": { "produces": [ @@ -1716,6 +1954,125 @@ "required": true, "schema": { "$ref": "#/definitions/request.UpdateProvinces" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/quotation/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "Quotation" + ], + "summary": "娣诲姞鎶ヤ环鍗�", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddQuotation" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/quotation/delete/{id}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "Quotation" + ], + "summary": "鍒犻櫎鎶ヤ环鍗�", + "parameters": [ + { + "type": "integer", + "description": "鏌ヨ鍙傛暟", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/quotation/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "Quotation" + ], + "summary": "鎶ヤ环鍗曞垪琛�", + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/contextx.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.QuotationResponse" + } + } + } + ] + } + } + } + } + }, + "/api/quotation/update": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "Quotation" + ], + "summary": "鏇存柊鎶ヤ环鍗�", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateQuotation" } } ], @@ -1972,6 +2329,125 @@ "required": true, "schema": { "$ref": "#/definitions/request.UpdateRegisteredCapitals" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/regularCustomers/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "RegularCustomers" + ], + "summary": "娣诲姞甯稿", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddRegularCustomers" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/regularCustomers/delete/{id}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "RegularCustomers" + ], + "summary": "鍒犻櫎甯稿", + "parameters": [ + { + "type": "integer", + "description": "鏌ヨ鍙傛暟", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/regularCustomers/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "RegularCustomers" + ], + "summary": "甯稿鍒楄〃", + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/contextx.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.RegularCustomersResponse" + } + } + } + ] + } + } + } + } + }, + "/api/regularCustomers/update": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "RegularCustomers" + ], + "summary": "鏇存柊甯稿", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateRegularCustomersList" } } ], @@ -2567,6 +3043,220 @@ "required": true, "schema": { "$ref": "#/definitions/request.UpdateSalesSourcesList" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/status/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "Status" + ], + "summary": "娣诲姞鐘舵��", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddStatus" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/status/delete/{id}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "Status" + ], + "summary": "鍒犻櫎鐘舵��", + "parameters": [ + { + "type": "integer", + "description": "鏌ヨ鍙傛暟", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/status/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "Status" + ], + "summary": "鐘舵�佸垪琛�", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/status/update": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "Status" + ], + "summary": "鏇存柊鐘舵��", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateStatusList" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/subOrder/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "SubOrder" + ], + "summary": "娣诲姞瀛愯鍗�", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddSubOrder" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/subOrder/delete/{id}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "SubOrder" + ], + "summary": "鍒犻櫎瀛愯鍗�", + "parameters": [ + { + "type": "integer", + "description": "鏌ヨ鍙傛暟", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/subOrder/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "SubOrder" + ], + "summary": "鑾峰彇瀛愯鍗曞垪琛�", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/subOrder/update": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "SubOrder" + ], + "summary": "鏇存柊瀛愯鍗�", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateSubOrder" } } ], @@ -3325,6 +4015,69 @@ } } }, + "model.MasterOrder": { + "type": "object", + "properties": { + "client_id": { + "type": "integer" + }, + "end_time": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "member_id": { + "type": "integer" + }, + "money": { + "type": "number" + }, + "number": { + "type": "string" + }, + "start_time": { + "type": "string" + } + } + }, + "model.Possibility": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "model.Product": { + "type": "object", + "properties": { + "amount": { + "type": "integer" + }, + "desc": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "number": { + "type": "string" + }, + "price": { + "type": "number" + }, + "total": { + "type": "number" + } + } + }, "model.Province": { "type": "object", "properties": { @@ -3342,6 +4095,50 @@ } } }, + "model.Quotation": { + "type": "object", + "properties": { + "client": { + "$ref": "#/definitions/model.Client" + }, + "client_id": { + "type": "integer" + }, + "conditions": { + "type": "string" + }, + "contact": { + "$ref": "#/definitions/model.Contact" + }, + "contact_id": { + "type": "integer" + }, + "file": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "member_id": { + "type": "integer" + }, + "number": { + "type": "string" + }, + "quotation_status_id": { + "type": "integer" + }, + "sale_chance": { + "$ref": "#/definitions/model.SaleChance" + }, + "sale_chance_id": { + "type": "integer" + }, + "validity_date": { + "type": "string" + } + } + }, "model.Region": { "type": "object", "properties": { @@ -3354,6 +4151,17 @@ } }, "model.RegisteredCapital": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "model.RegularCustomers": { "type": "object", "properties": { "id": { @@ -3436,7 +4244,7 @@ "pain_points": { "type": "string" }, - "possibilities": { + "possibilities_id": { "type": "integer" }, "process": { @@ -3909,11 +4717,77 @@ } } }, + "request.AddMasterOrder": { + "type": "object", + "properties": { + "client_id": { + "type": "integer" + }, + "end_time": { + "type": "string" + }, + "member_id": { + "type": "integer" + }, + "money": { + "type": "string" + }, + "number": { + "type": "string" + }, + "start_time": { + "type": "string" + } + } + }, + "request.AddPossibility": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + }, "request.AddProvince": { "type": "object", "properties": { "name": { "description": "鐪佷唤鍚嶇О", + "type": "string" + } + } + }, + "request.AddQuotation": { + "type": "object", + "properties": { + "client_id": { + "type": "integer" + }, + "conditions": { + "type": "string" + }, + "contact_id": { + "type": "integer" + }, + "file": { + "type": "string" + }, + "member_id": { + "type": "integer" + }, + "number": { + "type": "string" + }, + "quotation_status_id": { + "type": "integer" + }, + "sale_chance_id": { + "type": "integer" + }, + "validity_date": { "type": "string" } } @@ -3928,6 +4802,17 @@ } }, "request.AddRegisteredCapital": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + }, + "request.AddRegularCustomers": { "type": "object", "required": [ "name" @@ -4115,6 +5000,25 @@ "properties": { "name": { "type": "string" + } + } + }, + "request.AddStatus": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + }, + "request.AddSubOrder": { + "type": "object", + "properties": { + "subOrder": { + "$ref": "#/definitions/request.SubOrder" } } }, @@ -4402,6 +5306,29 @@ "type": "array", "items": { "type": "integer" + } + } + } + }, + "request.SubOrder": { + "type": "object", + "properties": { + "clientId": { + "type": "integer" + }, + "masterOrderId": { + "type": "integer" + }, + "memberId": { + "type": "integer" + }, + "number": { + "type": "string" + }, + "product": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" } } } @@ -4820,6 +5747,61 @@ } } }, + "request.UpdateMasterOrder": { + "type": "object", + "properties": { + "client_id": { + "type": "integer" + }, + "end_time": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "member_id": { + "type": "integer" + }, + "money": { + "type": "string" + }, + "number": { + "type": "string" + }, + "start_time": { + "type": "string" + } + } + }, + "request.UpdatePossibilities": { + "type": "object", + "required": [ + "possibilities" + ], + "properties": { + "possibilities": { + "type": "array", + "items": { + "$ref": "#/definitions/request.UpdatePossibility" + } + } + } + }, + "request.UpdatePossibility": { + "type": "object", + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, "request.UpdateProvince": { "type": "object", "properties": { @@ -4842,6 +5824,41 @@ "items": { "$ref": "#/definitions/request.UpdateProvince" } + } + } + }, + "request.UpdateQuotation": { + "type": "object", + "properties": { + "client_id": { + "type": "integer" + }, + "conditions": { + "type": "string" + }, + "contact_id": { + "type": "integer" + }, + "file": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "member_id": { + "type": "integer" + }, + "number": { + "type": "string" + }, + "quotation_status_id": { + "type": "integer" + }, + "sale_chance_id": { + "type": "integer" + }, + "validity_date": { + "type": "string" } } }, @@ -4892,6 +5909,35 @@ "type": "array", "items": { "$ref": "#/definitions/request.UpdateRegisteredCapital" + } + } + } + }, + "request.UpdateRegularCustomers": { + "type": "object", + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "request.UpdateRegularCustomersList": { + "type": "object", + "required": [ + "regularCustomers" + ], + "properties": { + "regularCustomers": { + "type": "array", + "items": { + "$ref": "#/definitions/request.UpdateRegularCustomers" } } } @@ -5136,6 +6182,61 @@ } } }, + "request.UpdateStatus": { + "type": "object", + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "request.UpdateStatusList": { + "type": "object", + "required": [ + "list" + ], + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/request.UpdateStatus" + } + } + } + }, + "request.UpdateSubOrder": { + "type": "object", + "properties": { + "clientId": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "masterOrderId": { + "type": "integer" + }, + "memberId": { + "type": "integer" + }, + "number": { + "type": "string" + }, + "product": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } + } + } + }, "response.CityResponse": { "type": "object", "properties": { @@ -5282,6 +6383,17 @@ } } }, + "response.MasterOrderResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/model.MasterOrder" + } + } + } + }, "response.PageResult": { "type": "object", "properties": { @@ -5297,6 +6409,17 @@ } } }, + "response.PossibilityResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Possibility" + } + } + } + }, "response.ProvinceResponse": { "type": "object", "properties": { @@ -5308,6 +6431,17 @@ } } }, + "response.QuotationResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Quotation" + } + } + } + }, "response.RegisteredCapitalResponse": { "type": "object", "properties": { @@ -5319,6 +6453,17 @@ } } }, + "response.RegularCustomersResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/model.RegularCustomers" + } + } + } + }, "response.SaleChanceResponse": { "type": "object", "properties": { -- Gitblit v1.8.0