Skip to content

Commit

Permalink
Merge pull request #6 from AND-SOPT-SERVER/seminar-deep/#1
Browse files Browse the repository at this point in the history
[FEAT] : 1차 세미나 과제 선택 구현
  • Loading branch information
sansan20535 authored Oct 12, 2024
2 parents f250626 + 95b176a commit 13458b3
Show file tree
Hide file tree
Showing 11 changed files with 466 additions and 43 deletions.
124 changes: 124 additions & 0 deletions .idea/uiDesigner.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

88 changes: 67 additions & 21 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions diary.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
1 test
3 test3
4 testest
2 update
1 change: 1 addition & 0 deletions id.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4
10 changes: 8 additions & 2 deletions src/main/java/org/sopt/week1/DiaryController.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ final List<Diary> getList() {
}

final void post(final String body) {
if (body.length() > 30) {
throw new IllegalArgumentException();
if (TextUtils.getLengthOfBody(body) > 30) {
throw new IllegalArgumentException("30자 이하로 적어주세요");

}
diaryService.writeDiary(body);
}
Expand All @@ -38,6 +39,11 @@ final void patch(final String id, final String body) {
diaryService.updateDiary(Long.parseLong(id), body);
}

final void restore() {
diaryService.restoreDiaryList();
}


enum Status {
READY,
RUNNING,
Expand Down
Loading

0 comments on commit 13458b3

Please sign in to comment.