package notice import "git.hlsq.asia/alex/proto/topic" const ( // 在线比赛通知 onlineMatchNoticeStart = iota // 在线比赛开始提醒 // 锦标赛通知 tournamentMatchRemind // 比赛提醒 tournamentMatchScoreAnnouncementPromoted // 成绩公告-晋级决赛 tournamentMatchScoreAnnouncementNotPromoted // 成绩公告-未晋级决赛 tournamentMatchScoreAnnouncementFinalEnd // 成绩公告-决赛结束后 tournamentMatchRewardDistribute // 奖励发放 tournamentMatchViolateNotice // 违规通报 ) type TemplateNoticeLang string const ( ZhCN TemplateNoticeLang = "zh-CN" ) var defaultLang = ZhCN var noticeTemplate = map[int32]map[TemplateNoticeLang]topic.TemplateNoticeData{ onlineMatchNoticeStart: { ZhCN: topic.TemplateNoticeData{ Title: "", Msg: "您的队友正在等待您开局,点击返回>>", XiaomiTemplateId: "P20513", CustomParam: `{"type":1, "param":[]}`, }, }, tournamentMatchRemind: { ZhCN: topic.TemplateNoticeData{ Title: "比赛提醒", Msg: "%v锦标赛第%v轮将于明天开启,记得前来参赛!", XiaomiTemplateId: "P20086", CustomParam: `{"type":2, "param":["%v", "1", "%v"]}`, }, }, tournamentMatchScoreAnnouncementPromoted: { ZhCN: topic.TemplateNoticeData{ Title: "成绩公告", Msg: "恭喜您在%v锦标赛晋级赛获得第%v名,成功晋级决赛!", XiaomiTemplateId: "P20088", CustomParam: `{"type":2, "param":["%v", "2", "%v"]}`, }, }, tournamentMatchScoreAnnouncementNotPromoted: { ZhCN: topic.TemplateNoticeData{ Title: "成绩公告", Msg: "很遗憾,您在%v锦标赛晋级赛中未能进入下一阶段比赛。感谢您的参与!", XiaomiTemplateId: "P20088", CustomParam: `{"type":2, "param":["%v", "2", "%v"]}`, }, }, tournamentMatchScoreAnnouncementFinalEnd: { ZhCN: topic.TemplateNoticeData{ Title: "成绩公告", Msg: "恭喜您在%v锦标赛决赛获得第%v名!", XiaomiTemplateId: "P20088", CustomParam: `{"type":2, "param":["%v", "2", "%v"]}`, }, }, tournamentMatchRewardDistribute: { ZhCN: topic.TemplateNoticeData{ Title: "奖励发放", Msg: "%v锦标赛于%v月%v日成功完赛,点击查看最终排名!", XiaomiTemplateId: "P20084", CustomParam: `{"type":2, "param":["%v", "2", "%v"]}`, }, }, tournamentMatchViolateNotice: { ZhCN: topic.TemplateNoticeData{ Title: "违规通报", Msg: "后台检测到您在%v锦标赛第%v轮比赛中存在违规情况,本次比赛成绩无效,有任何疑问请联系客服。", XiaomiTemplateId: "P20085", CustomParam: `{"type":0, "param":[]}`, }, }, }