Browse Source

notice

master
linquan 2 months ago
parent
commit
fd8f006043
  1. 1
      api/v1/game/notice.go
  2. 1
      internal/controller/game_corn.go
  3. 1
      internal/serviceGame/cron.go

1
api/v1/game/notice.go

@ -32,6 +32,7 @@ type AddCronReq struct {
Channel string `p:"channel" description:"渠道号:第三方的登录渠道"`
Content string `p:"content" description:""`
SendTime int64 `p:"sendTime" description:""`
IsShow int `p:"isShow" description:""`
}
type AddCronRes struct {

1
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
}

1
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

Loading…
Cancel
Save