shenjiachi 1 day ago
parent
commit
04ab6d84ad
4 changed files with 15 additions and 10 deletions
  1. +10
    -8
      app/md/md_cloud_bundle.go
  2. +2
    -1
      app/md/md_comm.go
  3. +1
    -1
      app/svc/cloud_bundle/svc_list.go
  4. +2
    -0
      app/svc/cloud_bundle/svc_version_info.go

+ 10
- 8
app/md/md_cloud_bundle.go View File

@@ -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"`


+ 2
- 1
app/md/md_comm.go View File

@@ -1,5 +1,6 @@
package md

type CommReq struct {
Id string `json:"id"`
Id string `json:"id"`
IsAuditing string `json:"is_auditing"`
}

+ 1
- 1
app/svc/cloud_bundle/svc_list.go View File

@@ -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
}


+ 2
- 0
app/svc/cloud_bundle/svc_version_info.go View File

@@ -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
}
}
}


Loading…
Cancel
Save