2025-12-18 01:13:19 +07:00
|
|
|
package ru.soune.nocopy.configuration;
|
|
|
|
|
|
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
import ru.soune.nocopy.handler.*;
|
|
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
@Configuration
|
|
|
|
|
public class HandlerConfig {
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
|
public Map<Integer, RequestHandler> handlers(
|
|
|
|
|
RegRequestHandler reg,
|
|
|
|
|
LoginRequestHandler login,
|
|
|
|
|
FileUploadHandler upload,
|
2025-12-21 16:19:12 +07:00
|
|
|
FileEntityHandler file,
|
2025-12-22 14:07:44 +07:00
|
|
|
LogoutRequestHandler logoutHandler,
|
2026-01-20 03:47:51 +07:00
|
|
|
ImageFoundRequestHandler imageFoundRequestHandler,
|
2026-01-21 12:02:38 +07:00
|
|
|
VerifyRegisterUserHandler verifyRegisterUser,
|
2026-01-29 19:24:36 +07:00
|
|
|
AuthRequestHandler authRequestHandler,
|
2026-02-02 15:00:18 +07:00
|
|
|
CompanyHandler companyHandler,
|
2026-02-02 15:47:58 +07:00
|
|
|
TariffHandler tariffHandler,
|
2026-02-06 19:27:25 +07:00
|
|
|
TariffInfoHandler tariffInfoHandler,
|
2026-02-12 15:36:45 +07:00
|
|
|
ReferralHandler referralHandler,
|
2026-02-17 20:17:34 +07:00
|
|
|
ResetPasswordHandler resetPasswordHandler,
|
2026-02-18 18:26:11 +07:00
|
|
|
DaDataHandler daDataHandler,
|
2026-02-27 17:57:55 +07:00
|
|
|
PaymentHandler paymentHandler,
|
2026-03-03 15:43:47 +07:00
|
|
|
CostHandler costHandler,
|
2026-03-10 22:47:43 +07:00
|
|
|
MonitoringHandler monitoringHandler,
|
2026-03-12 00:21:19 +07:00
|
|
|
ViolationHandler violationHandler,
|
2026-03-12 01:32:11 +07:00
|
|
|
ViolationStatisticsHandler violationStatisticsHandler,
|
2026-03-17 16:35:27 +07:00
|
|
|
GlobalSearchHandler globalSearchHandler,
|
2026-03-23 15:17:42 +07:00
|
|
|
ViolationNotionHandler violationNotionHandler,
|
2026-03-24 11:37:25 +07:00
|
|
|
ComplaintEntityHandler complaintEntityHandler,
|
2026-04-01 15:32:36 +07:00
|
|
|
UserInfoHandler userInfoHandler,
|
2026-04-04 17:38:20 +07:00
|
|
|
NotificationHandler notificationHandler,
|
2026-04-06 14:51:00 +07:00
|
|
|
UserVerificationHandler userVerificationHandler,
|
2026-04-10 20:13:59 +07:00
|
|
|
LawCaseHandler lawCaseHandler,
|
2026-04-15 17:32:07 +07:00
|
|
|
TokenOperationHandler tokenOperationHandler,
|
|
|
|
|
StatisticUserFilesHandler statisticUserHandler,
|
|
|
|
|
StatisticTariffInfoFileHandler statisticTariffInfoFileHandler
|
2025-12-18 01:13:19 +07:00
|
|
|
) {
|
|
|
|
|
Map<Integer, RequestHandler> map = new HashMap<>();
|
|
|
|
|
map.put(20001, login);
|
|
|
|
|
map.put(20002, reg);
|
|
|
|
|
map.put(20004, upload);
|
|
|
|
|
map.put(20005, file);
|
2025-12-21 16:19:12 +07:00
|
|
|
map.put(20006, logoutHandler);
|
2025-12-22 14:07:44 +07:00
|
|
|
map.put(20007, imageFoundRequestHandler);
|
2026-01-05 16:31:40 +07:00
|
|
|
map.put(20008, authRequestHandler);
|
2026-01-20 03:47:51 +07:00
|
|
|
map.put(20009, verifyRegisterUser);
|
2026-02-17 20:17:34 +07:00
|
|
|
map.put(20010, resetPasswordHandler);
|
2026-01-29 19:24:36 +07:00
|
|
|
map.put(30000, companyHandler);
|
2026-02-02 15:00:18 +07:00
|
|
|
map.put(30001, tariffHandler);
|
2026-02-02 15:47:58 +07:00
|
|
|
map.put(30002, tariffInfoHandler);
|
2026-02-06 19:27:25 +07:00
|
|
|
map.put(30003, referralHandler);
|
2026-02-12 15:36:45 +07:00
|
|
|
map.put(30004, daDataHandler);
|
2026-02-18 18:26:11 +07:00
|
|
|
map.put(30005, paymentHandler);
|
2026-02-27 17:57:55 +07:00
|
|
|
map.put(30007, monitoringHandler);
|
2026-03-03 15:43:47 +07:00
|
|
|
map.put(30008, costHandler);
|
2026-03-10 22:47:43 +07:00
|
|
|
map.put(30009, violationHandler);
|
2026-03-12 00:21:19 +07:00
|
|
|
map.put(30010, violationStatisticsHandler);
|
2026-03-12 01:32:11 +07:00
|
|
|
map.put(30011, globalSearchHandler);
|
2026-03-17 16:35:27 +07:00
|
|
|
map.put(30012, violationNotionHandler);
|
2026-03-23 15:17:42 +07:00
|
|
|
map.put(30013, complaintEntityHandler);
|
2026-03-24 11:37:25 +07:00
|
|
|
map.put(30014, userInfoHandler);
|
2026-04-01 15:32:36 +07:00
|
|
|
map.put(30015, notificationHandler);
|
2026-04-04 17:38:20 +07:00
|
|
|
map.put(30016, userVerificationHandler);
|
2026-04-06 14:51:00 +07:00
|
|
|
map.put(30017, lawCaseHandler);
|
2026-04-10 20:13:59 +07:00
|
|
|
map.put(30018, tokenOperationHandler);
|
2026-04-15 17:32:07 +07:00
|
|
|
map.put(30019, statisticUserHandler);
|
|
|
|
|
map.put(30020, statisticTariffInfoFileHandler);
|
2025-12-18 01:13:19 +07:00
|
|
|
|
|
|
|
|
return map;
|
|
|
|
|
}
|
|
|
|
|
}
|