From 2030ec81f18f4ec9ea1800f13046acafff6d50f7 Mon Sep 17 00:00:00 2001
From: yinbentan <yinbentan@live.com>
Date: 星期四, 26 九月 2024 00:48:59 +0800
Subject: [PATCH] 添加grpc方法:客户信息维护

---
 api/v1/faultType.go |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/api/v1/faultType.go b/api/v1/faultType.go
index 2b2beb5..233652f 100644
--- a/api/v1/faultType.go
+++ b/api/v1/faultType.go
@@ -71,6 +71,10 @@
 	if !ok {
 		return
 	}
+    if params.Id == 0 {
+        ctx.Fail(ecode.ParamsErr)
+    }
+    params.FaultType.Id = params.Id
 
 	errCode := service.NewFaultTypeService().UpdateFaultType(&params.FaultType)
 	if errCode != ecode.OK {

--
Gitblit v1.8.0