-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-Authored-By: Youngkyu Song <[email protected]>
- Loading branch information
1 parent
2f25021
commit 4afb7ba
Showing
6 changed files
with
37 additions
and
3 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
14 changes: 14 additions & 0 deletions
14
...er/DataLayer/PhotoGetherData/PhotoGetherData/Interface/Message/NotifyNewUserMessage.swift
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,14 @@ | ||
import Foundation | ||
import PhotoGetherDomainInterface | ||
|
||
public struct NotifyNewUserMessage: Decodable { | ||
public let newUser: UserDTO | ||
|
||
public init(newUser: UserDTO) { | ||
self.newUser = newUser | ||
} | ||
|
||
public func toEntity() -> NotifyNewUserEntity { | ||
NotifyNewUserEntity(newUser: self.newUser.toEntity()) | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...DomainLayer/PhotoGetherDomain/PhotoGetherDomainInterface/Entity/NotifyNewUserEntity.swift
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,9 @@ | ||
import Foundation | ||
|
||
public struct NotifyNewUserEntity { | ||
public let newUser: UserEntity | ||
|
||
public init(newUser: UserEntity) { | ||
self.newUser = newUser | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
PhotoGetherServer/PhotoGetherServer/Sources/App/DTO/JoinRoomResponseDTO.swift
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
9 changes: 9 additions & 0 deletions
9
PhotoGetherServer/PhotoGetherServer/Sources/App/DTO/NotifyNewUserResponseDTO.swift
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,9 @@ | ||
import Foundation | ||
|
||
package struct NotifyNewUserResponseDTO: Encodable { | ||
let newUser: UserDTO | ||
|
||
package init(newUser: UserDTO) { | ||
self.newUser = newUser | ||
} | ||
} |
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