generated from GSM-MSG/MSG-Repository-Generator
-
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.
Merge pull request #517 from School-of-Company/514-update/university-…
…requirements-reflection 🔀 :: 514 대학 요구사항 변경 반영
- Loading branch information
Showing
16 changed files
with
254 additions
and
19 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
bitgouel-api/src/main/kotlin/team/msg/domain/university/mapper/UniversityRequestMapper.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 |
---|---|---|
@@ -1,8 +1,14 @@ | ||
package team.msg.domain.university.mapper | ||
|
||
import team.msg.domain.university.presentation.data.request.CreateDepartmentRequest | ||
import team.msg.domain.university.presentation.data.request.CreateUniversityRequest | ||
import team.msg.domain.university.presentation.data.request.UpdateUniversityRequest | ||
import team.msg.domain.university.presentation.data.web.CreateDepartmentWebRequest | ||
import team.msg.domain.university.presentation.data.web.CreateUniversityWebRequest | ||
import team.msg.domain.university.presentation.data.web.UpdateUniversityWebRequest | ||
|
||
interface UniversityRequestMapper { | ||
fun createUniversityWebRequestToDto(webRequest: CreateUniversityWebRequest): CreateUniversityRequest | ||
fun updateUniversityWebRequestToDto(webRequest: UpdateUniversityWebRequest): UpdateUniversityRequest | ||
fun createDepartmentWebRequestToDto(webRequest: CreateDepartmentWebRequest): CreateDepartmentRequest | ||
} |
15 changes: 14 additions & 1 deletion
15
...i/src/main/kotlin/team/msg/domain/university/mapper/UniversityRequestRequestMapperImpl.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 |
---|---|---|
@@ -1,15 +1,28 @@ | ||
package team.msg.domain.university.mapper | ||
|
||
import org.springframework.stereotype.Component | ||
import team.msg.domain.university.presentation.data.request.CreateDepartmentRequest | ||
import team.msg.domain.university.presentation.data.request.CreateUniversityRequest | ||
import team.msg.domain.university.presentation.data.request.UpdateUniversityRequest | ||
import team.msg.domain.university.presentation.data.web.CreateDepartmentWebRequest | ||
import team.msg.domain.university.presentation.data.web.CreateUniversityWebRequest | ||
import team.msg.domain.university.presentation.data.web.UpdateUniversityWebRequest | ||
|
||
@Component | ||
class UniversityRequestRequestMapperImpl : UniversityRequestMapper { | ||
|
||
override fun createUniversityWebRequestToDto(webRequest: CreateUniversityWebRequest) : CreateUniversityRequest = | ||
CreateUniversityRequest( | ||
department = webRequest.department, | ||
universityName = webRequest.universityName | ||
) | ||
|
||
override fun updateUniversityWebRequestToDto(webRequest: UpdateUniversityWebRequest): UpdateUniversityRequest = | ||
UpdateUniversityRequest( | ||
universityName = webRequest.universityName | ||
) | ||
|
||
override fun createDepartmentWebRequestToDto(webRequest: CreateDepartmentWebRequest): CreateDepartmentRequest = | ||
CreateDepartmentRequest( | ||
department = webRequest.department | ||
) | ||
} |
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
5 changes: 5 additions & 0 deletions
5
...in/kotlin/team/msg/domain/university/presentation/data/request/CreateDepartmentRequest.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,5 @@ | ||
package team.msg.domain.university.presentation.data.request | ||
|
||
data class CreateDepartmentRequest( | ||
val department: String | ||
) |
1 change: 0 additions & 1 deletion
1
...in/kotlin/team/msg/domain/university/presentation/data/request/CreateUniversityRequest.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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
package team.msg.domain.university.presentation.data.request | ||
|
||
data class CreateUniversityRequest( | ||
val department: String, | ||
val universityName: String | ||
) |
5 changes: 5 additions & 0 deletions
5
...in/kotlin/team/msg/domain/university/presentation/data/request/UpdateUniversityRequest.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,5 @@ | ||
package team.msg.domain.university.presentation.data.request | ||
|
||
data class UpdateUniversityRequest( | ||
val universityName: String | ||
) |
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
8 changes: 8 additions & 0 deletions
8
...ain/kotlin/team/msg/domain/university/presentation/data/web/CreateDepartmentWebRequest.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,8 @@ | ||
package team.msg.domain.university.presentation.data.web | ||
|
||
import javax.validation.constraints.NotBlank | ||
|
||
data class CreateDepartmentWebRequest( | ||
@field:NotBlank | ||
val department: String | ||
) |
4 changes: 3 additions & 1 deletion
4
...ain/kotlin/team/msg/domain/university/presentation/data/web/CreateUniversityWebRequest.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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
package team.msg.domain.university.presentation.data.web | ||
|
||
import javax.validation.constraints.NotBlank | ||
|
||
data class CreateUniversityWebRequest( | ||
val department: String, | ||
@field:NotBlank | ||
val universityName: String | ||
) |
8 changes: 8 additions & 0 deletions
8
...ain/kotlin/team/msg/domain/university/presentation/data/web/UpdateUniversityWebRequest.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,8 @@ | ||
package team.msg.domain.university.presentation.data.web | ||
|
||
import javax.validation.constraints.NotBlank | ||
|
||
data class UpdateUniversityWebRequest( | ||
@field:NotBlank | ||
val universityName: String | ||
) |
8 changes: 6 additions & 2 deletions
8
bitgouel-api/src/main/kotlin/team/msg/domain/university/service/UniversityService.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 |
---|---|---|
@@ -1,11 +1,15 @@ | ||
package team.msg.domain.university.service | ||
|
||
import team.msg.domain.university.presentation.data.response.UniversitiesResponse | ||
import team.msg.domain.university.presentation.data.request.CreateDepartmentRequest | ||
import team.msg.domain.university.presentation.data.request.CreateUniversityRequest | ||
import java.util.* | ||
import team.msg.domain.university.presentation.data.request.UpdateUniversityRequest | ||
import team.msg.domain.university.presentation.data.response.UniversitiesResponse | ||
|
||
interface UniversityService { | ||
fun createUniversity(request: CreateUniversityRequest) | ||
fun updateUniversity(id: Long, request: UpdateUniversityRequest) | ||
fun deleteUniversity(id: Long) | ||
fun queryUniversities(): UniversitiesResponse | ||
fun createDepartment(id: Long, request: CreateDepartmentRequest) | ||
fun deleteDepartment(id: Long, department: String) | ||
} |
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
Oops, something went wrong.