diff --git a/app/md/md_cloud_bundle.go b/app/md/md_cloud_bundle.go index 1cca7eb..fe2782e 100644 --- a/app/md/md_cloud_bundle.go +++ b/app/md/md_cloud_bundle.go @@ -98,14 +98,16 @@ type CloudBundleDelReq struct { } type CloudBundleVersion struct { - Type string `json:"type"` - Img string `json:"img"` - ImgUrl string `json:"img_url"` - Name string `json:"name"` - Version string `json:"version"` - Url string `json:"url"` - Content string `json:"content"` - IsMust string `json:"is_must"` + Type string `json:"type"` + Img string `json:"img"` + ImgUrl string `json:"img_url"` + Name string `json:"name"` + Version string `json:"version"` + Url string `json:"url"` + DownType string `json:"down_type"` + OutUrl string `json:"out_url"` + Content string `json:"content"` + IsMust string `json:"is_must"` } type CloudBundleVersionMap struct { Type string `json:"type"` 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 } diff --git a/app/svc/cloud_bundle/svc_version_info.go b/app/svc/cloud_bundle/svc_version_info.go index 36ed6ff..b06bcac 100644 --- a/app/svc/cloud_bundle/svc_version_info.go +++ b/app/svc/cloud_bundle/svc_version_info.go @@ -36,6 +36,8 @@ func VersionBase(c *gin.Context) { data[k].Url = v1.Url data[k].Content = v1.Content data[k].IsMust = v1.IsMust + data[k].DownType = v1.DownType + data[k].OutUrl = v1.OutUrl } } }