feat: 마이페이지
- 상단에 최신 공지사항 추가
This commit is contained in:
@@ -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>>
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user