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"), }