-
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.
hardcoded token 사용 -> 수정 예정 fun showError() 추가 fun connectServer() 추가 import java.util.* -> java.util.Calendar로 수정
- Loading branch information
Showing
3 changed files
with
53 additions
and
19 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
app/src/main/java/com/teamhousing/housing/network/HousingService.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,14 +1,23 @@ | ||
package com.teamhousing.housing.network | ||
|
||
import com.teamhousing.housing.ui.calender.RequestCalendarData | ||
import com.teamhousing.housing.vo.RequestLoginData | ||
import com.teamhousing.housing.vo.ResponseCalendarData | ||
import com.teamhousing.housing.vo.ResponseLoginData | ||
import retrofit2.Call | ||
import retrofit2.http.Body | ||
import retrofit2.http.Header | ||
import retrofit2.http.Headers | ||
import retrofit2.http.POST | ||
|
||
interface HousingService { | ||
@Headers("Content-Type:application/json") | ||
@POST("/user/login") | ||
fun postLogin(@Body body : RequestLoginData) : Call<ResponseLoginData> | ||
|
||
@POST("/calendar/month") | ||
fun postCalendar( | ||
@Header("jwt") token: String?, | ||
@Body body: RequestCalendarData | ||
) : Call<ResponseCalendarData> | ||
} |
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
6 changes: 6 additions & 0 deletions
6
app/src/main/java/com/teamhousing/housing/ui/calender/RequestCalendarData.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,6 @@ | ||
package com.teamhousing.housing.ui.calender | ||
|
||
data class RequestCalendarData ( | ||
val select_year : Int, | ||
val select_month : Int | ||
) |