From 115bd9b51f5d8eade4658f844de37516486c60e7 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期六, 18 十一月 2023 17:25:25 +0800 Subject: [PATCH] crm获取aps项目模块信息 --- 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(¶ms.FaultType) if errCode != ecode.OK { -- Gitblit v1.8.0