From ac5468a5ce91c4a9ba7c9610c6bef78e24bf6dce Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期一, 10 七月 2023 11:14:18 +0800 Subject: [PATCH] add --- docs/docs.go | 364 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 363 insertions(+), 1 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index f8d51cf..e2eca69 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1580,6 +1580,125 @@ } } }, + "/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": [ @@ -1972,6 +2091,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" } } ], @@ -3325,6 +3563,17 @@ } } }, + "model.Possibility": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, "model.Province": { "type": "object", "properties": { @@ -3354,6 +3603,17 @@ } }, "model.RegisteredCapital": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "model.RegularCustomers": { "type": "object", "properties": { "id": { @@ -3436,7 +3696,7 @@ "pain_points": { "type": "string" }, - "possibilities": { + "possibilities_id": { "type": "integer" }, "process": { @@ -3909,6 +4169,17 @@ } } }, + "request.AddPossibility": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + }, "request.AddProvince": { "type": "object", "properties": { @@ -3928,6 +4199,17 @@ } }, "request.AddRegisteredCapital": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + }, + "request.AddRegularCustomers": { "type": "object", "required": [ "name" @@ -4820,6 +5102,35 @@ } } }, + "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": { @@ -4892,6 +5203,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" } } } @@ -5297,6 +5637,17 @@ } } }, + "response.PossibilityResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Possibility" + } + } + } + }, "response.ProvinceResponse": { "type": "object", "properties": { @@ -5319,6 +5670,17 @@ } } }, + "response.RegularCustomersResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/model.RegularCustomers" + } + } + } + }, "response.SaleChanceResponse": { "type": "object", "properties": { -- Gitblit v1.8.0