Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
018a224
fix: 게시글 저장 로직 수정
nueijeel Feb 2, 2026
2249ac3
fix: get user board list api 수정사항 반영
nueijeel Feb 2, 2026
64f0521
fix: get notification list api 수정사항 반영
nueijeel Feb 2, 2026
5738933
fix: get user board list api 파라미터 수정
nueijeel Feb 2, 2026
67ff3ea
fix: get has unread notification api 수정사항 반영
nueijeel Feb 2, 2026
b9b8164
fix: get notice list api 수정사항 반영
nueijeel Feb 2, 2026
faef6e5
fix: post inquiry api 수정사항 반영
nueijeel Feb 3, 2026
4af96c4
fix: patch user profile api 수정사항 반영
nueijeel Feb 3, 2026
26be004
fix: mypage header 아이콘 클릭 시 변수 초기화 시점 변경
nueijeel Feb 3, 2026
97723d2
fix: 임시저장 게시글 등록 로직 수정
nueijeel Feb 3, 2026
6df865e
fix: enroll 관련 api 수정사항 반영
nueijeel Feb 4, 2026
9699260
fix: get user profile by id api 수정사항 반영
nueijeel Feb 4, 2026
badbe87
fix: get notification response 수정
nueijeel Feb 4, 2026
f239e5d
fix: delete notification api 수정사항 반영
nueijeel Feb 4, 2026
0b8297c
fix: post user report api 수정사항 반영
nueijeel Feb 4, 2026
a5c32ea
fix: get requested enroll list api 수정사항 반영
nueijeel Feb 4, 2026
cdfe58c
fix: provider 값 수정
nueijeel Feb 4, 2026
735f576
fix: get enroll count api 수정사항 반영
nueijeel Feb 4, 2026
0372124
fix: post user block api 수정사항 반영
nueijeel Feb 4, 2026
9c5b1ff
fix: get inquiry api 수정사항 반영
nueijeel Feb 5, 2026
49a9cfd
fix: delete user block, get blocked user list api 수정사항 반영
nueijeel Feb 5, 2026
86957ce
fix: get received all enrolls api 수정사항 반영
nueijeel Feb 5, 2026
f32f8f8
fix: fix: get received enrolls api 수정사항 반영
nueijeel Feb 5, 2026
99fd281
fix: 유저 차단 목록 response dto, model 필드 수정
nueijeel Feb 5, 2026
e894b3f
fix: 공지사항 관련 api 수정
nueijeel Feb 5, 2026
60bc16f
fix: get inquiry api response body에 nickname 필드 추가
nueijeel Feb 5, 2026
a28bd85
fix: get chat room list api 수정사항 반영
nueijeel Feb 5, 2026
2ab37dd
fix: get user alarm api 호출 구현
nueijeel Feb 5, 2026
52ae03e
chore: domain 모듈 consumer rule 추가
nueijeel Feb 11, 2026
af5bc81
refactor: ktlint에 맞게 수정
nueijeel Feb 12, 2026
cbd1175
refactor: ktlint에 맞게 수정
nueijeel Feb 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CatchMate/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ android {
excludes.add("META-INF/DEPENDENCIES")
}
}

buildTypes {
release {
isMinifyEnabled = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules-release.pro",
)
}
}
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ internal fun Project.configureKotlinAndroid() {
)
}
getByName("release") {
isMinifyEnabled = true
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules-release.pro",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ interface BoardService {
@Query("size") size: Int? = null,
): Response<GetBoardListResponseDTO?>

@GET("boards/list/{userId}")
@GET("api/boards/users/{userId}")
suspend fun getUserBoardList(
@Path("userId") userId: Long,
@Query("page") page: Int,
@Query("size") size: Int,
): Response<GetUserBoardListResponseDTO?>

@GET("api/boards/{boardId}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ import retrofit2.http.Path
import retrofit2.http.Query

interface ChattingService {
@GET("chat-rooms/list")
@GET("api/chat/rooms")
suspend fun getChattingRoomList(
@Query("page") page: Int,
@Query("size") size: Int,
): Response<GetChattingRoomListResponseDTO?>

@GET("chat-rooms/{chatRoomId}/user-list")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package com.catchmate.data.datasource.remote
import com.catchmate.data.dto.enroll.DeleteEnrollResponseDTO
import com.catchmate.data.dto.enroll.GetAllReceivedEnrollResponseDTO
import com.catchmate.data.dto.enroll.GetEnrollNewCountResponseDTO
import com.catchmate.data.dto.enroll.GetEnrollResponseDTO
import com.catchmate.data.dto.enroll.GetReceivedEnrollResponseDTO
import com.catchmate.data.dto.enroll.GetRequestedEnrollListResponseDTO
import com.catchmate.data.dto.enroll.GetRequestedEnrollResponseDTO
import com.catchmate.data.dto.enroll.PatchEnrollAcceptResponseDTO
import com.catchmate.data.dto.enroll.PatchEnrollRejectResponseDTO
import com.catchmate.data.dto.enroll.PostEnrollRequestDTO
Expand All @@ -20,46 +20,50 @@ import retrofit2.http.Path
import retrofit2.http.Query

interface EnrollService {
@POST("enrolls/{boardId}")
@POST("api/boards/{boardId}/enrolls")
suspend fun postEnroll(
@Path("boardId") boardId: Long,
@Body postEnrollRequestDTO: PostEnrollRequestDTO,
): Response<PostEnrollResponseDTO?>

@PATCH("enrolls/{enrollId}/reject")
@PATCH("api/enrolls/{enrollId}/reject")
suspend fun patchEnrollReject(
@Path("enrollId") enrollId: Long,
): Response<PatchEnrollRejectResponseDTO?>

@PATCH("enrolls/{enrollId}/accept")
@PATCH("api/enrolls/{enrollId}/accept")
suspend fun patchEnrollAccept(
@Path("enrollId") enrollId: Long,
): Response<PatchEnrollAcceptResponseDTO?>

@GET("enrolls/{boardId}/description")
suspend fun getRequestedEnroll(
@Path("boardId") boardId: Long,
): Response<GetRequestedEnrollResponseDTO?>
@GET("api/enrolls/{enrollId}")
suspend fun getEnroll(
@Path("enrollId") enrollId: Long,
): Response<GetEnrollResponseDTO?>

@GET("enrolls/request")
@GET("api/enrolls/request")
suspend fun getRequestedEnrollList(
@Query("page") page: Int,
@Query("size") size: Int,
): Response<GetRequestedEnrollListResponseDTO?>

@GET("enrolls/receive")
@GET("api/enrolls/receive")
suspend fun getReceivedEnroll(
@Query("boardId") boardId: Long,
@Query("page") page: Int,
@Query("size") size: Int,
): Response<GetReceivedEnrollResponseDTO?>

@GET("enrolls/receive/all")
@GET("api/enrolls/receive/all")
suspend fun getAllReceivedEnroll(
@Query("page") page: Int,
@Query("size") size: Int,
): Response<GetAllReceivedEnrollResponseDTO?>

@GET("enrolls/new-count")
@GET("api/enrolls/count")
suspend fun getEnrollNewCount(): Response<GetEnrollNewCountResponseDTO?>

@DELETE("enrolls/cancel/{enrollId}")
@DELETE("api/enrolls/{enrollId}")
suspend fun deleteEnroll(
@Path("enrollId") enrollId: Long,
): Response<DeleteEnrollResponseDTO?>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.catchmate.data.datasource.remote

import com.catchmate.data.dto.notification.DeleteReceivedNotificationResponseDTO
import com.catchmate.data.dto.notification.GetReceivedNotificationListResponseDTO
import com.catchmate.data.dto.notification.GetHasUnreadNotificationResponseDto
import com.catchmate.data.dto.notification.GetNotificationListResponseDTO
import com.catchmate.data.dto.notification.GetReceivedNotificationResponseDTO
import retrofit2.Response
import retrofit2.http.DELETE
Expand All @@ -10,18 +11,22 @@ import retrofit2.http.Path
import retrofit2.http.Query

interface NotificationService {
@GET("notifications/receive")
suspend fun getReceivedNotificationList(
@GET("api/notifications")
suspend fun getNotificationList(
@Query("page") page: Int,
): Response<GetReceivedNotificationListResponseDTO?>
@Query("size") size: Int,
): Response<GetNotificationListResponseDTO?>

@GET("api/notifications/unread")
suspend fun getHasUnreadNotification(): Response<GetHasUnreadNotificationResponseDto>

@GET("notifications/receive/{notificationId}")
suspend fun getReceivedNotification(
@Path("notificationId") notificationId: Long,
): Response<GetReceivedNotificationResponseDTO?>

@DELETE("notifications/receive/{notificationId}")
suspend fun deleteReceivedNotification(
@DELETE("api/notifications/{notificationId}")
suspend fun deleteNotification(
@Path("notificationId") notificationId: Long,
): Response<DeleteReceivedNotificationResponseDTO?>
): Response<Unit>
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,28 @@ import retrofit2.http.Path
import retrofit2.http.Query

interface SupportService {
@GET("inquiries/{inquiryId}")
@GET("api/inquiries/{inquiryId}")
suspend fun getInquiry(
@Path("inquiryId") inquiryId: Long,
): Response<GetInquiryResponseDTO?>

@POST("inquiries")
@POST("api/inquiries")
suspend fun postInquiry(
@Body postInquiryRequestDTO: PostInquiryRequestDTO,
): Response<PostInquiryResponseDTO?>

@POST("reports/{reportedUserId}")
@POST("api/reports")
suspend fun postUserReport(
@Path("reportedUserId") reportedUserId: Long,
@Body postUserReportRequestDTO: PostUserReportRequestDTO,
): Response<PostUserReportResponseDTO?>

@GET("notices/list")
@GET("api/notices")
suspend fun getNoticeList(
@Query("page") page: Int,
@Query("size") size: Int,
): Response<GetNoticeListResponseDTO?>

@GET("notices/{noticeId}")
@GET("api/notices/{noticeId}")
suspend fun getNoticeDetail(
@Path("noticeId") noticeId: Long,
): Response<NoticeInfoDTO?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.catchmate.data.dto.user.DeleteBlockedUserResponseDTO
import com.catchmate.data.dto.user.DeleteUserAccountResponseDTO
import com.catchmate.data.dto.user.GetBlockedUserListResponseDTO
import com.catchmate.data.dto.user.GetCheckNicknameResponseDTO
import com.catchmate.data.dto.user.GetUnreadInfoResponseDTO
import com.catchmate.data.dto.user.GetUserAlarmResponseDto
import com.catchmate.data.dto.user.GetUserProfileByIdResponseDTO
import com.catchmate.data.dto.user.GetUserProfileResponseDTO
import com.catchmate.data.dto.user.PatchUserAlarmResponseDTO
Expand Down Expand Up @@ -34,22 +34,23 @@ interface UserService {
@GET("api/users/profile")
suspend fun getUserProfile(): Response<GetUserProfileResponseDTO?>

@GET("users/profile/{profileUserId}")
@GET("api/users/profile/{profileUserId}")
suspend fun getUserProfileById(
@Path("profileUserId") profileUserId: Long,
): Response<GetUserProfileByIdResponseDTO?>

@GET("users/block")
@GET("api/users/blocks")
suspend fun getBlockedUserList(
@Query("page") page: Int,
@Query("size") size: Int,
): Response<GetBlockedUserListResponseDTO?>

@GET("users/has-unread")
suspend fun getUnreadInfo(): Response<GetUnreadInfoResponseDTO?>
@GET("api/users/alarm")
suspend fun getUserAlarmState(): Response<GetUserAlarmResponseDto?>

@POST("users/block/{blockedUserId}")
@POST("api/users/blocks/{targetUserId}")
suspend fun postUserBlock(
@Path("blockedUserId") blockedUserId: Long,
@Path("targetUserId") targetUserId: Long,
): Response<PostUserBlockResponseDTO?>

@POST("api/users/additional-info")
Expand All @@ -58,7 +59,7 @@ interface UserService {
): Response<PostUserAdditionalInfoResponseDTO?>

@Multipart
@PATCH("users/profile")
@PATCH("api/users/profile")
suspend fun patchUserProfile(
@Part("request") request: RequestBody,
@Part profileImage: MultipartBody.Part,
Expand All @@ -70,9 +71,9 @@ interface UserService {
@Query("isEnabled") isEnabled: Boolean,
): Response<PatchUserAlarmResponseDTO?>

@DELETE("users/block/{blockedUserId}")
@DELETE("api/users/blocks/{targetUserId}")
suspend fun deleteBlockedUser(
@Path("blockedUserId") blockedUserId: Long,
@Path("targetUserId") targetUserId: Long,
): Response<DeleteBlockedUserResponseDTO?>

@DELETE("users/withdraw")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ data class GetBoardResponseDTO(
val liftUpDate: String,
val bookMarked: Boolean,
val buttonStatus: String,
val chatRoomId: Long?,
val myEnrollId: Long,
val chatRoomId: Long,
val cheerClub: ClubDTO,
val game: GameInfoDTO,
val user: UserInfoDTO,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.catchmate.data.dto.board

data class GetUserBoardListResponseDTO(
val boardInfoList: List<BoardDTO>,
val content: List<BoardDTO>,
val pageNumber: Int,
val totalPages: Int,
val totalElements: Int,
val isFirst: Boolean,
val isLast: Boolean,
val hasNext: Boolean,
)
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package com.catchmate.data.dto.board

data class PostBoardRequestDTO(
val boardId: Long? = null, // 임시저장 완성 시 임시저장 게시글 boardId 삽입, 새 게시글 생성 시 null
val title: String?,
val content: String?,
val maxPerson: Int?,
val cheerClubId: Int?,
val preferredGender: String?,
val preferredAgeRange: List<String>?,
val completed: Boolean, // 임시 저장 시 false, 게시글 작성 시 true
val gameRequest: GameRequestDto?,
val completed: Boolean, // 임시 저장 시 false, 게시글 등록 시 true
val gameCreateRequest: GameRequestDto?,
) // 임시 저장 시 미입력 항목은 전부 null로 보냄
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
package com.catchmate.data.dto.board

import com.catchmate.data.dto.enroll.GameInfoDTO
import com.catchmate.data.dto.enroll.UserInfoDTO
import com.catchmate.data.dto.user.ClubDTO

data class PostBoardResponseDTO(
val boardId: Long,
val title: String,
val content: String,
val currentPerson: Int,
val maxPerson: Int,
val bookMarked: Boolean,
val cheerClub: ClubDTO,
val gameResponse: GameInfoDTO,
val userResponse: UserInfoDTO,
val createdAt: String,
)
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ data class PutBoardRequestDTO(
val preferredGender: String?,
val preferredAgeRange: List<String>?,
val completed: Boolean,
val gameRequest: GameRequestDto,
val gameUpdateRequest: GameRequestDto,
)
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
package com.catchmate.data.dto.board

import com.catchmate.data.dto.enroll.GameInfoDTO
import com.catchmate.data.dto.enroll.UserInfoDTO
import com.catchmate.data.dto.user.ClubDTO

data class PutBoardResponseDTO(
val boardId: Long,
val title: String,
val content: String,
val currentPerson: Int,
val maxPerson: Int,
val bookMarked: Boolean,
val cheerClub: ClubDTO,
val gameResponse: GameInfoDTO,
val userResponse: UserInfoDTO,
val createdAt: String,
)
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ import com.catchmate.data.dto.board.BoardDTO

data class ChatRoomInfoDTO(
val chatRoomId: Long,
val boardInfo: BoardDTO,
val participantCount: Int,
val lastMessageAt: String?,
val lastMessageContent: String?,
val chatRoomImage: String,
val unreadMessageCount: Int,
val isNewChatRoom: Boolean,
val isNotificationEnabled: Boolean,
val board: BoardDTO,
val lastMessage: LastMessageInfoDto?,
val createdAt: String,
)
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.catchmate.data.dto.chatting

data class GetChattingRoomListResponseDTO(
val chatRoomInfoList: List<ChatRoomInfoDTO>,
val content: List<ChatRoomInfoDTO>,
val pageNumber: Int,
val totalPages: Int,
val totalElements: Int,
val isFirst: Boolean,
val isLast: Boolean,
val hasNext: Boolean,
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.catchmate.data.dto.chatting

data class LastMessageInfoDto(
val messageId: Long,
val chatRoomId: Long,
val senderId: Long,
val senderNickName: String,
val senderProfileImageUrl: String,
val content: String,
val messageType: String,
val createdAt: String,
)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.catchmate.data.dto.enroll

data class AllReceivedEnrollInfoResponseDTO(
val boardInfo: EnrollBoardInfoDTO,
val enrollReceiveInfoList: List<ReceivedEnrollInfoDTO>,
val boardResponse: EnrollBoardInfoDTO,
val enrollResponses: List<ReceivedEnrollInfoDTO>,
)
Loading