From eb1997d0c265339d9bd568bca614481c3ca2a542 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 13 Dec 2024 16:29:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/md/md_notice.go | 1 + app/svc/notice/svc_aliyun_sms.go | 1 + 2 files changed, 2 insertions(+) diff --git a/app/md/md_notice.go b/app/md/md_notice.go index 6a496de..bc4f636 100644 --- a/app/md/md_notice.go +++ b/app/md/md_notice.go @@ -112,6 +112,7 @@ type NoticeAliyunSmsPushList struct { Content string `json:"content"` Target string `json:"target"` CreateAt string `json:"create_at"` + SmsCode string `json:"sms_code"` State string `json:"state" example:"0待发送 1发送成功"` } type NoticeAliyunSmsPushSaveReq struct { diff --git a/app/svc/notice/svc_aliyun_sms.go b/app/svc/notice/svc_aliyun_sms.go index 0bf0b25..7a95c4e 100644 --- a/app/svc/notice/svc_aliyun_sms.go +++ b/app/svc/notice/svc_aliyun_sms.go @@ -162,6 +162,7 @@ func AliyunSmsPushList(c *gin.Context) { Title: v.Title, Content: v.Content, Target: v.Target, + SmsCode: v.SmsCode, State: utils.IntToStr(v.State), CreateAt: v.CreateAt.Format("2006-01-02 15:04:05"), }