-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
test : Post API Swagger 문서화 #51
- Loading branch information
Showing
4 changed files
with
45 additions
and
3 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
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
15 changes: 12 additions & 3 deletions
15
TogeDutch/src/main/java/com/proj/togedutch/dto/PostReqDto.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 |
---|---|---|
@@ -1,25 +1,34 @@ | ||
package com.proj.togedutch.dto; | ||
|
||
import com.proj.togedutch.domain.Post; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import lombok.*; | ||
|
||
import java.sql.Timestamp; | ||
|
||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class PostReqDto { | ||
@ApiModelProperty(example = "제목") | ||
private String title; | ||
@ApiModelProperty(example = "첨부한 URL") | ||
private String url; | ||
@ApiModelProperty(example = "배달팁") | ||
private int delivery_tips; | ||
@ApiModelProperty(example = "최소 주문 금액") | ||
private int minimum; | ||
@ApiModelProperty(example = "주문 시간") | ||
private String order_time; | ||
@ApiModelProperty(example = "모집 인원") | ||
private int num_of_recruits; | ||
@ApiModelProperty(example = "모집된 인원") | ||
private int recruited_num; | ||
@ApiModelProperty(example = "공고 상태") | ||
private String status; | ||
@ApiModelProperty(example = "위도") | ||
private Double latitude; | ||
@ApiModelProperty(example = "경도") | ||
private Double longitude; | ||
@ApiModelProperty(example = "카테고리") | ||
private String category; | ||
|
||
} |