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