From c9ead1b9a1cc6f2c9db2908388ed5131853b006c Mon Sep 17 00:00:00 2001 From: DongGeon0908 Date: Sat, 14 Sep 2024 00:23:46 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9E=98=EB=AA=BB=20=EA=B8=B0=EC=9E=85?= =?UTF-8?q?=EB=90=9C=20=EC=A3=BC=EC=84=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../presentation/DevEnvelopeResource.kt | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/api/src/main/kotlin/com/oksusu/susu/api/envelope/presentation/DevEnvelopeResource.kt b/api/src/main/kotlin/com/oksusu/susu/api/envelope/presentation/DevEnvelopeResource.kt index 98d0332f..83abb5a4 100644 --- a/api/src/main/kotlin/com/oksusu/susu/api/envelope/presentation/DevEnvelopeResource.kt +++ b/api/src/main/kotlin/com/oksusu/susu/api/envelope/presentation/DevEnvelopeResource.kt @@ -14,15 +14,26 @@ import org.springframework.web.bind.annotation.GetMapping import org.springframework.web.bind.annotation.RequestMapping import org.springframework.web.bind.annotation.RestController -@Tag(name = SwaggerTag.DEV_ENVELOPE_SWAGGER_TAG, description = "개발용 OAuth API") +@Tag(name = SwaggerTag.DEV_ENVELOPE_SWAGGER_TAG, description = "개발용 Envelope API") @RestController @RequestMapping(value = ["/api/v1/dev/envelopes"], produces = [MediaType.APPLICATION_JSON_VALUE]) class DevEnvelopeResource( private val envelopeFacade: EnvelopeFacade, ) { - @Operation(tags = [SwaggerTag.DEV_SWAGGER_TAG], summary = "hour summary 호출") - @GetMapping("/hour-summaries") - suspend fun getHourSummaries( + /** + * **검색조건** + * - uid: 조회할 대상 + * - types: SENT: 보낸 봉투만, RECEIVED: 받은 봉투만, 그외 케이스는 전체 봉투 정보 + * - friendName: 친구 이름으로 검색, ex) %동건% + * + * **정렬조건** + * - createdAt: 생성일 + * - amount: 봉투 금액 + * - handedOverAt: 전달일 + */ + @Operation(tags = [SwaggerTag.DEV_SWAGGER_TAG], summary = "봉투 검색") + @GetMapping + suspend fun search( adminUser: AdminUser, @ParameterObject request: DevSearchEnvelopeRequest, @ParameterObject pageRequest: SusuPageRequest,