From a5ccc6b321a3127ca064b935e42db44428c41305 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期六, 05 八月 2023 17:00:50 +0800 Subject: [PATCH] 服务合同收款计划增删改查接口 --- docs/docs.go | 299 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 299 insertions(+), 0 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 181b30a..1c6480c 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -2141,6 +2141,17 @@ "甯歌闂绠$悊" ], "summary": "鑾峰彇甯歌闂鍒楄〃", + "parameters": [ + { + "description": "鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.GetFaqList" + } + } + ], "responses": { "200": { "description": "OK", @@ -6024,6 +6035,136 @@ } } }, + "/api/serviceCollectionPlan/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "鏈嶅姟鍚堝悓鏀舵璁″垝绠$悊" + ], + "summary": "娣诲姞鏈嶅姟鍚堝悓鏀舵璁″垝", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddServiceCollectionPlan" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/serviceCollectionPlan/delete/{id}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "鏈嶅姟鍚堝悓鏀舵璁″垝绠$悊" + ], + "summary": "鍒犻櫎鏈嶅姟鍚堝悓鏀舵璁″垝", + "parameters": [ + { + "type": "integer", + "description": "鏌ヨ鍙傛暟", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/serviceCollectionPlan/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "鏈嶅姟鍚堝悓鏀舵璁″垝绠$悊" + ], + "summary": "鑾峰彇鏈嶅姟鍚堝悓鏀舵璁″垝鍒楄〃", + "parameters": [ + { + "type": "integer", + "description": "鏈嶅姟鍚堝悓id", + "name": "serviceContractId", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.ListResponse" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/model.ServiceCollectionPlan" + } + } + } + } + ] + } + } + } + } + }, + "/api/serviceCollectionPlan/update": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "鏈嶅姟鍚堝悓鏀舵璁″垝绠$悊" + ], + "summary": "鏇存柊鏈嶅姟鍚堝悓鏀舵璁″垝", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateServiceCollectionPlan" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, "/api/serviceContract/add": { "post": { "produces": [ @@ -7930,6 +8071,24 @@ } }, "definitions": { + "constvar.FaqKeywordType": { + "type": "string", + "enum": [ + "" + ], + "x-enum-varnames": [ + "FaqKeywordCustomerName" + ] + }, + "constvar.FaqQueryClass": { + "type": "string", + "enum": [ + "" + ], + "x-enum-varnames": [ + "FaqQueryClassExpireLessThen60Days" + ] + }, "constvar.SalesStatus": { "type": "integer", "enum": [ @@ -9395,6 +9554,58 @@ } } }, + "model.ServiceCollectionPlan": { + "type": "object", + "properties": { + "amount": { + "description": "閲戦", + "type": "number" + }, + "collectionDate": { + "description": "璁″垝鏀舵鏃ユ湡", + "type": "string" + }, + "collectionType": { + "description": "绫诲瀷锛�1 璁″垝鏀舵鏃ユ湡 2 椤圭洰鐘舵�侊級", + "type": "integer" + }, + "fileId": { + "description": "闄勪欢id", + "type": "integer" + }, + "id": { + "type": "integer" + }, + "moneyType": { + "description": "甯佺", + "type": "string" + }, + "percent": { + "description": "姣斾緥", + "type": "number" + }, + "principal": { + "description": "鏀舵璐熻矗浜篒D", + "type": "integer" + }, + "remark": { + "description": "澶囨敞", + "type": "string" + }, + "serviceContractId": { + "description": "鏈嶅姟鍚堝悓id", + "type": "integer" + }, + "status": { + "description": "鐘舵�侊紙1鏈敹2宸叉敹锛�", + "type": "integer" + }, + "term": { + "description": "鏈熸", + "type": "integer" + } + } + }, "model.ServiceContract": { "type": "object", "properties": { @@ -9543,6 +9754,9 @@ }, "serviceId": { "type": "integer" + }, + "serviceOrder": { + "$ref": "#/definitions/model.ServiceOrder" }, "solveRateId": { "type": "integer" @@ -10681,6 +10895,17 @@ } } }, + "request.AddServiceCollectionPlan": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/model.ServiceCollectionPlan" + } + } + } + }, "request.AddServiceContract": { "type": "object", "properties": { @@ -11386,6 +11611,28 @@ "pageSize": { "description": "姣忛〉澶у皬", "type": "integer" + } + } + }, + "request.GetFaqList": { + "type": "object", + "properties": { + "keyword": { + "type": "string" + }, + "keywordType": { + "$ref": "#/definitions/constvar.FaqKeywordType" + }, + "page": { + "description": "椤电爜", + "type": "integer" + }, + "pageSize": { + "description": "姣忛〉澶у皬", + "type": "integer" + }, + "queryClass": { + "$ref": "#/definitions/constvar.FaqQueryClass" } } }, @@ -13296,6 +13543,58 @@ } } }, + "request.UpdateServiceCollectionPlan": { + "type": "object", + "properties": { + "amount": { + "description": "閲戦", + "type": "number" + }, + "collectionDate": { + "description": "璁″垝鏀舵鏃ユ湡", + "type": "string" + }, + "collectionType": { + "description": "绫诲瀷锛�1 璁″垝鏀舵鏃ユ湡 2 椤圭洰鐘舵�侊級", + "type": "integer" + }, + "fileId": { + "description": "闄勪欢id", + "type": "integer" + }, + "id": { + "type": "integer" + }, + "moneyType": { + "description": "甯佺", + "type": "string" + }, + "percent": { + "description": "姣斾緥", + "type": "number" + }, + "principal": { + "description": "鏀舵璐熻矗浜篒D", + "type": "integer" + }, + "remark": { + "description": "澶囨敞", + "type": "string" + }, + "serviceContractId": { + "description": "鏈嶅姟鍚堝悓id", + "type": "integer" + }, + "status": { + "description": "鐘舵�侊紙1鏈敹2宸叉敹锛�", + "type": "integer" + }, + "term": { + "description": "鏈熸", + "type": "integer" + } + } + }, "request.UpdateServiceContract": { "type": "object", "properties": { -- Gitblit v1.8.0