-
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
1 parent
0df3f59
commit 456d0bc
Showing
4 changed files
with
109 additions
and
9 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
application/src/main/kotlin/com/threedays/application/user/port/inbound/UpdateUserInfo.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,17 @@ | ||
package com.threedays.application.user.port.inbound | ||
|
||
import com.threedays.domain.user.entity.Location | ||
import com.threedays.domain.user.entity.User | ||
import com.threedays.domain.user.vo.JobOccupation | ||
|
||
interface UpdateUserInfo { | ||
|
||
fun invoke(command: Command): User | ||
|
||
data class Command( | ||
val userId: User.Id, | ||
val name: User.Name? = null, | ||
val jobOccupation: JobOccupation? = null, | ||
val locationIds: List<Location.Id>? = null, | ||
) | ||
} |
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