通知媒介可以设置发送频率

This commit is contained in:
GoEdgeLab
2021-08-24 15:46:53 +08:00
parent 17b9eee78d
commit 8c1771331f
5 changed files with 22 additions and 6 deletions

View File

@@ -82,6 +82,7 @@ func (this *MessageTaskService) FindSendingMessageTasks(ctx context.Context, req
Type: instance.MediaType,
},
ParamsJSON: []byte(instance.Params),
RateJSON: []byte(instance.Rate),
},
}
} else { // 没有指定既定的接收人
@@ -106,6 +107,7 @@ func (this *MessageTaskService) FindSendingMessageTasks(ctx context.Context, req
Type: instance.MediaType,
},
ParamsJSON: []byte(instance.Params),
RateJSON: []byte(instance.Rate),
},
}
}
@@ -350,6 +352,7 @@ func (this *MessageTaskService) ListMessageTasksWithStatus(ctx context.Context,
Type: instance.MediaType,
},
ParamsJSON: []byte(instance.Params),
RateJSON: []byte(instance.Rate),
},
}
} else { // 没有指定既定的接收人
@@ -375,6 +378,7 @@ func (this *MessageTaskService) ListMessageTasksWithStatus(ctx context.Context,
Type: instance.MediaType,
},
ParamsJSON: []byte(instance.Params),
RateJSON: []byte(instance.Rate),
},
}
}