Skip to content

Commit

Permalink
🐛 유실물 조회 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
semi-cloud committed Apr 3, 2024
1 parent 0b645a4 commit 0d7b7e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ class SearchLostPostsDto {
val lostType: LostType,
val subwayLineId: Long?,
val origin: LostOrigin?,
val keyword: String?,
val lostPostId: Long,
val pageSize: Int,
val keyword: String?
) {
fun toCommand(pageable: Pageable): SearchLostPostCommand {
return SearchLostPostCommand(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ class LostPostControllerDocsTest: CommonDocsTestConfig() {
.queryParam("subwayLineId", "1")
.queryParam("origin", LostOrigin.LOST112.name)
.queryParam("keyword", "검색 키워드")
.queryParam("lostPostId", "100")
.queryParam("pageSize", "10" )
.queryParam("page", "0")
.queryParam("size", "10" )
.accept(MediaType.APPLICATION_JSON)
)

Expand All @@ -151,8 +151,8 @@ class LostPostControllerDocsTest: CommonDocsTestConfig() {
parameterWithName("subwayLineId").description("유실물 호선").optional(),
parameterWithName("origin").description("유실물 출처").attributes(getFormatAttribute( "LOST112 / APP")).optional(),
parameterWithName("keyword").description("검색 키워드 명칭").optional(),
parameterWithName("lostPostId").description("마지막으로 조회한 유실물 데이터의 ID"),
parameterWithName("pageSize").description("한번에 가져올 데이터 개수")
parameterWithName("page").description("현재 페이지"),
parameterWithName("size").description("페이지 노출 데이터 수. index 0부터 시작"),
),
responseFields(
*commonResponseFields(),
Expand Down

0 comments on commit 0d7b7e5

Please sign in to comment.