-
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.
- Loading branch information
Showing
6 changed files
with
125 additions
and
0 deletions.
There are no files selected for viewing
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
27 changes: 27 additions & 0 deletions
27
server/src/main/java/com/yogit/server/board/dto/request/GetAllBoardsByCityReq.java
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,27 @@ | ||
package com.yogit.server.board.dto.request; | ||
|
||
import io.swagger.annotations.ApiModelProperty; | ||
import io.swagger.annotations.ApiParam; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
public class GetAllBoardsByCityReq { | ||
|
||
@ApiModelProperty(example = "1") | ||
@ApiParam(value = "유저 ID", required = true) | ||
private Long userId; | ||
|
||
@ApiModelProperty(example = "1") | ||
@ApiParam(value = "페이징 조회 페이지", required = true) | ||
private int cursor; | ||
|
||
@ApiModelProperty(example = "SEOUL") | ||
@ApiParam(value = "City 이름", required = true) | ||
private String cityName; | ||
|
||
@ApiModelProperty(example = "reb5085c395164587b84ac583d023011f.0.sryrq.IDLsECw-rsTozfsX0Yz-CA") | ||
@ApiParam(value = "애플 리프레쉬 토큰", required = true) | ||
private String refreshToken; | ||
} |
33 changes: 33 additions & 0 deletions
33
server/src/main/java/com/yogit/server/board/dto/response/GetAllBoardsByCityRes.java
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,33 @@ | ||
package com.yogit.server.board.dto.response; | ||
|
||
import io.swagger.annotations.ApiModelProperty; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
public class GetAllBoardsByCityRes { | ||
|
||
@ApiModelProperty(example = "[보드1, 보드2]", value = "보드 리스트") | ||
private List<GetAllBoardRes> getAllBoardResList; | ||
|
||
@ApiModelProperty(example = "10", value = "페이징 전체 페이지") | ||
private int totalPage; | ||
|
||
@Builder | ||
public GetAllBoardsByCityRes(List<GetAllBoardRes> getAllBoardResList, int totalPage) { | ||
this.getAllBoardResList = getAllBoardResList; | ||
this.totalPage = totalPage; | ||
} | ||
|
||
|
||
public static GetAllBoardsByCityRes toDto(List<GetAllBoardRes> getAllBoardResList, int totalPage){ | ||
return GetAllBoardsByCityRes.builder() | ||
.getAllBoardResList(getAllBoardResList) | ||
.totalPage(totalPage) | ||
.build(); | ||
} | ||
} |
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
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
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