feat: 마이페이지

- 상단에 최신 공지사항 추가
This commit is contained in:
2025-07-25 22:18:22 +09:00
parent 7ed5e921bd
commit 9361610647
6 changed files with 67 additions and 6 deletions

View File

@@ -14,4 +14,7 @@ interface NoticeApi {
@Query("size") size: Int,
@Header("Authorization") authHeader: String
): Single<ApiResponse<GetNoticeResponse>>
@GET("/notice/latest")
fun getLatestNotice(): Single<ApiResponse<NoticeItem>>
}

View File

@@ -12,4 +12,6 @@ class NoticeRepository(private val api: NoticeApi) {
): Single<ApiResponse<GetNoticeResponse>> {
return api.getNotices(TimeZone.getDefault().id, page, size, authHeader = token)
}
fun getLatestNotice() = api.getLatestNotice()
}