From 51c1904dec60bc7bfc92c30ceb9ab3d4756ce462 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期四, 20 七月 2023 16:41:29 +0800 Subject: [PATCH] fix --- docs/docs.go | 750 ++++++++++++++++++++++++++++++++++++++++++--------------- 1 files changed, 553 insertions(+), 197 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 1f314e2..5f12fa8 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1414,6 +1414,125 @@ } } }, + "/api/department/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "Department" + ], + "summary": "娣诲姞閮ㄩ棬", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddDepartment" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/department/delete/{id}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "Department" + ], + "summary": "鍒犻櫎閮ㄩ棬", + "parameters": [ + { + "type": "integer", + "description": "閮ㄩ棬ID", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/department/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "Department" + ], + "summary": "閮ㄩ棬鍒楄〃", + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/contextx.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.DepartmentResponse" + } + } + } + ] + } + } + } + } + }, + "/api/department/update/{id}": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "Department" + ], + "summary": "鏇存柊閮ㄩ棬", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateDepartmentList" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, "/api/enterpriseNature/add": { "post": { "produces": [ @@ -3876,13 +3995,25 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/contextx.Response" + "allOf": [ + { + "$ref": "#/definitions/contextx.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.SalesReturnResponse" + } + } + } + ] } } } } }, - "/api/salesReturn/update/{id}": { + "/api/salesReturn/update": { "put": { "produces": [ "application/json" @@ -4866,6 +4997,36 @@ } } } + }, + "/api/vetting/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "Vetting" + ], + "summary": "娣诲姞瀹℃壒", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddVetting" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } } }, "definitions": { @@ -5366,6 +5527,17 @@ } } }, + "model.Department": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, "model.EnterpriseNature": { "type": "object", "properties": { @@ -5722,6 +5894,9 @@ "currency": { "$ref": "#/definitions/constvar.CurrencyType" }, + "detail_address": { + "type": "string" + }, "disadvantages": { "type": "string" }, @@ -5775,6 +5950,9 @@ }, "regular_customers_id": { "type": "integer" + }, + "remark": { + "type": "string" }, "sale_stage_id": { "type": "integer" @@ -5980,6 +6158,41 @@ } } }, + "model.SalesReturn": { + "type": "object", + "properties": { + "clientId": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "memberId": { + "type": "integer" + }, + "number": { + "type": "string" + }, + "products": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } + }, + "reason": { + "type": "string" + }, + "repository": { + "type": "string" + }, + "returnDate": { + "type": "string" + }, + "status": { + "type": "integer" + } + } + }, "model.SalesSources": { "type": "object", "properties": { @@ -6162,27 +6375,17 @@ "description": "鐢ㄦ埛瑙掕壊ID", "type": "integer" }, - "companyName": { - "type": "string" - }, - "createAt": { - "description": "鍒涘缓鏃堕棿", - "type": "string" + "departmentId": { + "type": "integer" }, "email": { "type": "string" - }, - "enable": { - "type": "boolean" }, "headerImg": { "type": "string" }, "id": { - "type": "string" - }, - "ip": { - "type": "string" + "type": "integer" }, "menuIds": { "description": "鑿滃崟ID鍒楄〃", @@ -6194,32 +6397,22 @@ "nickName": { "type": "string" }, - "parentId": { - "type": "string" - }, - "parentName": { - "type": "string" - }, "phone": { - "type": "string" - }, - "port": { "type": "string" }, "pos": { "type": "string" }, - "status": { - "type": "integer" - }, - "updateAt": { - "description": "鏇存柊鏃堕棿", + "realName": { "type": "string" }, "userType": { "$ref": "#/definitions/constvar.UserType" }, "username": { + "type": "string" + }, + "uuid": { "type": "string" } } @@ -6497,6 +6690,17 @@ } } }, + "request.AddDepartment": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + }, "request.AddEnterpriseNature": { "type": "object", "required": [ @@ -6554,7 +6758,7 @@ "type": "integer" }, "money": { - "type": "string" + "type": "number" }, "number": { "type": "string" @@ -6717,6 +6921,9 @@ "currency": { "type": "integer" }, + "detail_address": { + "type": "string" + }, "disadvantages": { "type": "string" }, @@ -6761,6 +6968,9 @@ }, "regular_customers_id": { "type": "integer" + }, + "remark": { + "type": "string" }, "sale_stage_id": { "type": "integer" @@ -6950,20 +7160,102 @@ "request.AddServiceFeeManage": { "type": "object", "properties": { - "client_id": { + "business_scope": { + "description": "缁忚惀鑼冨洿", + "type": "string" + }, + "city_id": { + "type": "integer" + }, + "client_level_id": { + "description": "瀹㈡埛绛夌骇ID", + "type": "integer" + }, + "client_origin_id": { + "description": "瀹㈡埛鏉ユ簮ID", + "type": "integer" + }, + "client_status_id": { + "description": "瀹㈡埛鐘舵�両D", + "type": "integer" + }, + "client_type_id": { + "description": "瀹㈡埛绫诲瀷ID", + "type": "integer" + }, + "contact": { + "$ref": "#/definitions/request.Contact" + }, + "country_id": { + "type": "integer" + }, + "detail_address": { + "description": "璇︾粏鍦板潃", + "type": "string" + }, + "enterprise_nature_id": { + "description": "浼佷笟鎬ц川", + "type": "integer" + }, + "enterprise_scale_id": { + "description": "浼佷笟瑙勬ā", "type": "integer" }, "file": { "type": "string" }, + "industry_id": { + "description": "鎵�灞炶涓�", + "type": "integer" + }, "latest_date": { "type": "string" }, + "latest_service_time": { + "description": "鏈�鏅氭湇鍔℃椂闂�", + "type": "string" + }, "member_id": { + "description": "閿�鍞礋璐d汉ID", "type": "integer" }, - "remark": { + "name": { + "description": "鍏徃鍚嶇О", "type": "string" + }, + "next_visit_time": { + "description": "涓嬫鍥炶鏃堕棿", + "type": "string" + }, + "number": { + "description": "鍏徃缂栧彿", + "type": "string" + }, + "province_id": { + "type": "integer" + }, + "region_id": { + "type": "integer" + }, + "registered_capital_id": { + "description": "娉ㄥ唽璧勯噾", + "type": "integer" + }, + "registration_time": { + "description": "娉ㄥ唽鏃堕棿", + "type": "string" + }, + "remark": { + "description": "澶囨敞", + "type": "string" + }, + "representative": { + "description": "娉曚汉浠h〃", + "type": "string" + }, + "service_member_id": { + "description": "鏈嶅姟璐熻矗浜篒D", + "type": "integer" } } }, @@ -7025,8 +7317,50 @@ "request.AddSubOrder": { "type": "object", "properties": { - "subOrder": { - "$ref": "#/definitions/request.SubOrder" + "clientId": { + "type": "integer" + }, + "masterOrderId": { + "type": "integer" + }, + "memberId": { + "type": "integer" + }, + "number": { + "type": "string" + }, + "product": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Product" + } + } + } + }, + "request.AddVetting": { + "type": "object", + "required": [ + "opinion", + "status", + "userId", + "vettingId", + "vettingType" + ], + "properties": { + "opinion": { + "type": "string" + }, + "status": { + "type": "integer" + }, + "userId": { + "type": "integer" + }, + "vettingId": { + "type": "integer" + }, + "vettingType": { + "type": "integer" } } }, @@ -7082,102 +7416,6 @@ "pos": { "description": "鐢ㄦ埛宀椾綅", "type": "string" - } - } - }, - "request.Client": { - "type": "object", - "properties": { - "business_scope": { - "description": "缁忚惀鑼冨洿", - "type": "string" - }, - "city_id": { - "type": "integer" - }, - "client_level_id": { - "description": "瀹㈡埛绛夌骇ID", - "type": "integer" - }, - "client_origin_id": { - "description": "瀹㈡埛鏉ユ簮ID", - "type": "integer" - }, - "client_status_id": { - "description": "瀹㈡埛鐘舵�両D", - "type": "integer" - }, - "client_type_id": { - "description": "瀹㈡埛绫诲瀷ID", - "type": "integer" - }, - "contact": { - "$ref": "#/definitions/request.Contact" - }, - "country_id": { - "type": "integer" - }, - "detail_address": { - "description": "璇︾粏鍦板潃", - "type": "string" - }, - "enterprise_nature_id": { - "description": "浼佷笟鎬ц川", - "type": "integer" - }, - "enterprise_scale_id": { - "description": "浼佷笟瑙勬ā", - "type": "integer" - }, - "industry_id": { - "description": "鎵�灞炶涓�", - "type": "integer" - }, - "latest_service_time": { - "description": "鏈�鏅氭湇鍔℃椂闂�", - "type": "string" - }, - "member_id": { - "description": "閿�鍞礋璐d汉ID", - "type": "integer" - }, - "name": { - "description": "鍏徃鍚嶇О", - "type": "string" - }, - "next_visit_time": { - "description": "涓嬫鍥炶鏃堕棿", - "type": "string" - }, - "number": { - "description": "鍏徃缂栧彿", - "type": "string" - }, - "province_id": { - "type": "integer" - }, - "region_id": { - "type": "integer" - }, - "registered_capital_id": { - "description": "娉ㄥ唽璧勯噾", - "type": "integer" - }, - "registration_time": { - "description": "娉ㄥ唽鏃堕棿", - "type": "string" - }, - "remark": { - "description": "澶囨敞", - "type": "string" - }, - "representative": { - "description": "娉曚汉浠h〃", - "type": "string" - }, - "service_member_id": { - "description": "鏈嶅姟璐熻矗浜篒D", - "type": "integer" } } }, @@ -7385,29 +7623,46 @@ "request.Register": { "type": "object", "properties": { + "authorityId": { + "description": "鐢ㄦ埛瑙掕壊ID", + "type": "integer" + }, + "departmentId": { + "type": "integer" + }, "email": { - "type": "string", - "example": "鐢靛瓙閭" + "type": "string" }, "headerImg": { - "type": "string", - "example": "澶村儚閾炬帴" + "type": "string" + }, + "id": { + "type": "string" }, "nickName": { - "type": "string", - "example": "鏄电О" + "type": "string" }, - "passWord": { - "type": "string", - "example": "瀵嗙爜" + "password": { + "type": "string" }, "phone": { - "type": "string", - "example": "鐢佃瘽鍙风爜" + "type": "string" }, - "userName": { - "type": "string", - "example": "鐢ㄦ埛鍚�" + "pos": { + "type": "string" + }, + "rePassword": { + "description": "纭瀵嗙爜", + "type": "string" + }, + "realName": { + "type": "string" + }, + "userType": { + "$ref": "#/definitions/constvar.UserType" + }, + "username": { + "type": "string" } } }, @@ -7586,29 +7841,6 @@ "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" } } } @@ -7981,6 +8213,35 @@ } } }, + "request.UpdateDepartment": { + "type": "object", + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "request.UpdateDepartmentList": { + "type": "object", + "required": [ + "departments" + ], + "properties": { + "departments": { + "type": "array", + "items": { + "$ref": "#/definitions/request.UpdateDepartment" + } + } + } + }, "request.UpdateEnterpriseNature": { "type": "object", "required": [ @@ -8092,7 +8353,7 @@ "type": "integer" }, "money": { - "type": "string" + "type": "number" }, "number": { "type": "string" @@ -8350,6 +8611,9 @@ "currency": { "type": "integer" }, + "detail_address": { + "type": "string" + }, "disadvantages": { "type": "string" }, @@ -8397,6 +8661,9 @@ }, "regular_customers_id": { "type": "integer" + }, + "remark": { + "type": "string" }, "sale_stage_id": { "type": "integer" @@ -8556,35 +8823,11 @@ "request.UpdateSalesReturnRequest": { "type": "object", "properties": { - "clientId": { - "type": "integer" - }, "id": { "type": "integer" }, - "memberId": { - "type": "integer" - }, - "number": { - "type": "string" - }, - "products": { - "type": "array", - "items": { - "$ref": "#/definitions/model.Product" - } - }, - "reason": { - "type": "string" - }, - "repository": { - "type": "string" - }, - "returnDate": { - "type": "string" - }, - "status": { - "type": "integer" + "salesReturn": { + "$ref": "#/definitions/request.SalesReturn" } } }, @@ -8676,10 +8919,45 @@ "request.UpdateServiceFeeManage": { "type": "object", "properties": { - "client": { - "$ref": "#/definitions/request.Client" + "business_scope": { + "description": "缁忚惀鑼冨洿", + "type": "string" }, - "client_id": { + "city_id": { + "type": "integer" + }, + "client_level_id": { + "description": "瀹㈡埛绛夌骇ID", + "type": "integer" + }, + "client_origin_id": { + "description": "瀹㈡埛鏉ユ簮ID", + "type": "integer" + }, + "client_status_id": { + "description": "瀹㈡埛鐘舵�両D", + "type": "integer" + }, + "client_type_id": { + "description": "瀹㈡埛绫诲瀷ID", + "type": "integer" + }, + "contact": { + "$ref": "#/definitions/request.Contact" + }, + "country_id": { + "type": "integer" + }, + "detail_address": { + "description": "璇︾粏鍦板潃", + "type": "string" + }, + "enterprise_nature_id": { + "description": "浼佷笟鎬ц川", + "type": "integer" + }, + "enterprise_scale_id": { + "description": "浼佷笟瑙勬ā", "type": "integer" }, "file": { @@ -8688,14 +8966,56 @@ "id": { "type": "integer" }, + "industry_id": { + "description": "鎵�灞炶涓�", + "type": "integer" + }, "latest_date": { + "type": "string" + }, + "latest_service_time": { + "description": "鏈�鏅氭湇鍔℃椂闂�", "type": "string" }, "member_id": { "type": "integer" }, + "name": { + "description": "鍏徃鍚嶇О", + "type": "string" + }, + "next_visit_time": { + "description": "涓嬫鍥炶鏃堕棿", + "type": "string" + }, + "number": { + "description": "鍏徃缂栧彿", + "type": "string" + }, + "province_id": { + "type": "integer" + }, + "region_id": { + "type": "integer" + }, + "registered_capital_id": { + "description": "娉ㄥ唽璧勯噾", + "type": "integer" + }, + "registration_time": { + "description": "娉ㄥ唽鏃堕棿", + "type": "string" + }, "remark": { "type": "string" + }, + "representative": { + "description": "娉曚汉浠h〃", + "type": "string" + }, + "service_member_id": { + "description": "鏈嶅姟璐熻矗浜篒D", + "type": "integer" } } }, @@ -8945,6 +9265,13 @@ "$ref": "#/definitions/model.Country" } }, + "department": { + "description": "閮ㄩ棬", + "type": "array", + "items": { + "$ref": "#/definitions/model.Department" + } + }, "enterprise_nature": { "description": "浼佷笟鎬ц川", "type": "array", @@ -8964,6 +9291,13 @@ "type": "array", "items": { "$ref": "#/definitions/model.Industry" + } + }, + "member": { + "description": "Member", + "type": "array", + "items": { + "$ref": "#/definitions/model.User" } }, "province": { @@ -9013,6 +9347,17 @@ "type": "array", "items": { "$ref": "#/definitions/model.SalesSources" + } + } + } + }, + "response.DepartmentResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Department" } } } @@ -9244,6 +9589,17 @@ } } }, + "response.SalesReturnResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/model.SalesReturn" + } + } + } + }, "response.SalesSourceResponse": { "type": "object", "properties": { -- Gitblit v1.8.0