Public Access
Refactor Steam adapter packages and update docs
Move steam_adapter sources from domain.* to modules.* and rename controller package to api. Update package declarations and imports across SteamTestController, SteamPlayerSummaryResponse, SteamClientConfig, and SteamApiService. Update README to re-label Controller -> API layer and Domain -> Business layer and adjust wording about layer boundaries. Also normalize file endings/newlines in several Java files. No functional logic changes were made.
This commit is contained in:
1 parent
a1b11882de
commit
1dc2efba01
11 files changed
+21
-16
No files matched your search
@@ -10,3 +10,4 @@ public class CoreServiceApplication {
|
||||
SpringApplication.run(CoreServiceApplication.class, args);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,3 +66,4 @@ public class JwtAuthenticationFilter extends OncePerRequestFilter {
|
||||
filterChain.doFilter(request, response);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,3 +13,4 @@ public class JwtConfig {
|
||||
|
||||
private String secret;
|
||||
}
|
||||
|
||||
@@ -53,3 +53,4 @@ public class JwtService {
|
||||
return Keys.hmacShaKeyFor(keyBytes);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,4 +64,4 @@ public class SecurityConfig {
|
||||
|
||||
return http.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
package core_service.domain.steam_adapter.controller;
|
||||
package core_service.modules.steam_adapter.api;
|
||||
|
||||
import core_service.domain.steam_adapter.controller.dto.response.SteamPlayerSummaryResponse;
|
||||
import core_service.domain.steam_adapter.service.SteamApiService;
|
||||
import core_service.modules.steam_adapter.api.dto.response.SteamPlayerSummaryResponse;
|
||||
import core_service.modules.steam_adapter.service.SteamApiService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
@@ -29,4 +29,4 @@ public class SteamTestController {
|
||||
return ResponseEntity.notFound().build();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
package core_service.domain.steam_adapter.controller.dto.response;
|
||||
package core_service.modules.steam_adapter.api.dto.response;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -12,4 +12,4 @@ public record SteamPlayerSummaryResponse(SteamResponse response) {
|
||||
String profileurl,
|
||||
String avatarfull
|
||||
) {}
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
package core_service.domain.steam_adapter.config;
|
||||
package core_service.modules.steam_adapter.config;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
@@ -13,4 +13,4 @@ public class SteamClientConfig {
|
||||
.baseUrl(baseUrl)
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
package core_service.domain.steam_adapter.service;
|
||||
package core_service.modules.steam_adapter.service;
|
||||
|
||||
import core_service.domain.steam_adapter.controller.dto.response.SteamPlayerSummaryResponse;
|
||||
import core_service.modules.steam_adapter.api.dto.response.SteamPlayerSummaryResponse;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
@@ -42,4 +42,4 @@ public class SteamApiService {
|
||||
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16,3 +16,4 @@ public record UserPrincipal(
|
||||
return Long.parseLong(id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user