From 48b5b8f916141b535d29666e491a9662da6d0bdc Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 24 Dec 2024 10:38:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/md/md_comm.go | 3 ++- app/svc/cloud_bundle/svc_list.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/md/md_comm.go b/app/md/md_comm.go index a9265e0..79c5dd9 100644 --- a/app/md/md_comm.go +++ b/app/md/md_comm.go @@ -1,5 +1,6 @@ package md type CommReq struct { - Id string `json:"id"` + Id string `json:"id"` + IsAuditing string `json:"is_auditing"` } diff --git a/app/svc/cloud_bundle/svc_list.go b/app/svc/cloud_bundle/svc_list.go index bfb46ad..8d255bd 100644 --- a/app/svc/cloud_bundle/svc_list.go +++ b/app/svc/cloud_bundle/svc_list.go @@ -193,7 +193,7 @@ func AuditSet(c *gin.Context) { e.OutErr(c, e.ERR_INVALID_ARGS, err) return } - db.Db.Where("id=?", req.Id).Cols("is_auditing").Update(&model.CloudBundle{IsAuditing: 1}) + db.Db.Where("id=?", req.Id).Cols("is_auditing").Update(&model.CloudBundle{IsAuditing: utils.StrToInt(req.IsAuditing)}) e.OutSuc(c, "success", nil) return }