From c4cc5a54d61b05d98d28b21710b3c1531bc05302 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期五, 21 七月 2023 10:52:44 +0800 Subject: [PATCH] add --- docs/docs.go | 190 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 189 insertions(+), 1 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 75ba54b..0cb0f32 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -2040,6 +2040,125 @@ } } }, + "/api/isVisit/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "IsVisit" + ], + "summary": "娣诲姞鏈嶅姟浜哄憳鏄惁鏉ヨ繃", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddIsVisit" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/isVisit/delete/{id}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "IsVisit" + ], + "summary": "鍒犻櫎鏈嶅姟浜哄憳鏄惁鏉ヨ繃", + "parameters": [ + { + "type": "integer", + "description": "鏌ヨ鍙傛暟", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/isVisit/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "IsVisit" + ], + "summary": "鑾峰彇鏈嶅姟浜哄憳鏄惁鏉ヨ繃鍒楄〃", + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/contextx.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.IsVisitResponse" + } + } + } + ] + } + } + } + } + }, + "/api/isVisit/update": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "IsVisit" + ], + "summary": "鏇存柊鏈嶅姟浜哄憳鏄惁鏉ヨ繃", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateIsVisits" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, "/api/masterOrder/add": { "post": { "produces": [ @@ -5984,6 +6103,17 @@ } } }, + "model.IsVisit": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, "model.MasterOrder": { "type": "object", "properties": { @@ -6681,7 +6811,7 @@ "id": { "type": "integer" }, - "isVisit": { + "isVisitId": { "type": "integer" }, "memberId": { @@ -7134,6 +7264,17 @@ } }, "request.AddIndustry": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + }, + "request.AddIsVisit": { "type": "object", "required": [ "name" @@ -8769,6 +8910,35 @@ } } }, + "request.UpdateIsVisit": { + "type": "object", + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "request.UpdateIsVisits": { + "type": "object", + "required": [ + "is_visit" + ], + "properties": { + "is_visit": { + "type": "array", + "items": { + "$ref": "#/definitions/request.UpdateIsVisit" + } + } + } + }, "request.UpdateMasterOrder": { "type": "object", "properties": { @@ -9812,6 +9982,13 @@ "$ref": "#/definitions/model.Industry" } }, + "isVisit": { + "description": "鏈嶅姟浜哄憳鏄惁鏉ヨ繃", + "type": "array", + "items": { + "$ref": "#/definitions/model.IsVisit" + } + }, "member": { "description": "Member", "type": "array", @@ -9946,6 +10123,17 @@ } } }, + "response.IsVisitResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/model.IsVisit" + } + } + } + }, "response.LoginResponse": { "type": "object", "properties": { -- Gitblit v1.8.0