Added search by notification template content (#3)

This commit is contained in:
vitaxa 2021-06-28 17:38:11 +03:00 committed by GitHub
parent 9ae5db286f
commit a184600eaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@ struct RangeDateFilter {
}
struct NotificationTemplatePartyRequest {
1: required NotificationTemplateId id
1: required NotificationTemplateId template_id
2: optional NotificationStatus status
3: optional ContinuationToken continuation_token
4: optional i32 limit
@ -76,13 +76,14 @@ struct NotificationTemplatePartyResponse {
struct NotificationTemplateSearchRequest {
1: optional string title
2: optional DateFilter date
3: optional ContinuationToken continuation_token
4: optional i32 limit
2: optional string content
3: optional DateFilter date
4: optional ContinuationToken continuation_token
5: optional i32 limit
}
struct NotificationTemplateSearchResponse {
1: required list<NotificationTemplate> result
1: required list<NotificationTemplate> notification_templates
2: optional ContinuationToken continuation_token
}
@ -132,8 +133,14 @@ service NotificationService {
/* Отправка уведомления выбранным мерчантам */
void sendNotification(1: NotificationTemplateId template_id, 2: list<PartyID> party_ids)
throws (
1: NotificationTemplateNotFound ex1,
)
/* Отправка уведомления для всех мерчантов */
void sendNotificationAll(1: NotificationTemplateId template_id)
throws (
1: NotificationTemplateNotFound ex1,
)
}