diff --git a/api/v1/game/notice.go b/api/v1/game/notice.go index b344e72..763097d 100644 --- a/api/v1/game/notice.go +++ b/api/v1/game/notice.go @@ -31,7 +31,8 @@ type AddCronReq struct { NoticeType int `p:"noticeType" description:"公告类型:1表示弹窗公告,2表示登录公告,3表示维护公告"` Channel string `p:"channel" description:"渠道号:第三方的登录渠道"` Content string `p:"content" description:""` - SendTime int64 `p:"sendTime" description:""` + SendTime int64 `p:"sendTime" description:""` + IsShow int `p:"isShow" description:""` } type AddCronRes struct { diff --git a/internal/controller/game_corn.go b/internal/controller/game_corn.go index 8b92247..d2c37f6 100644 --- a/internal/controller/game_corn.go +++ b/internal/controller/game_corn.go @@ -26,6 +26,7 @@ func (c *cornController) Add(ctx context.Context, req *game.AddCronReq) (res *ga NoticeId: req.NoticeId, Channel: req.Channel, SendTime: req.SendTime, + IsShow: req.IsShow, }) return } diff --git a/internal/serviceGame/cron.go b/internal/serviceGame/cron.go index aa9fe46..af13a64 100644 --- a/internal/serviceGame/cron.go +++ b/internal/serviceGame/cron.go @@ -81,6 +81,7 @@ func (c *gameCronImpl) AddCron(req entity.GameNoticeLog) { notice := notices[i] if notice.Id == req.Id { notice.SendTime = req.SendTime + notice.IsShow = req.IsShow notice.Status = req.Status notice.Content = req.Content notice.NoticeType = req.NoticeType