Skip to content

Commit

Permalink
[FEAT/#226] 프로필 수정 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Sep 8, 2024
1 parent 8d630a4 commit 2b389c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ class MyPageDataSourceImpl @Inject constructor(

override suspend fun editProfile(
request: MyPageProfileEditRequestDto
): NonDataBaseResponse = myPageService.editProfile()
): NonDataBaseResponse = myPageService.editProfile(request)
}
6 changes: 5 additions & 1 deletion data/src/main/java/com/terning/data/service/MyPageService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ package com.terning.data.service

import com.terning.data.dto.BaseResponse
import com.terning.data.dto.NonDataBaseResponse
import com.terning.data.dto.request.MyPageProfileEditRequestDto
import com.terning.data.dto.response.MyPageResponseDto
import retrofit2.http.Body
import retrofit2.http.DELETE
import retrofit2.http.GET
import retrofit2.http.PATCH
Expand All @@ -19,5 +21,7 @@ interface MyPageService {
suspend fun getProfile(): BaseResponse<MyPageResponseDto>

@PATCH("api/v1/mypage/profile")
suspend fun editProfile(): NonDataBaseResponse
suspend fun editProfile(
@Body body: MyPageProfileEditRequestDto
): NonDataBaseResponse
}

0 comments on commit 2b389c8

Please sign in to comment.