From db53558f307c75841cdc01c4505df66b36b6ee07 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 5 Dec 2024 15:45:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/md/md_notice.go | 4 ++-- app/svc/notice/svc_aliyun_sms.go | 2 +- app/svc/notice/svc_notice.go | 2 +- go.mod | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/md/md_notice.go b/app/md/md_notice.go index 2ed8bb5..6ba5834 100644 --- a/app/md/md_notice.go +++ b/app/md/md_notice.go @@ -63,7 +63,7 @@ type NoticePushSaveReq struct { SendEndTime string `json:"send_end_time"` UserList []string `json:"user_list"` TagList []string `json:"tag_list"` - Level string `json:"level"` + Level []string `json:"level"` } type NoticeAliyunSmsListReq struct { @@ -116,5 +116,5 @@ type NoticeAliyunSmsPushSaveReq struct { Target string `json:"target"` PhoneList []string `json:"phone_list"` TagList []string `json:"tag_list"` - Level string `json:"level"` + Level []string `json:"level"` } diff --git a/app/svc/notice/svc_aliyun_sms.go b/app/svc/notice/svc_aliyun_sms.go index 6623e2e..cdd5698 100644 --- a/app/svc/notice/svc_aliyun_sms.go +++ b/app/svc/notice/svc_aliyun_sms.go @@ -187,7 +187,7 @@ func AliyunSmsPushSave(c *gin.Context) { Target: req.Target, Phone: utils.SerializeStr(req.PhoneList), TagId: utils.SerializeStr(req.TagList), - Level: utils.StrToInt(req.Level), + Level: utils.SerializeStr(req.Level), Title: req.Title, Content: req.Content, CreateAt: time.Now(), diff --git a/app/svc/notice/svc_notice.go b/app/svc/notice/svc_notice.go index 6a4a7bf..95f2bb2 100644 --- a/app/svc/notice/svc_notice.go +++ b/app/svc/notice/svc_notice.go @@ -154,7 +154,7 @@ func PushSave(c *gin.Context) { Target: req.Target, UserId: utils.SerializeStr(req.UserList), TagId: utils.SerializeStr(req.TagList), - Level: utils.StrToInt(req.Level), + Level: utils.SerializeStr(req.Level), Title: req.Title, Content: req.Content, SendType: utils.StrToInt(req.SendType), diff --git a/go.mod b/go.mod index 5ca2b5e..cb6122b 100644 --- a/go.mod +++ b/go.mod @@ -33,7 +33,7 @@ require ( ) require ( - code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241205055206-f02789cb9cac + code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241205074100-eab6e9316de6 code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241203080408-75cfef2c6334 code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5