-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
.../main/kotlin/com/swm/idle/support/transfer/auth/center/CenterManagerForPendingResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package com.swm.idle.support.transfer.auth.center | ||
|
||
import com.swm.idle.domain.user.center.entity.jpa.CenterManager | ||
import io.swagger.v3.oas.annotations.media.Schema | ||
import java.util.* | ||
|
||
@Schema( | ||
name = "CenterManagerForPendingResponse", | ||
description = "센터 관리자 인증 대기 목록 조회 응답" | ||
) | ||
data class CenterManagerForPendingResponse( | ||
val pendingCenterManagers: List<PendingCenterManagerDto>?, | ||
) { | ||
|
||
data class PendingCenterManagerDto( | ||
@Schema(description = "센터 관리자 ID") | ||
val id: UUID, | ||
|
||
@Schema(description = "센터 관리자 로그인 ID") | ||
val identifier: String, | ||
|
||
@Schema(description = "센터 관리자 성명") | ||
val managerName: String, | ||
|
||
@Schema(description = "센터 사업자 등록 번호") | ||
val centerBusinessRegistrationNumber: String, | ||
|
||
@Schema(description = "센터 관리자 개인 연락처") | ||
val phoneNumber: String, | ||
) { | ||
|
||
companion object { | ||
|
||
fun of(centerManager: CenterManager): PendingCenterManagerDto { | ||
return PendingCenterManagerDto( | ||
id = centerManager.id, | ||
identifier = centerManager.identifier, | ||
managerName = centerManager.name, | ||
centerBusinessRegistrationNumber = centerManager.centerBusinessRegistrationNumber, | ||
phoneNumber = centerManager.phoneNumber | ||
) | ||
} | ||
|
||
} | ||
|
||
} | ||
|
||
companion object { | ||
|
||
fun of(pendingCenterManagerDtos: List<PendingCenterManagerDto>?): CenterManagerForPendingResponse { | ||
return CenterManagerForPendingResponse(pendingCenterManagerDtos) | ||
} | ||
|
||
} | ||
|
||
} |