Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

게시판 업데이트 수정 - 변경감지 기능 이용 #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
codej99 merged 1 commit into master from feature/board
May 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/main/java/com/rest/api/model/board/ParamsPost.java
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@Getter
@Setter
@NoArgsConstructor
public class ParamsPost {
@NotEmpty
@Max(50)
@Size(min = 2, max = 50)
@ApiModelProperty(value = "작성자명", required = true)
private String author;
@NotEmpty
@Max(100)
@Size(min = 2, max = 100)
@ApiModelProperty(value = "제목", required = true)
private String title;
@Max(500)
@Size(min = 2, max = 500)
@ApiModelProperty(value = "내용", required = true)
private String content;
}
2 changes: 1 addition & 1 deletion src/main/java/com/rest/api/service/board/BoardService.java
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public Post updatePost(long postId, String uid, ParamsPost paramsPost) {
throw new CNotOwnerException();

post.setUpdate(paramsPost.getAuthor(), paramsPost.getTitle(), paramsPost.getContent());
return postJpaRepo.save(post);
return post;
}

// 게시물을 삭제합니다. 게시물 등록자와 로그인 회원정보가 틀리면 CNotOwnerException 처리합니다.
Expand Down
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.rest.api.controller.v1.board;

public class BoardControllerTest {

}

AltStyle によって変換されたページ (->オリジナル) /