From 6a8a20e02f0530284296d3373d44aa218fc85210 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期五, 21 七月 2023 10:33:32 +0800 Subject: [PATCH] add --- docs/docs.go | 389 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 386 insertions(+), 3 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 6d6eace..75ba54b 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -4638,6 +4638,125 @@ } } }, + "/api/solveRate/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "SolveRate" + ], + "summary": "娣诲姞瑙e喅鐜�", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddSolveRate" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/solveRate/delete/{id}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "SolveRate" + ], + "summary": "鍒犻櫎瑙e喅鐜�", + "parameters": [ + { + "type": "integer", + "description": "鏌ヨ鍙傛暟", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/solveRate/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "SolveRate" + ], + "summary": "鑾峰彇瑙e喅鐜囧垪琛�", + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/contextx.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.SolveRateResponse" + } + } + } + ] + } + } + } + } + }, + "/api/solveRate/update": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "SolveRate" + ], + "summary": "鏇存柊瑙e喅鐜�", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateSolveRates" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, "/api/status/add": { "post": { "produces": [ @@ -4851,6 +4970,125 @@ "required": true, "schema": { "$ref": "#/definitions/request.UpdateSubOrder" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/timelyRate/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "TimelyRate" + ], + "summary": "娣诲姞閿�鍞樁娈�", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddTimelyRate" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/timelyRate/delete/{id}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "TimelyRate" + ], + "summary": "鍒犻櫎閿�鍞樁娈�", + "parameters": [ + { + "type": "integer", + "description": "鏌ヨ鍙傛暟", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/timelyRate/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "TimelyRate" + ], + "summary": "鑾峰彇閿�鍞樁娈靛垪琛�", + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/contextx.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.TimelyRateResponse" + } + } + } + ] + } + } + } + } + }, + "/api/timelyRate/update": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "TimelyRate" + ], + "summary": "鏇存柊閿�鍞樁娈�", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateTimelyRates" } } ], @@ -6461,17 +6699,28 @@ "remark": { "type": "string" }, - "satisfaction": { + "satisfactionId": { "type": "integer" }, "serviceId": { "type": "integer" }, - "solveRate": { + "solveRateId": { "type": "integer" }, - "timelyRate": { + "timelyRateId": { "type": "integer" + } + } + }, + "model.SolveRate": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" } } }, @@ -6501,6 +6750,17 @@ "items": { "$ref": "#/definitions/model.Product" } + } + } + }, + "model.TimelyRate": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" } } }, @@ -7453,6 +7713,17 @@ } } }, + "request.AddSolveRate": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + }, "request.AddStatus": { "type": "object", "required": [ @@ -7484,6 +7755,17 @@ "items": { "$ref": "#/definitions/model.Product" } + } + } + }, + "request.AddTimelyRate": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" } } }, @@ -9245,6 +9527,35 @@ } } }, + "request.UpdateSolveRate": { + "type": "object", + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "request.UpdateSolveRates": { + "type": "object", + "required": [ + "solve_rate" + ], + "properties": { + "solve_rate": { + "type": "array", + "items": { + "$ref": "#/definitions/request.UpdateSolveRate" + } + } + } + }, "request.UpdateStatus": { "type": "object", "required": [ @@ -9296,6 +9607,35 @@ "type": "array", "items": { "$ref": "#/definitions/model.Product" + } + } + } + }, + "request.UpdateTimelyRate": { + "type": "object", + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "request.UpdateTimelyRates": { + "type": "object", + "required": [ + "timely_rate" + ], + "properties": { + "timely_rate": { + "type": "array", + "items": { + "$ref": "#/definitions/request.UpdateTimelyRate" } } } @@ -9526,6 +9866,27 @@ "type": "array", "items": { "$ref": "#/definitions/model.SalesSources" + } + }, + "satisfaction": { + "description": "婊℃剰搴�", + "type": "array", + "items": { + "$ref": "#/definitions/model.Satisfaction" + } + }, + "solve_rate": { + "description": "瑙e喅鐜�", + "type": "array", + "items": { + "$ref": "#/definitions/model.SolveRate" + } + }, + "timely_rate": { + "description": "鍙婃椂鐜�", + "type": "array", + "items": { + "$ref": "#/definitions/model.TimelyRate" } } } @@ -9834,6 +10195,17 @@ } } }, + "response.SolveRateResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/model.SolveRate" + } + } + } + }, "response.SubOrderResponse": { "type": "object", "properties": { @@ -9845,6 +10217,17 @@ } } }, + "response.TimelyRateResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/model.TimelyRate" + } + } + } + }, "response.UserResponse": { "type": "object", "properties": { -- Gitblit v1.8.0