mirror of
https://github.com/tiennm99/store-scraper-bot-java.git
synced 2026-05-14 11:53:03 +00:00
refactor: old api
This commit is contained in:
+3
-3
@@ -1,7 +1,7 @@
|
||||
package com.miti99.storescraperbot.api.apple;
|
||||
package com.miti99.storescraperbot.api.old.apple;
|
||||
|
||||
import com.miti99.storescraperbot.api.apple.request.AppleAppRequest;
|
||||
import com.miti99.storescraperbot.api.apple.response.AppleAppResponse;
|
||||
import com.miti99.storescraperbot.api.old.apple.request.AppleAppRequest;
|
||||
import com.miti99.storescraperbot.api.old.apple.response.AppleAppResponse;
|
||||
import com.miti99.storescraperbot.repository.AppleAppRepository;
|
||||
import com.miti99.storescraperbot.util.GsonUtil;
|
||||
import java.net.URI;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.miti99.storescraperbot.api.apple.request;
|
||||
package com.miti99.storescraperbot.api.old.apple.request;
|
||||
|
||||
public record AppleAppRequest(Long id, String appId, String country, Boolean ratings) {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.miti99.storescraperbot.api.apple.response;
|
||||
package com.miti99.storescraperbot.api.old.apple.response;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
package com.miti99.storescraperbot.api.google;
|
||||
package com.miti99.storescraperbot.api.old.google;
|
||||
|
||||
import com.miti99.storescraperbot.api.google.request.GoogleAppRequest;
|
||||
import com.miti99.storescraperbot.api.google.response.GoogleAppResponse;
|
||||
import com.miti99.storescraperbot.api.old.google.request.GoogleAppRequest;
|
||||
import com.miti99.storescraperbot.api.old.google.response.GoogleAppResponse;
|
||||
import com.miti99.storescraperbot.repository.GoogleAppRepository;
|
||||
import com.miti99.storescraperbot.util.GsonUtil;
|
||||
import java.net.URI;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.miti99.storescraperbot.api.google.request;
|
||||
package com.miti99.storescraperbot.api.old.google.request;
|
||||
|
||||
public record GoogleAppRequest(String appId, String country) {
|
||||
public GoogleAppRequest(String appId) {
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.miti99.storescraperbot.api.google.response;
|
||||
package com.miti99.storescraperbot.api.old.google.response;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -0,0 +1,2 @@
|
||||
@Deprecated
|
||||
package com.miti99.storescraperbot.api.old;
|
||||
@@ -3,8 +3,8 @@ package com.miti99.storescraperbot.bot;
|
||||
import static com.miti99.storescraperbot.constant.Constant.VIETNAM_ZONE_ID;
|
||||
import static com.miti99.storescraperbot.constant.Constant.WEEKENDS;
|
||||
|
||||
import com.miti99.storescraperbot.api.apple.AppStoreScraper;
|
||||
import com.miti99.storescraperbot.api.google.GooglePlayScraper;
|
||||
import com.miti99.storescraperbot.api.old.apple.AppStoreScraper;
|
||||
import com.miti99.storescraperbot.api.old.google.GooglePlayScraper;
|
||||
import com.miti99.storescraperbot.bot.command.AddAppleAppCommand;
|
||||
import com.miti99.storescraperbot.bot.command.AddGoogleAppCommand;
|
||||
import com.miti99.storescraperbot.bot.command.AddGroupCommand;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package com.miti99.storescraperbot.bot.command;
|
||||
|
||||
import com.miti99.storescraperbot.api.apple.AppStoreScraper;
|
||||
import com.miti99.storescraperbot.api.apple.request.AppleAppRequest;
|
||||
import com.miti99.storescraperbot.api.apple.response.AppleAppResponse;
|
||||
import com.miti99.storescraperbot.api.old.apple.AppStoreScraper;
|
||||
import com.miti99.storescraperbot.api.old.apple.request.AppleAppRequest;
|
||||
import com.miti99.storescraperbot.api.old.apple.response.AppleAppResponse;
|
||||
import com.miti99.storescraperbot.bot.StoreScrapeBotTelegramClient;
|
||||
import com.miti99.storescraperbot.model.entity.AppleAppInfo;
|
||||
import com.miti99.storescraperbot.repository.AdminRepository;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package com.miti99.storescraperbot.bot.command;
|
||||
|
||||
import com.miti99.storescraperbot.api.google.GooglePlayScraper;
|
||||
import com.miti99.storescraperbot.api.google.request.GoogleAppRequest;
|
||||
import com.miti99.storescraperbot.api.google.response.GoogleAppResponse;
|
||||
import com.miti99.storescraperbot.api.old.google.GooglePlayScraper;
|
||||
import com.miti99.storescraperbot.api.old.google.request.GoogleAppRequest;
|
||||
import com.miti99.storescraperbot.api.old.google.response.GoogleAppResponse;
|
||||
import com.miti99.storescraperbot.bot.StoreScrapeBotTelegramClient;
|
||||
import com.miti99.storescraperbot.model.entity.GoogleAppInfo;
|
||||
import com.miti99.storescraperbot.repository.AdminRepository;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.miti99.storescraperbot.bot.command;
|
||||
|
||||
import com.miti99.storescraperbot.api.apple.AppStoreScraper;
|
||||
import com.miti99.storescraperbot.api.google.GooglePlayScraper;
|
||||
import com.miti99.storescraperbot.api.old.apple.AppStoreScraper;
|
||||
import com.miti99.storescraperbot.api.old.google.GooglePlayScraper;
|
||||
import com.miti99.storescraperbot.bot.StoreScrapeBotTelegramClient;
|
||||
import com.miti99.storescraperbot.bot.table.Table;
|
||||
import com.miti99.storescraperbot.constant.Constant;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.miti99.storescraperbot.bot.command;
|
||||
|
||||
import com.miti99.storescraperbot.api.apple.AppStoreScraper;
|
||||
import com.miti99.storescraperbot.api.google.GooglePlayScraper;
|
||||
import com.miti99.storescraperbot.api.old.apple.AppStoreScraper;
|
||||
import com.miti99.storescraperbot.api.old.google.GooglePlayScraper;
|
||||
import com.miti99.storescraperbot.bot.StoreScrapeBotTelegramClient;
|
||||
import com.miti99.storescraperbot.bot.table.Table;
|
||||
import com.miti99.storescraperbot.repository.AdminRepository;
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
package com.miti99.storescraperbot.bot.command;
|
||||
|
||||
import com.miti99.storescraperbot.api.apple.AppStoreScraper;
|
||||
import com.miti99.storescraperbot.api.apple.request.AppleAppRequest;
|
||||
import com.miti99.storescraperbot.api.old.apple.AppStoreScraper;
|
||||
import com.miti99.storescraperbot.api.old.apple.request.AppleAppRequest;
|
||||
import com.miti99.storescraperbot.bot.StoreScrapeBotTelegramClient;
|
||||
import com.miti99.storescraperbot.repository.AdminRepository;
|
||||
import com.miti99.storescraperbot.util.GsonUtil;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import lombok.SneakyThrows;
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
package com.miti99.storescraperbot.bot.command;
|
||||
|
||||
import com.miti99.storescraperbot.api.google.GooglePlayScraper;
|
||||
import com.miti99.storescraperbot.api.google.request.GoogleAppRequest;
|
||||
import com.miti99.storescraperbot.api.old.google.GooglePlayScraper;
|
||||
import com.miti99.storescraperbot.api.old.google.request.GoogleAppRequest;
|
||||
import com.miti99.storescraperbot.bot.StoreScrapeBotTelegramClient;
|
||||
import com.miti99.storescraperbot.repository.AdminRepository;
|
||||
import com.miti99.storescraperbot.util.GsonUtil;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import lombok.SneakyThrows;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.miti99.storescraperbot.model;
|
||||
|
||||
import com.miti99.storescraperbot.api.apple.response.AppleAppResponse;
|
||||
import com.miti99.storescraperbot.api.old.apple.response.AppleAppResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.miti99.storescraperbot.model;
|
||||
|
||||
import com.miti99.storescraperbot.api.google.response.GoogleAppResponse;
|
||||
import com.miti99.storescraperbot.api.old.google.response.GoogleAppResponse;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
|
||||
+3
-2
@@ -1,6 +1,7 @@
|
||||
package com.miti99.storescraperbot.api.apple;
|
||||
package com.miti99.storescraperbot.api.old.apple;
|
||||
|
||||
import com.miti99.storescraperbot.api.apple.request.AppleAppRequest;
|
||||
import com.miti99.storescraperbot.api.old.apple.AppStoreScraper;
|
||||
import com.miti99.storescraperbot.api.old.apple.request.AppleAppRequest;
|
||||
import com.miti99.storescraperbot.util.GsonUtil;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
+3
-2
@@ -1,6 +1,7 @@
|
||||
package com.miti99.storescraperbot.api.google;
|
||||
package com.miti99.storescraperbot.api.old.google;
|
||||
|
||||
import com.miti99.storescraperbot.api.google.request.GoogleAppRequest;
|
||||
import com.miti99.storescraperbot.api.old.google.GooglePlayScraper;
|
||||
import com.miti99.storescraperbot.api.old.google.request.GoogleAppRequest;
|
||||
import com.miti99.storescraperbot.util.GsonUtil;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
Reference in New Issue
Block a user