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 }