Browse Source

打包

master
huangjiajun 2 days ago
parent
commit
48b5b8f916
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      app/md/md_comm.go
  2. +1
    -1
      app/svc/cloud_bundle/svc_list.go

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


Loading…
Cancel
Save