From a89c3af49d0be3e635ef13b3bd3dd9410e4d6d46 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 03 八月 2023 20:03:12 +0800 Subject: [PATCH] 服务单管理 --- docs/docs.go | 1144 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 1,141 insertions(+), 3 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 9e3d7b1..041b0a8 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -2074,6 +2074,128 @@ } } }, + "/api/faq/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "甯歌闂绠$悊" + ], + "summary": "娣诲姞甯歌闂", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddFaq" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/faq/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/faq/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "甯歌闂绠$悊" + ], + "summary": "鑾峰彇甯歌闂鍒楄〃", + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.ListResponse" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Faq" + } + } + } + } + ] + } + } + } + } + }, + "/api/faq/update": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "甯歌闂绠$悊" + ], + "summary": "鏇存柊甯歌闂", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateFaq" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, "/api/followRecord/add": { "post": { "produces": [ @@ -3252,6 +3374,128 @@ "required": true, "schema": { "$ref": "#/definitions/request.UpdatePossibilities" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/priorityLevel/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "浼樺厛绾у埆绠$悊" + ], + "summary": "娣诲姞浼樺厛绾у埆", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddPriorityLevel" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/priorityLevel/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/priorityLevel/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "浼樺厛绾у埆绠$悊" + ], + "summary": "鑾峰彇浼樺厛绾у埆鍒楄〃", + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.ListResponse" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/model.PriorityLevel" + } + } + } + } + ] + } + } + } + } + }, + "/api/priorityLevel/update": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "浼樺厛绾у埆绠$悊" + ], + "summary": "鏇存柊浼樺厛绾у埆", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdatePriorityLevel" } } ], @@ -6286,6 +6530,372 @@ } } }, + "/api/serviceOrder/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "鏈嶅姟鍗曠鐞�" + ], + "summary": "娣诲姞鏈嶅姟鍗�", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddServiceOrder" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/serviceOrder/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/serviceOrder/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "鏈嶅姟鍗曠鐞�" + ], + "summary": "鑾峰彇鏈嶅姟鍗曞垪琛�", + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.ListResponse" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/model.ServiceOrder" + } + } + } + } + ] + } + } + } + } + }, + "/api/serviceOrder/update": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "鏈嶅姟鍗曠鐞�" + ], + "summary": "鏇存柊鏈嶅姟鍗�", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateServiceOrder" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/serviceType/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "鏈嶅姟绫诲瀷绠$悊" + ], + "summary": "娣诲姞鏈嶅姟绫诲瀷", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddServiceType" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/serviceType/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/serviceType/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "鏈嶅姟绫诲瀷绠$悊" + ], + "summary": "鑾峰彇鏈嶅姟绫诲瀷鍒楄〃", + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.ListResponse" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/model.ServiceType" + } + } + } + } + ] + } + } + } + } + }, + "/api/serviceType/update": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "鏈嶅姟绫诲瀷绠$悊" + ], + "summary": "鏇存柊鏈嶅姟绫诲瀷", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateServiceType" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/severity/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "涓ラ噸绋嬪害绠$悊" + ], + "summary": "娣诲姞涓ラ噸绋嬪害", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddSeverity" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/severity/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/severity/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "涓ラ噸绋嬪害绠$悊" + ], + "summary": "鑾峰彇涓ラ噸绋嬪害鍒楄〃", + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/response.ListResponse" + }, + { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Severity" + } + } + } + } + ] + } + } + } + } + }, + "/api/severity/update": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "涓ラ噸绋嬪害绠$悊" + ], + "summary": "鏇存柊涓ラ噸绋嬪害", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateSeverity" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, "/api/solveRate/add": { "post": { "produces": [ @@ -7231,9 +7841,6 @@ "code": { "type": "integer" }, - "count": { - "type": "integer" - }, "data": {}, "msg": { "type": "string" @@ -7715,6 +8322,17 @@ } } }, + "model.Faq": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, "model.FollowRecord": { "type": "object", "properties": { @@ -7951,6 +8569,17 @@ } }, "model.Possibility": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "model.PriorityLevel": { "type": "object", "properties": { "id": { @@ -8668,6 +9297,156 @@ } } }, + "model.ServiceOrder": { + "type": "object", + "properties": { + "address": { + "description": "涓婇棬鍦板潃", + "type": "string" + }, + "appointment_time": { + "description": "棰勭害涓婇棬鏃堕棿", + "type": "string" + }, + "car_fare": { + "description": "浜ら�氳垂", + "type": "number" + }, + "charge_amount": { + "description": "鏀惰垂閲戦", + "type": "number" + }, + "client": { + "$ref": "#/definitions/model.Client" + }, + "client_id": { + "description": "瀹㈡埛id", + "type": "integer" + }, + "contract": { + "$ref": "#/definitions/model.Contract" + }, + "contract_id": { + "description": "鍚堝悓id", + "type": "integer" + }, + "expect_time": { + "description": "甯屾湜澶勭悊鏃堕棿", + "type": "string" + }, + "faq": { + "$ref": "#/definitions/model.Faq" + }, + "id": { + "type": "integer" + }, + "linkman_id": { + "description": "鑱旂郴浜篿d", + "type": "integer" + }, + "order": { + "$ref": "#/definitions/model.OrderManage" + }, + "order_id": { + "description": "閿�鍞鍗昳d", + "type": "integer" + }, + "priorityLevel": { + "$ref": "#/definitions/model.PriorityLevel" + }, + "priority_level_id": { + "description": "浼樺厛绾у埆", + "type": "integer" + }, + "problem_desc": { + "description": "闂鎻忚堪", + "type": "string" + }, + "problem_id": { + "description": "甯歌闂id", + "type": "integer" + }, + "product": { + "$ref": "#/definitions/model.Product" + }, + "product_id": { + "description": "浜у搧id", + "type": "integer" + }, + "real_time": { + "description": "瀹為檯澶勭悊鏃堕棿", + "type": "string" + }, + "remark": { + "description": "澶囨敞", + "type": "string" + }, + "sale_leads": { + "description": "閿�鍞満浼歩d", + "type": "integer" + }, + "serviceType": { + "$ref": "#/definitions/model.ServiceType" + }, + "service_man_id": { + "description": "鏈嶅姟浜哄憳", + "type": "integer" + }, + "service_number": { + "description": "鏈嶅姟鍗曠紪鍙�", + "type": "string" + }, + "service_type_id": { + "description": "鏈嶅姟鏂瑰紡", + "type": "integer" + }, + "severity": { + "$ref": "#/definitions/model.Severity" + }, + "solution": { + "description": "瑙e喅鏂规硶", + "type": "string" + }, + "solution_remark": { + "description": "鍐呴儴澶囨敞", + "type": "string" + }, + "status": { + "description": "澶勭悊鐘舵��", + "type": "integer" + }, + "subject": { + "description": "涓婚", + "type": "string" + }, + "time_spent_id": { + "description": "鑺辫垂鏃堕棿", + "type": "integer" + } + } + }, + "model.ServiceType": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "model.Severity": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, "model.SolveRate": { "type": "object", "properties": { @@ -9110,6 +9889,17 @@ } } }, + "request.AddFaq": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, "request.AddFollowRecord": { "type": "object", "required": [ @@ -9234,6 +10024,17 @@ "name" ], "properties": { + "name": { + "type": "string" + } + } + }, + "request.AddPriorityLevel": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, "name": { "type": "string" } @@ -9808,6 +10609,156 @@ }, "timelyRate": { "type": "integer" + } + } + }, + "request.AddServiceOrder": { + "type": "object", + "properties": { + "address": { + "description": "涓婇棬鍦板潃", + "type": "string" + }, + "appointment_time": { + "description": "棰勭害涓婇棬鏃堕棿", + "type": "string" + }, + "car_fare": { + "description": "浜ら�氳垂", + "type": "number" + }, + "charge_amount": { + "description": "鏀惰垂閲戦", + "type": "number" + }, + "client": { + "$ref": "#/definitions/model.Client" + }, + "client_id": { + "description": "瀹㈡埛id", + "type": "integer" + }, + "contract": { + "$ref": "#/definitions/model.Contract" + }, + "contract_id": { + "description": "鍚堝悓id", + "type": "integer" + }, + "expect_time": { + "description": "甯屾湜澶勭悊鏃堕棿", + "type": "string" + }, + "faq": { + "$ref": "#/definitions/model.Faq" + }, + "id": { + "type": "integer" + }, + "linkman_id": { + "description": "鑱旂郴浜篿d", + "type": "integer" + }, + "order": { + "$ref": "#/definitions/model.OrderManage" + }, + "order_id": { + "description": "閿�鍞鍗昳d", + "type": "integer" + }, + "priorityLevel": { + "$ref": "#/definitions/model.PriorityLevel" + }, + "priority_level_id": { + "description": "浼樺厛绾у埆", + "type": "integer" + }, + "problem_desc": { + "description": "闂鎻忚堪", + "type": "string" + }, + "problem_id": { + "description": "甯歌闂id", + "type": "integer" + }, + "product": { + "$ref": "#/definitions/model.Product" + }, + "product_id": { + "description": "浜у搧id", + "type": "integer" + }, + "real_time": { + "description": "瀹為檯澶勭悊鏃堕棿", + "type": "string" + }, + "remark": { + "description": "澶囨敞", + "type": "string" + }, + "sale_leads": { + "description": "閿�鍞満浼歩d", + "type": "integer" + }, + "serviceType": { + "$ref": "#/definitions/model.ServiceType" + }, + "service_man_id": { + "description": "鏈嶅姟浜哄憳", + "type": "integer" + }, + "service_number": { + "description": "鏈嶅姟鍗曠紪鍙�", + "type": "string" + }, + "service_type_id": { + "description": "鏈嶅姟鏂瑰紡", + "type": "integer" + }, + "severity": { + "$ref": "#/definitions/model.Severity" + }, + "solution": { + "description": "瑙e喅鏂规硶", + "type": "string" + }, + "solution_remark": { + "description": "鍐呴儴澶囨敞", + "type": "string" + }, + "status": { + "description": "澶勭悊鐘舵��", + "type": "integer" + }, + "subject": { + "description": "涓婚", + "type": "string" + }, + "time_spent_id": { + "description": "鑺辫垂鏃堕棿", + "type": "integer" + } + } + }, + "request.AddServiceType": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "request.AddSeverity": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" } } }, @@ -11203,6 +12154,17 @@ } } }, + "request.UpdateFaq": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, "request.UpdateFollowRecord": { "type": "object", "required": [ @@ -11425,6 +12387,17 @@ "id", "name" ], + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "request.UpdatePriorityLevel": { + "type": "object", "properties": { "id": { "type": "integer" @@ -12294,6 +13267,156 @@ } } }, + "request.UpdateServiceOrder": { + "type": "object", + "properties": { + "address": { + "description": "涓婇棬鍦板潃", + "type": "string" + }, + "appointment_time": { + "description": "棰勭害涓婇棬鏃堕棿", + "type": "string" + }, + "car_fare": { + "description": "浜ら�氳垂", + "type": "number" + }, + "charge_amount": { + "description": "鏀惰垂閲戦", + "type": "number" + }, + "client": { + "$ref": "#/definitions/model.Client" + }, + "client_id": { + "description": "瀹㈡埛id", + "type": "integer" + }, + "contract": { + "$ref": "#/definitions/model.Contract" + }, + "contract_id": { + "description": "鍚堝悓id", + "type": "integer" + }, + "expect_time": { + "description": "甯屾湜澶勭悊鏃堕棿", + "type": "string" + }, + "faq": { + "$ref": "#/definitions/model.Faq" + }, + "id": { + "type": "integer" + }, + "linkman_id": { + "description": "鑱旂郴浜篿d", + "type": "integer" + }, + "order": { + "$ref": "#/definitions/model.OrderManage" + }, + "order_id": { + "description": "閿�鍞鍗昳d", + "type": "integer" + }, + "priorityLevel": { + "$ref": "#/definitions/model.PriorityLevel" + }, + "priority_level_id": { + "description": "浼樺厛绾у埆", + "type": "integer" + }, + "problem_desc": { + "description": "闂鎻忚堪", + "type": "string" + }, + "problem_id": { + "description": "甯歌闂id", + "type": "integer" + }, + "product": { + "$ref": "#/definitions/model.Product" + }, + "product_id": { + "description": "浜у搧id", + "type": "integer" + }, + "real_time": { + "description": "瀹為檯澶勭悊鏃堕棿", + "type": "string" + }, + "remark": { + "description": "澶囨敞", + "type": "string" + }, + "sale_leads": { + "description": "閿�鍞満浼歩d", + "type": "integer" + }, + "serviceType": { + "$ref": "#/definitions/model.ServiceType" + }, + "service_man_id": { + "description": "鏈嶅姟浜哄憳", + "type": "integer" + }, + "service_number": { + "description": "鏈嶅姟鍗曠紪鍙�", + "type": "string" + }, + "service_type_id": { + "description": "鏈嶅姟鏂瑰紡", + "type": "integer" + }, + "severity": { + "$ref": "#/definitions/model.Severity" + }, + "solution": { + "description": "瑙e喅鏂规硶", + "type": "string" + }, + "solution_remark": { + "description": "鍐呴儴澶囨敞", + "type": "string" + }, + "status": { + "description": "澶勭悊鐘舵��", + "type": "integer" + }, + "subject": { + "description": "涓婚", + "type": "string" + }, + "time_spent_id": { + "description": "鑺辫垂鏃堕棿", + "type": "integer" + } + } + }, + "request.UpdateServiceType": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "request.UpdateSeverity": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, "request.UpdateSolveRate": { "type": "object", "required": [ @@ -12882,6 +14005,21 @@ } } }, + "response.ListResponse": { + "type": "object", + "properties": { + "code": { + "type": "integer" + }, + "count": { + "type": "integer" + }, + "data": {}, + "msg": { + "type": "string" + } + } + }, "response.LoginResponse": { "type": "object", "properties": { -- Gitblit v1.8.0