作者 tangxvhui

部分弹窗消息,推送消息停止使用

... ... @@ -21,7 +21,7 @@ func main() {
startConfirmEvaluationScore()
go serviceTask.CheckYesterdayTaskRecord()
go notify.RunTaskSmsNotify()
go notify.AppMessageRun()
//go notify.AppMessageRun()
go consumer.Run()
web.Run()
}
... ...
... ... @@ -553,3 +553,30 @@ func (srv *MessagePersonalService) TodayMessageTaskStageModify(param *command.Ge
}
return resp, nil
}
// 任务里程碑异常的消息弹窗通知,不再使用
func (srv *MessagePersonalService) TodayMessageTaskStageAnomalyV2(param *command.GetUserMessageCommand) (map[string]interface{}, error) {
resp := map[string]interface{}{
"needNotify": false,
"list": []adapter.MessageListAdapter{},
}
return resp, nil
}
// 任务反馈碑异常的消息弹窗内容,不再使用
func (srv *MessagePersonalService) TodayMessageTaskRecordAnomalyV2(param *command.GetUserMessageCommand) (map[string]interface{}, error) {
resp := map[string]interface{}{
"needNotify": false,
"list": []adapter.MessageListAdapter{},
}
return resp, nil
}
// 任务里程碑变更通知,不再使用
func (srv *MessagePersonalService) TodayMessageTaskStageModifyV2(param *command.GetUserMessageCommand) (map[string]interface{}, error) {
resp := map[string]interface{}{
"needNotify": false,
"list": []adapter.MessageListAdapter{},
}
return resp, nil
}
... ...
... ... @@ -27,7 +27,7 @@ func (c *MessagePersonalController) TodayMessageTaskStageAnomaly() {
userReq := middlewares.GetUser(c.Ctx)
param := command.GetUserMessageCommand{}
param.UserId = int(userReq.UserId)
data, err := srv.TodayMessageTaskStageAnomaly(&param)
data, err := srv.TodayMessageTaskStageAnomalyV2(&param)
c.Response(data, err)
}
... ... @@ -36,7 +36,7 @@ func (c *MessagePersonalController) TodayMessageTaskRecordAnomaly() {
userReq := middlewares.GetUser(c.Ctx)
param := command.GetUserMessageCommand{}
param.UserId = int(userReq.UserId)
data, err := srv.TodayMessageTaskRecordAnomaly(&param)
data, err := srv.TodayMessageTaskRecordAnomalyV2(&param)
c.Response(data, err)
}
... ... @@ -45,6 +45,6 @@ func (c *MessagePersonalController) TodayMessageTaskStageModify() {
userReq := middlewares.GetUser(c.Ctx)
param := command.GetUserMessageCommand{}
param.UserId = int(userReq.UserId)
data, err := srv.TodayMessageTaskStageModify(&param)
data, err := srv.TodayMessageTaskStageModifyV2(&param)
c.Response(data, err)
}
... ...