feat(agent-calculate): 소속 크리에이터 응답에 프로필 이미지를 추가한다

This commit is contained in:
2026-04-13 18:51:33 +09:00
parent f740041dca
commit 2c19e4b76c
9 changed files with 75 additions and 11 deletions
@@ -58,12 +58,14 @@ class AdminAgentReadCurrentMonthListSummaryTest @Autowired constructor(
private val snapshotRepository: AgentSettlementSnapshotRepository,
private val entityManager: EntityManager
) {
private val cloudFrontHost = "https://cdn.test"
private lateinit var repository: AdminAgentReadQueryRepository
private lateinit var calculateService: AgentCalculateService
@BeforeEach
fun setup() {
val calculateQueryRepository = AgentCalculateQueryRepository(queryFactory, entityManager)
val calculateQueryRepository = AgentCalculateQueryRepository(queryFactory, entityManager, cloudFrontHost)
repository = AdminAgentReadQueryRepository(queryFactory, calculateQueryRepository)
calculateService = AgentCalculateService(calculateQueryRepository, snapshotRepository)
registerMysqlDateFunctions()
@@ -55,6 +55,8 @@ class AdminAgentReadParityTest @Autowired constructor(
private val snapshotRepository: AgentSettlementSnapshotRepository,
private val entityManager: EntityManager
) {
private val cloudFrontHost = "https://cdn.test"
private var seededAgentId: Long = 0L
private lateinit var agentService: AgentCalculateService
private lateinit var adminService: AdminAgentReadService
@@ -62,7 +64,7 @@ class AdminAgentReadParityTest @Autowired constructor(
@BeforeEach
fun setup() {
registerMysqlDateFunctions()
val queryRepository = AgentCalculateQueryRepository(queryFactory, entityManager)
val queryRepository = AgentCalculateQueryRepository(queryFactory, entityManager, cloudFrontHost)
val adminQueryRepository = AdminAgentReadQueryRepository(queryFactory, queryRepository)
agentService = AgentCalculateService(queryRepository, snapshotRepository)
adminService = AdminAgentReadService(adminQueryRepository, memberRepository, agentService)
@@ -28,13 +28,15 @@ class AdminAgentReadQueryRepositoryTest @Autowired constructor(
private val relationRepository: AgentCreatorRelationRepository,
private val entityManager: EntityManager
) {
private val cloudFrontHost = "https://cdn.test"
private lateinit var repository: AdminAgentReadQueryRepository
@BeforeEach
fun setup() {
repository = AdminAgentReadQueryRepository(
queryFactory,
AgentCalculateQueryRepository(queryFactory, entityManager)
AgentCalculateQueryRepository(queryFactory, entityManager, cloudFrontHost)
)
}