-
Notifications
You must be signed in to change notification settings - Fork 6
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 #160 from JNU-econovation/aos
[AOS/FEAT] aos merge to main
- Loading branch information
Showing
77 changed files
with
2,327 additions
and
560 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.example.eeos | ||
|
||
import android.app.Application | ||
import dagger.hilt.android.HiltAndroidApp | ||
|
||
@HiltAndroidApp | ||
class EEOSApplication : Application() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package com.example.eeos.consts | ||
|
||
val category = listOf("all", "weekly", "president", "event", " etc") | ||
val programStatus = listOf("active", "end") | ||
|
||
val categoryChips: List<String> = listOf( | ||
"전체", | ||
"주간 발표", | ||
"회장단", | ||
"행사부", | ||
"기타 행사" | ||
) | ||
val programStatusChips: List<String> = listOf( | ||
"진행 중", | ||
"완료" | ||
) | ||
|
||
object ActiveStatus { | ||
const val am = "am" | ||
const val rm = "rm" | ||
const val cm = "cm" | ||
const val ob = "ob" | ||
} | ||
|
||
object Category { | ||
const val weekly = "weekly" | ||
const val president = "president" | ||
const val event = "event" | ||
const val etc = "etc" | ||
} | ||
|
||
object ProgramStatus { | ||
const val active = "active" | ||
const val end = "end" | ||
} | ||
|
||
object ProgramType { | ||
const val demand = " demand" | ||
const val notification = "notification" | ||
} | ||
|
||
object AttendStatus { | ||
const val attend = "attend" | ||
const val absent = "absent" | ||
const val perceive = "perceive" | ||
const val nonResponse = "nonResponse" | ||
const val nonRelated = "nonRelated" | ||
} | ||
|
||
val attendStatusMap = mapOf( | ||
"attend" to "참석", | ||
"absent" to "불참", | ||
"perceive" to "지각", | ||
"nonResponse" to "미정" | ||
) | ||
|
||
object MemberStatus { | ||
const val AM = "AM" | ||
const val RM = "RM" | ||
const val CM = "CM" | ||
const val OB = "OB" | ||
} |
12 changes: 12 additions & 0 deletions
12
...app/src/main/java/com/example/eeos/data/model/remote/request/RequestPutActiveStatusDto.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,12 @@ | ||
package com.example.eeos.data.model.remote.request | ||
|
||
import kotlinx.serialization.Contextual | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class RequestPutActiveStatusDto( | ||
@Contextual | ||
@SerialName("activeStatus") | ||
val activeStatus: String | ||
) |
15 changes: 15 additions & 0 deletions
15
...app/src/main/java/com/example/eeos/data/model/remote/request/RequestPutAttendStatusDto.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,15 @@ | ||
package com.example.eeos.data.model.remote.request | ||
|
||
import kotlinx.serialization.Contextual | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class RequestPutAttendStatusDto( | ||
@Contextual | ||
@SerialName("beforeAttendStatus") | ||
val beforeAttendStatus: String, | ||
@Contextual | ||
@SerialName("afterAttendStatus") | ||
val afterAttendStatus: String | ||
) |
27 changes: 27 additions & 0 deletions
27
...p/src/main/java/com/example/eeos/data/model/remote/response/ResponseGetActiveStatusDto.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,27 @@ | ||
package com.example.eeos.data.model.remote.response | ||
|
||
import com.example.eeos.domain.model.ActiveStatus | ||
import kotlinx.serialization.Contextual | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class ResponseGetActiveStatusDto( | ||
@SerialName("name") | ||
val name: String, | ||
@Contextual | ||
@SerialName("activeStatus") | ||
val activeStatus: String | ||
) { | ||
fun toActiveStatus(): ActiveStatus = | ||
ActiveStatus( | ||
name = name, | ||
activeStatus = when (activeStatus) { | ||
"am" -> "AM" | ||
"cm" -> "CM" | ||
"rm" -> "RM" | ||
"ob" -> "OB" | ||
else -> "" | ||
} | ||
) | ||
} |
21 changes: 21 additions & 0 deletions
21
...p/src/main/java/com/example/eeos/data/model/remote/response/ResponseGetAttendStatusDto.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,21 @@ | ||
package com.example.eeos.data.model.remote.response | ||
|
||
import com.example.eeos.domain.model.AttendStatus | ||
import kotlinx.serialization.Contextual | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class ResponseGetAttendStatusDto( | ||
@SerialName("name") | ||
val name: String, | ||
@Contextual | ||
@SerialName("activeStatus") | ||
val attendStatus: String | ||
) { | ||
fun toAttendStatus(): AttendStatus = | ||
AttendStatus( | ||
name = name, | ||
attendStatus = attendStatus | ||
) | ||
} |
30 changes: 30 additions & 0 deletions
30
...app/src/main/java/com/example/eeos/data/model/remote/response/ResponseGetMemberListDto.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,30 @@ | ||
package com.example.eeos.data.model.remote.response | ||
|
||
import com.example.eeos.domain.model.Member | ||
import kotlinx.serialization.Contextual | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class ResponseGetMemberListDto( | ||
@SerialName("members") | ||
val members: List<GetMemberDto> | ||
) { | ||
@Serializable | ||
data class GetMemberDto( | ||
@SerialName("memberId") | ||
val memberId: Int, | ||
@SerialName("name") | ||
val name: String, | ||
@Contextual | ||
@SerialName("attendStatus") | ||
val attendStatus: String | ||
) | ||
|
||
fun toMemberList(): List<Member> = members.map { member -> | ||
Member( | ||
name = member.name, | ||
attendStatus = member.attendStatus | ||
) | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
.../src/main/java/com/example/eeos/data/model/remote/response/ResponseGetProgramDetailDto.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,35 @@ | ||
package com.example.eeos.data.model.remote.response | ||
|
||
import com.example.eeos.domain.model.ProgramDetail | ||
import kotlinx.serialization.Contextual | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class ResponseGetProgramDetailDto( | ||
@SerialName("programId") | ||
val programId: Int, | ||
@SerialName("title") | ||
val title: String, | ||
@SerialName("deadLine") | ||
val deadLine: String, | ||
@SerialName("content") | ||
val content: String, | ||
@Contextual | ||
@SerialName("category") | ||
val category: String, | ||
@SerialName("programStatus") | ||
@Contextual | ||
val programStatus: String, | ||
@Contextual | ||
@SerialName("type") | ||
val type: String | ||
) { | ||
fun toProgramDetail(): ProgramDetail = ProgramDetail( | ||
title = title, | ||
deadLine = deadLine, | ||
content = content, | ||
category = category, | ||
type = type | ||
) | ||
} |
48 changes: 48 additions & 0 deletions
48
...pp/src/main/java/com/example/eeos/data/model/remote/response/ResponseGetProgramListDto.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,48 @@ | ||
package com.example.eeos.data.model.remote.response | ||
|
||
import com.example.eeos.domain.model.Program | ||
import kotlinx.serialization.Contextual | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class ResponseGetProgramListDto( | ||
@SerialName("size") | ||
val size: Int, | ||
@SerialName("page") | ||
val page: Int, | ||
@SerialName("totalPage") | ||
val totalPage: Int, | ||
@SerialName("programs") | ||
val programs: List<GetProgramDto> | ||
) { | ||
@Serializable | ||
data class GetProgramDto( | ||
@SerialName("programId") | ||
val programId: Int, | ||
@SerialName("title") | ||
val title: String, | ||
@SerialName("deadLine") | ||
val deadLine: String, | ||
@Contextual | ||
@SerialName("category") | ||
val category: String, | ||
@Contextual | ||
@SerialName("programStatus") | ||
val programStatus: String, | ||
@Contextual | ||
@SerialName("type") | ||
val type: String | ||
) | ||
|
||
fun toProgramList(): List<Program> = programs.map { program -> | ||
Program( | ||
programId = program.programId, | ||
title = program.title, | ||
deadLine = program.deadLine, | ||
category = program.category, | ||
programStatus = program.programStatus, | ||
type = program.type | ||
) | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...p/src/main/java/com/example/eeos/data/model/remote/response/ResponsePutActiveStatusDto.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,15 @@ | ||
package com.example.eeos.data.model.remote.response | ||
|
||
import com.example.eeos.consts.ActiveStatus | ||
import kotlinx.serialization.Contextual | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class ResponsePutActiveStatusDto( | ||
@SerialName("name") | ||
val name: String, | ||
@Contextual | ||
@SerialName("activeStatus") | ||
val activeStatus: ActiveStatus | ||
) |
Oops, something went wrong.