dev add notification entity
Test Workflow / test (push) Successful in 2s

This commit is contained in:
vladp
2026-04-01 15:32:36 +07:00
parent 549d248cb7
commit 051f1ef5d4
21 changed files with 543 additions and 28 deletions
@@ -0,0 +1,14 @@
package ru.soune.nocopy.entity.notification;
import lombok.Getter;
@Getter
public enum NotificationMessage {
FILE_SEARCH("notification.file.search");
private final String messageKey;
NotificationMessage(String messageKey) {
this.messageKey = messageKey;
}
}
@@ -1,19 +1,31 @@
package ru.soune.nocopy.entity.notification;
public enum NotificationType{
SEARCH_RESULT,
MONITORING_RESULT,
OPERATION_IMPOSSIBLE,
START_FAILED_NOW,
START_FAILED_NEXT,
PAYOUT_RESULT,
REFERRAL_DEPOSIT,
REFERRAL_REGISTERED,
REFERRAL_ACTIVATED,
COMPLAINT_STATUS_CHANGED,
CASE_STATUS_CHANGED,
INCOMING_MESSAGE,
TARIFF_EXPIRING,
FILE_MODERATION_EVENT,
FILE_ADDED_TO_SYSTEM
import lombok.Getter;
@Getter
public enum NotificationType {
SEARCH_RESULT("notification.search.result"),
MONITORING_RESULT("notification.monitoring.result"),
OPERATION_IMPOSSIBLE("notification.operation.impossible"),
START_FAILED_NOW("notification.start.failed.now"),
START_FAILED_NEXT("notification.start.failed.next"),
PAYOUT_RESULT("notification.payout.result"),
PAYMENT_RESULT("notification.payment.result"),
REFERRAL_DEPOSIT("notification.referral.deposit"),
REFERRAL_REGISTERED("notification.referral.registered"),
REFERRAL_ACTIVATED("notification.referral.activated"),
COMPLAINT_STATUS_CHANGED("notification.complaint.status"),
CASE_STATUS_CHANGED("notification.case.status"),
INCOMING_MESSAGE("notification.incoming.message"),
TARIFF_EXPIRING("notification.tariff.expiring"),
TOKEN_NOT_FOUND("notification.token.not.found"),
FILE_MODERATION_EVENT("notification.file.moderation"),
FILE_ADDED_TO_SYSTEM("notification.file.added"),
SEARCH_OPERATION_FAILED("notification.search.operation.filed");
private final String messageKey;
NotificationType(String messageKey) {
this.messageKey = messageKey;
}
}