-
Notifications
You must be signed in to change notification settings - Fork 0
π :: (#462) κ΄μ¬ λΆμΌ μ ν κΈ°λ₯ ꡬν #465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
uson1004
merged 71 commits into
develop
from
feature/462-κ΄μ¬-λΆμΌ-μ ν-κΈ°λ₯-ꡬν
Jul 2, 2025
The head ref may contain hidden characters: "feature/462-\uAD00\uC2EC-\uBD84\uC57C-\uC120\uD0DD-\uAE30\uB2A5-\uAD6C\uD604"
Merged
Changes from 58 commits
Commits
Show all changes
71 commits
Select commit
Hold shift + click to select a range
de1f6a3
feat :: κ΄μ¬ λΆμΌ μ ν viewmodel μμ±
uson1004 3be3909
refactor :: κ΄μ¬ λΆμΌ νμ΄μ§ λ€λΉκ²μ΄μ
λ±λ‘
uson1004 1a09dc2
chore :: μλ² url μΆκ°
uson1004 1928a5f
feat :: κ΄μ¬ λΆμΌ data class model μμ±
uson1004 5fecb10
feat :: κ΄μ¬ λΆμΌ api μμ±
uson1004 78e537d
refactor :: κ΄μ¬ λΆμΌ λ€λΉκ²μ΄μ
λ±λ‘
uson1004 36a12fa
refactor :: api model μ΄λ¦ λ³κ²½
uson1004 3e95ef4
feat :: κ΄μ¬ λΆμΌ dataSource ꡬν
uson1004 3752a33
feat :: κ΄μ¬ λΆμΌ Repository ꡬν
uson1004 5837000
feat :: κ΄μ¬ λΆμΌ UseCase ꡬν
uson1004 4a3429c
refactor :: api ν¨μ μ΄λ¦ λͺ
μΉ λ³κ²½
uson1004 a7dcde0
feat :: κ΄μ¬ λΆμΌ Entity ꡬν
uson1004 15a1c46
refactor :: Interests λͺ¨λ namespace λ³κ²½
uson1004 c6351da
refactor :: data λͺ¨λΈ JsonClass λ±λ‘
uson1004 72cc1dc
chore :: κ΄μ¬λΆμΌ network μμ‘΄μ± μΆκ°
uson1004 6a30378
refactor :: κ΄μ¬ λΆμΌ λ‘μ§ μ΄λ¦ λ³κ²½
uson1004 5b26033
feat :: κ΄μ¬ λΆμΌ μμ‘΄μ± μ£Όμ
uson1004 192f26a
feat :: κ΄μ¬ λΆμΌ ViewModel ꡬν
uson1004 7c86d38
Merge remote-tracking branch 'origin/feature/462-κ΄μ¬-λΆμΌ-μ ν-κΈ°λ₯-ꡬν' intoβ¦
uson1004 baa0c24
chore :: ktlint check
uson1004 024dd5e
feat :: string 리μμ€ μΆκ°
uson1004 95cacff
refactor :: κ΄μ¬ λΆμΌ UI 리ν©ν λ§
uson1004 2a52e81
feat :: κ΄μ¬ λΆμΌ UI νΌλΈλ¦¬μ±
uson1004 4917e85
build :: νλ‘μ νΈ namespace λ³κ²½
uson1004 eeeba7d
refactor :: usecase entity λ°μ΄ν°λ‘ λ³κ²½
uson1004 393bfc7
refactor :: UseCase μ΄λ¦ api λͺ
μΉκ³Ό λμΌνκ² λ³κ²½
uson1004 6b7b6b8
refactor :: κ΄μ¬ λͺ¨μ§μλ’°μ μ‘°ν entityλ‘ λ§€ν
uson1004 bfe0e4f
refactor :: κ΄μ¬ λΆμΌ μ€μ request κ° λ¦¬μ€νΈλ‘ λ³κ²½
uson1004 1603aad
refactor :: κ΄μ¬ λΆμΌ viewModel κΈ°λ₯ ν¨μ ꡬν
uson1004 56fa277
refactor :: κ΄μ¬ λͺ¨μ§μλ’°μ μ‘°ν UseCase μ΄λ¦ λ³κ²½
uson1004 14b26dd
refactor :: κ΄μ¬ λΆμΌ λ°μ΄ν° λͺ¨λΈ ꡬ쑰 λ³κ²½
uson1004 1b29f7c
refactor :: κ΄μ¬ λΆμΌ dataSource νμΌ μ΄λ¦ λ³κ²½
uson1004 1d3f2d0
feat :: κ΄μ¬ λΆμΌ νμ μ΄λ¦ Uiμ ꡬν
uson1004 1e5b7af
feat :: κ΄μ¬ λΆμΌ UI μ
λ°μ΄νΈ
uson1004 538000d
chore :: success drawable μΆκ°
uson1004 573802b
feat :: κ΄μ¬ λΆμΌ λ±λ‘ μλ£ navigationμ λ±λ‘
uson1004 83bc78f
feat :: InterestsComplete main navigator λ±λ‘
uson1004 505957f
feat :: κ΄μ¬ λΆμΌ μλ£ νμ΄μ§ μ΄λ μ΄λ²€νΈ ꡬν
uson1004 bd71497
feat :: κ΄μ¬ λΆμΌ μλ£ viewmodel ꡬν
uson1004 9ebc0e7
feat :: μ ν λ²νΌ νμ±ν ꡬν
uson1004 07eb11c
feat :: κ΄μ¬ λΆμΌ button enable μ²λ¦¬
uson1004 6130521
feat :: κ΄μ¬ λΆμΌ μλ£ νμ΄μ§ νΌλΈλ¦¬μ±
uson1004 da1fdc2
feat :: mypage screen navigator λ±λ‘
uson1004 3dec46d
feat :: κ΄μ¬λΆμΌ viewmodel μ 곡 μ‘°ν λ° μ ν ꡬν
uson1004 0576641
feat :: λͺ¨λ μ 곡 μ‘°νκ° μ μ₯
uson1004 d1f27d8
chore :: μ 곡 μ¬λ¬κ° μ νλκ² κ΅¬ν
uson1004 0245745
feat :: init interestsComplete viewModel
uson1004 379e0fa
feat :: κ΄μ¬ λΆμΌ μλ£ UI ꡬν
uson1004 69aac0b
chore :: ktlint change
uson1004 7c34719
feat :: κ΄μ¬λΆμΌ -> κ΄μ¬λΆμΌμλ£ μ΄λ ν¨μ λ±λ‘
uson1004 2baa77a
feat :: κ΄μ¬ μ 곡 api λ‘μ§ μ°κ²° ꡬν
uson1004 2aaad10
refactor :: κ΄μ¬ λΆμΌ ν κΈ api request μ΄λ¦ μ€μ
uson1004 f983cfc
refactor :: κ΄μ¬λΆμΌ ν κΈ νμ
λ³κ²½
uson1004 0a0e995
feat :: κ΄μ¬λΆμΌ request model μμ±
uson1004 39e8fde
refactor :: μΈμ νμ
data class λͺ¨λΈλ‘ λ³κ²½
uson1004 34fc51c
refactor :: κ΄μ¬ λΆμΌ μ μ©
uson1004 6650b8c
feat :: κ΄μ¬ λΆμΌ μλ£ argument ꡬν
uson1004 2e4b78d
refactor :: mypage navigator 미ꡬν
uson1004 d8ceb92
chore :: ktlint refactoring
uson1004 3ffa70b
chore :: ktlint change
uson1004 050d321
refactor :: μ΄μ μ μ νλ μ 곡λ ν΄μ λλλ‘ λ³κ²½
uson1004 b565488
fix :: dev url μ¨κΉ
uson1004 964bbfa
refactor :: string value μ μ©
uson1004 a8d7c8f
refator :: μν λ³κ²½ κ° viewmodelλ‘ κ΅¬ν
uson1004 93772d6
refactor :: κ΄μ¬λΆμΌ λ±λ‘ ν¨μ μμΈμ²λ¦¬
uson1004 b78bdb5
refactor :: viewmodelμμ interests button μν λ³κ²½
uson1004 0b2b6d8
refactor :: UI λ‘μ§ ν¨μ UI μ€λ λμμ μμ
νλλ‘ λ³κ²½
uson1004 335b3ba
chore :: hilt compile errorλ‘ μΈν νμΌ μμ±
uson1004 6e5f4b6
chore :: ktlint change
uson1004 68147b9
refactor :: columnμΌλ‘ κ΄μ¬λΆμΌ μ€μ μ λ ¬
uson1004 ab502e2
chore :: ktlint check
uson1004 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
11 changes: 11 additions & 0 deletions
11
core/data/src/main/java/team/retum/data/repository/interests/InterestsRepository.kt
This file contains hidden or 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,11 @@ | ||
| package team.retum.data.repository.interests | ||
|
|
||
| import team.retum.network.model.request.interests.InterestsToggleRequest | ||
| import team.retum.network.model.response.interests.FetchInterestsRecruitmentsResponse | ||
| import team.retum.network.model.response.interests.FetchInterestsResponse | ||
|
|
||
| interface InterestsRepository { | ||
| suspend fun setInterestsToggle(codes: InterestsToggleRequest) | ||
| suspend fun fetchInterests(): FetchInterestsResponse | ||
| suspend fun fetchInterestsSearchRecruitments(): FetchInterestsRecruitmentsResponse | ||
| } |
21 changes: 21 additions & 0 deletions
21
core/data/src/main/java/team/retum/data/repository/interests/InterestsRepositoryImpl.kt
This file contains hidden or 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,21 @@ | ||
| package team.retum.data.repository.interests | ||
|
|
||
| import team.retum.network.datasource.interests.InterestsDataSource | ||
| import team.retum.network.model.request.interests.InterestsToggleRequest | ||
| import team.retum.network.model.response.interests.FetchInterestsRecruitmentsResponse | ||
| import team.retum.network.model.response.interests.FetchInterestsResponse | ||
| import javax.inject.Inject | ||
|
|
||
| class InterestsRepositoryImpl @Inject constructor( | ||
| private val interestsDataSource: InterestsDataSource, | ||
| ) : InterestsRepository { | ||
| override suspend fun setInterestsToggle(codes: InterestsToggleRequest) { | ||
| interestsDataSource.setInterestsToggle(codes = codes) | ||
| } | ||
|
|
||
| override suspend fun fetchInterests(): FetchInterestsResponse = | ||
| interestsDataSource.fetchInterests() | ||
|
|
||
| override suspend fun fetchInterestsSearchRecruitments(): FetchInterestsRecruitmentsResponse = | ||
| interestsDataSource.fetchInterestsSearchRecruitments() | ||
| } |
This file contains hidden or 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 @@ | ||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:width="68dp" | ||
| android:height="68dp" | ||
| android:viewportWidth="68" | ||
| android:viewportHeight="68"> | ||
| <path | ||
| android:pathData="M29.333,49.333L52.833,25.833L48.167,21.167L29.333,40L19.833,30.5L15.167,35.167L29.333,49.333ZM34,67.333C29.389,67.333 25.056,66.458 21,64.708C16.944,62.958 13.417,60.583 10.417,57.583C7.417,54.583 5.042,51.056 3.292,47C1.542,42.944 0.667,38.611 0.667,34C0.667,29.389 1.542,25.056 3.292,21C5.042,16.944 7.417,13.417 10.417,10.417C13.417,7.417 16.944,5.042 21,3.292C25.056,1.542 29.389,0.667 34,0.667C38.611,0.667 42.944,1.542 47,3.292C51.056,5.042 54.583,7.417 57.583,10.417C60.583,13.417 62.958,16.944 64.708,21C66.458,25.056 67.333,29.389 67.333,34C67.333,38.611 66.458,42.944 64.708,47C62.958,51.056 60.583,54.583 57.583,57.583C54.583,60.583 51.056,62.958 47,64.708C42.944,66.458 38.611,67.333 34,67.333Z" | ||
| android:fillColor="#2F53FF"/> | ||
| </vector> |
29 changes: 29 additions & 0 deletions
29
core/domain/src/main/java/team/retum/usecase/entity/interests/InterestsEntity.kt
This file contains hidden or 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,29 @@ | ||
| package team.retum.usecase.entity.interests | ||
|
|
||
| import androidx.compose.runtime.Immutable | ||
| import team.retum.network.model.response.interests.FetchInterestsResponse | ||
|
|
||
| @Immutable | ||
| data class InterestsEntity( | ||
| val studentName: String, | ||
| val interests: List<InterestMajorEntity>, | ||
| ) { | ||
| data class InterestMajorEntity( | ||
| val id: Int, | ||
| val studentId: Int, | ||
| val code: Int, | ||
| val keyword: String, | ||
| ) | ||
| } | ||
|
|
||
| internal fun FetchInterestsResponse.toEntity() = InterestsEntity( | ||
| studentName = this.studentName, | ||
| interests = this.interests.map { it.toEntity() }, | ||
| ) | ||
|
|
||
| private fun FetchInterestsResponse.InterestMajor.toEntity() = InterestsEntity.InterestMajorEntity( | ||
| id = this.id, | ||
| studentId = this.studentId, | ||
| code = this.code, | ||
| keyword = this.keyword, | ||
| ) |
34 changes: 34 additions & 0 deletions
34
core/domain/src/main/java/team/retum/usecase/entity/interests/InterestsRecruitmentEntity.kt
This file contains hidden or 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,34 @@ | ||
| package team.retum.usecase.entity.interests | ||
|
|
||
| import androidx.compose.runtime.Immutable | ||
| import team.retum.network.model.response.interests.FetchInterestsRecruitmentsResponse | ||
|
|
||
| @Immutable | ||
| data class InterestsRecruitmentsEntity( | ||
| val recruitments: List<InterestsRecruitmentEntity>, | ||
| ) { | ||
| data class InterestsRecruitmentEntity( | ||
| val id: Int, | ||
| val companyId: String, | ||
| val companyProfileUrl: String, | ||
| val trainPay: Int, | ||
| val militarySupport: Boolean, | ||
| val hiringJobs: String, | ||
| val bookmarked: Boolean, | ||
| ) | ||
| } | ||
|
|
||
| internal fun FetchInterestsRecruitmentsResponse.toEntity() = InterestsRecruitmentsEntity( | ||
| recruitments = this.recruitments.map { it.toEntity() }, | ||
| ) | ||
|
|
||
| private fun FetchInterestsRecruitmentsResponse.InterestRecruitments.toEntity() = | ||
| InterestsRecruitmentsEntity.InterestsRecruitmentEntity( | ||
| id = this.id, | ||
| companyId = this.companyId, | ||
| companyProfileUrl = this.companyProfileUrl, | ||
| trainPay = this.trainPay, | ||
| militarySupport = this.militarySupport, | ||
| hiringJobs = this.hiringJobs, | ||
| bookmarked = this.bookmarked, | ||
| ) |
13 changes: 13 additions & 0 deletions
13
...main/java/team/retum/usecase/usecase/interests/FetchInterestsSearchRecruitmentsUseCase.kt
This file contains hidden or 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,13 @@ | ||
| package team.retum.usecase.usecase.interests | ||
|
|
||
| import team.retum.data.repository.interests.InterestsRepository | ||
| import team.retum.usecase.entity.interests.toEntity | ||
| import javax.inject.Inject | ||
|
|
||
| class FetchInterestsSearchRecruitmentsUseCase @Inject constructor( | ||
| private val interestsRepository: InterestsRepository, | ||
| ) { | ||
| suspend operator fun invoke() = runCatching { | ||
| interestsRepository.fetchInterestsSearchRecruitments().toEntity() | ||
| } | ||
| } |
13 changes: 13 additions & 0 deletions
13
core/domain/src/main/java/team/retum/usecase/usecase/interests/FetchInterestsUseCase.kt
This file contains hidden or 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,13 @@ | ||
| package team.retum.usecase.usecase.interests | ||
|
|
||
| import team.retum.data.repository.interests.InterestsRepository | ||
| import team.retum.usecase.entity.interests.toEntity | ||
| import javax.inject.Inject | ||
|
|
||
| class FetchInterestsUseCase @Inject constructor( | ||
| private val interestsRepository: InterestsRepository, | ||
| ) { | ||
| suspend operator fun invoke() = runCatching { | ||
| interestsRepository.fetchInterests().toEntity() | ||
| } | ||
| } |
13 changes: 13 additions & 0 deletions
13
core/domain/src/main/java/team/retum/usecase/usecase/interests/SetInterestsToggleUseCase.kt
This file contains hidden or 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,13 @@ | ||
| package team.retum.usecase.usecase.interests | ||
|
|
||
| import team.retum.data.repository.interests.InterestsRepository | ||
| import team.retum.network.model.request.interests.InterestsToggleRequest | ||
| import javax.inject.Inject | ||
|
|
||
| class SetInterestsToggleUseCase @Inject constructor( | ||
| private val interestsRepository: InterestsRepository, | ||
| ) { | ||
| suspend operator fun invoke(codes: InterestsToggleRequest) = runCatching { | ||
| interestsRepository.setInterestsToggle(codes = codes) | ||
| } | ||
| } |
This file contains hidden or 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
22 changes: 22 additions & 0 deletions
22
core/network/src/main/java/team/retum/network/api/InterestsApi.kt
This file contains hidden or 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,22 @@ | ||
| package team.retum.network.api | ||
|
|
||
| import retrofit2.http.Body | ||
| import retrofit2.http.GET | ||
| import retrofit2.http.PATCH | ||
| import team.retum.network.di.RequestUrls | ||
| import team.retum.network.model.request.interests.InterestsToggleRequest | ||
| import team.retum.network.model.response.interests.FetchInterestsRecruitmentsResponse | ||
| import team.retum.network.model.response.interests.FetchInterestsResponse | ||
|
|
||
| interface InterestsApi { | ||
| @PATCH(RequestUrls.Interests.interests) | ||
| suspend fun setInterestsToggle( | ||
| @Body codes: InterestsToggleRequest, | ||
| ) | ||
|
|
||
| @GET(RequestUrls.Interests.interests) | ||
| suspend fun fetchInterests(): FetchInterestsResponse | ||
|
|
||
| @GET(RequestUrls.Interests.interestsRecruitments) | ||
| suspend fun fetchInterestsSearchRecruitments(): FetchInterestsRecruitmentsResponse | ||
| } |
11 changes: 11 additions & 0 deletions
11
core/network/src/main/java/team/retum/network/datasource/interests/InterestsDataSource.kt
This file contains hidden or 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,11 @@ | ||
| package team.retum.network.datasource.interests | ||
|
|
||
| import team.retum.network.model.request.interests.InterestsToggleRequest | ||
| import team.retum.network.model.response.interests.FetchInterestsRecruitmentsResponse | ||
| import team.retum.network.model.response.interests.FetchInterestsResponse | ||
|
|
||
| interface InterestsDataSource { | ||
| suspend fun setInterestsToggle(codes: InterestsToggleRequest) | ||
| suspend fun fetchInterests(): FetchInterestsResponse | ||
| suspend fun fetchInterestsSearchRecruitments(): FetchInterestsRecruitmentsResponse | ||
| } |
30 changes: 30 additions & 0 deletions
30
.../network/src/main/java/team/retum/network/datasource/interests/InterestsDataSourceImpl.kt
This file contains hidden or 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,30 @@ | ||
| package team.retum.network.datasource.interests | ||
|
|
||
| import team.retum.network.api.InterestsApi | ||
| import team.retum.network.model.request.interests.InterestsToggleRequest | ||
| import team.retum.network.model.response.interests.FetchInterestsRecruitmentsResponse | ||
| import team.retum.network.model.response.interests.FetchInterestsResponse | ||
| import team.retum.network.util.RequestHandler | ||
| import javax.inject.Inject | ||
|
|
||
| class InterestsDataSourceImpl @Inject constructor( | ||
| private val interestsApi: InterestsApi, | ||
| ) : InterestsDataSource { | ||
| override suspend fun setInterestsToggle(codes: InterestsToggleRequest) { | ||
| RequestHandler<Unit>().request { | ||
| interestsApi.setInterestsToggle(codes = codes) | ||
| } | ||
| } | ||
|
|
||
| override suspend fun fetchInterests(): FetchInterestsResponse { | ||
| return RequestHandler<FetchInterestsResponse>().request { | ||
| interestsApi.fetchInterests() | ||
| } | ||
| } | ||
|
|
||
| override suspend fun fetchInterestsSearchRecruitments(): FetchInterestsRecruitmentsResponse { | ||
| return RequestHandler<FetchInterestsRecruitmentsResponse>().request { | ||
| interestsApi.fetchInterestsSearchRecruitments() | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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
...etwork/src/main/java/team/retum/network/model/request/interests/InterestsToggleRequest.kt
This file contains hidden or 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 @@ | ||
| package team.retum.network.model.request.interests | ||
|
|
||
| import com.squareup.moshi.Json | ||
| import com.squareup.moshi.JsonClass | ||
|
|
||
| @JsonClass(generateAdapter = true) | ||
| data class InterestsToggleRequest( | ||
| @Json(name = "code_ids") val codeIds: List<Long>, | ||
| ) |
19 changes: 19 additions & 0 deletions
19
...in/java/team/retum/network/model/response/interests/FetchInterestsRecruitmentsResponse.kt
This file contains hidden or 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,19 @@ | ||
| package team.retum.network.model.response.interests | ||
|
|
||
| import com.squareup.moshi.Json | ||
| import com.squareup.moshi.JsonClass | ||
|
|
||
| @JsonClass(generateAdapter = true) | ||
| data class FetchInterestsRecruitmentsResponse( | ||
| @Json(name = "recruitments") val recruitments: List<InterestRecruitments>, | ||
| ) { | ||
| data class InterestRecruitments( | ||
| @Json(name = "id") val id: Int, | ||
| @Json(name = "company_id") val companyId: String, | ||
| @Json(name = "company_profile_url") val companyProfileUrl: String, | ||
| @Json(name = "train_pay") val trainPay: Int, | ||
| @Json(name = "military_support") val militarySupport: Boolean, | ||
| @Json(name = "hiring_jobs") val hiringJobs: String, | ||
| @Json(name = "bookmarked") val bookmarked: Boolean, | ||
| ) | ||
| } |
17 changes: 17 additions & 0 deletions
17
...twork/src/main/java/team/retum/network/model/response/interests/FetchInterestsResponse.kt
This file contains hidden or 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 team.retum.network.model.response.interests | ||
|
|
||
| import com.squareup.moshi.Json | ||
| import com.squareup.moshi.JsonClass | ||
|
|
||
| @JsonClass(generateAdapter = true) | ||
| data class FetchInterestsResponse( | ||
| @Json(name = "student_name") val studentName: String, | ||
| @Json(name = "interests") val interests: List<InterestMajor>, | ||
| ) { | ||
| data class InterestMajor( | ||
| @Json(name = "id") val id: Int, | ||
| @Json(name = "student_id") val studentId: Int, | ||
| @Json(name = "code") val code: Int, | ||
| @Json(name = "keyword") val keyword: String, | ||
| ) | ||
| } |
This file contains hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.