Skip to content

Commit

Permalink
Merge pull request #70 from Map-Pin/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
seungheon123 authored Nov 8, 2023
2 parents 83745be + 4d7ab8b commit efa7182
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class LostController {
@ApiResponse(content = @Content(schema = @Schema(implementation = LostRegisterResponseDto.class)))
@PutMapping(value = "/lost/register", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
public ResponseEntity<?> registerLost(
@ModelAttribute("image") MultipartFile file,
@RequestPart("image") MultipartFile file,
@RequestPart("info") LostRegisterRequestDto lostRegisterRequestDto,
Authentication authentication) throws IOException {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class PostController {
@ApiResponse(responseCode ="200",description ="게시물 작성 성공",content = @Content(schema = @Schema(implementation = PostCreateResponseDto.class))),
@ApiResponse(responseCode ="400",description ="게시물 작성 실패",content = @Content(schema = @Schema(implementation = PostCreateResponseDto.class)))
})
@PutMapping(value = "/post/new",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
@PutMapping(value = "/post/register",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
public ResponseEntity<?> create(
@RequestPart("image")MultipartFile image,
@RequestPart("info") PostCreateRequestDto postCreateDto,
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/server/mappin/service/PostService.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public PostCreateResponseDto create(PostCreateRequestDto postCreateRequestDto, M
return PostCreateResponseDto.builder()
.statusCode(200)
.isSuccess("true")
.title(save.getTitle())
.postId(save.getId())
.memberId(member.getId())
.image(imageUrl)
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spring:
charset: UTF-8

hibernate:
ddl-auto : update
ddl-auto : create
properties:
hibernate :
#show_sql : true #??? ??? ??
Expand Down

0 comments on commit efa7182

Please sign in to comment.