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 1/4] =?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 } From 3fddbd60d00f11a441d76221a0b16833e3638f0a Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 24 Dec 2024 10:43:01 +0800 Subject: [PATCH 2/4] =?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_cloud_bundle.go | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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"` From 90f8fd4cba88ca27e68f4aa660a4b5f4ddf55356 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 24 Dec 2024 10:43:50 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go.mod | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index cf5c56a..dc29885 100644 --- a/go.mod +++ b/go.mod @@ -16,7 +16,7 @@ require ( github.com/go-playground/universal-translator v0.18.1 github.com/go-playground/validator/v10 v10.20.0 github.com/go-redis/redis v6.15.9+incompatible - github.com/gomodule/redigo v1.9.2 + github.com/gomodule/redigo v2.0.0+incompatible github.com/jinzhu/copier v0.4.0 github.com/makiuchi-d/gozxing v0.0.0-20210324052758-57132e828831 github.com/qiniu/api.v7/v7 v7.8.2 @@ -44,6 +44,7 @@ require ( github.com/alibabacloud-go/tea v1.2.2 github.com/alibabacloud-go/tea-utils/v2 v2.0.6 github.com/aliyun/aliyun-oss-go-sdk v3.0.2+incompatible + github.com/gin-contrib/sessions v1.0.1 github.com/go-pay/gopay v1.5.98 github.com/go-sql-driver/mysql v1.8.1 github.com/gocolly/colly v1.2.0 From 04045e9639589d0f1579c35523416d25df0b5a92 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 24 Dec 2024 10:55:06 +0800 Subject: [PATCH 4/4] =?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/svc/cloud_bundle/svc_version_info.go | 2 ++ 1 file changed, 2 insertions(+) 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 } } }