Browse Source

短信

master
huangjiajun 1 month ago
parent
commit
18045eb651
2 changed files with 12 additions and 10 deletions
  1. +6
    -5
      app/md/md_notice.go
  2. +6
    -5
      app/svc/notice/svc_aliyun_sms.go

+ 6
- 5
app/md/md_notice.go View File

@@ -101,11 +101,12 @@ type NoticeAliyunSmsPushListResp struct {
List []NoticeAliyunSmsPushList `json:"list"`
}
type NoticeAliyunSmsPushList struct {
Id string `json:"id"`
Title string `json:"title"`
Content string `json:"content"`
Target string `json:"target"`
State string `json:"state" example:"0待发送 1发送成功"`
Id string `json:"id"`
Title string `json:"title"`
Content string `json:"content"`
Target string `json:"target"`
CreateAt string `json:"create_at"`
State string `json:"state" example:"0待发送 1发送成功"`
}
type NoticeAliyunSmsPushSaveReq struct {
Id string `json:"id"`


+ 6
- 5
app/svc/notice/svc_aliyun_sms.go View File

@@ -158,11 +158,12 @@ func AliyunSmsPushList(c *gin.Context) {
if notice != nil {
for _, v := range *notice {
tmp := md.NoticeAliyunSmsPushList{
Id: utils.IntToStr(v.Id),
Title: v.Title,
Content: v.Content,
Target: v.Target,
State: utils.IntToStr(v.State),
Id: utils.IntToStr(v.Id),
Title: v.Title,
Content: v.Content,
Target: v.Target,
State: utils.IntToStr(v.State),
CreateAt: v.CreateAt.Format("2006-01-02 15:04:05"),
}
noticeList = append(noticeList, tmp)
}


Loading…
Cancel
Save