Skip to content
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

feat: 맵별 공지사항 보여주는 기능 추가 #821

Merged
merged 5 commits into from
May 8, 2022

Conversation

sakjung
Copy link
Collaborator

@sakjung sakjung commented May 6, 2022

구현 기능

  • 공지사항 추가 api + map 테이블 notice 칼럼 추가
  • 맵 조회시 공지사항, 슬랙url 필드 추가

Close #811 #818

Copy link
Collaborator

@tributetothemoon tributetothemoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

구우욷!

@Description("100자 이상 공지사항이 들어오면 예외를 반환한다.")
void noticeLengthOverSizeLimit() {
NoticeCreateRequest noticeCreateRequest = new NoticeCreateRequest(
"iamtenwordiamtenwordiamtenwordiamtenwordiamtenwordiamtenwordiamtenwordiamtenwordiamtenwordiamtenword1");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ㅋㅋㅋㅋㅋㅋㅋ

@xrabcde xrabcde changed the title feat: 공지사항 관련 수정 작업 feat: 맵별 공지사항 보여주는 기능 추가 May 6, 2022
@xrabcde xrabcde linked an issue May 6, 2022 that may be closed by this pull request
5 tasks
@PostMapping("/{mapId}/notice")
public ResponseEntity<Void> createNotice(
@PathVariable final Long mapId,
@RequestBody final NoticeCreateRequest noticeCreateRequest,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@RequestBody final NoticeCreateRequest noticeCreateRequest,
@Valid @RequestBody final NoticeCreateRequest noticeCreateRequest,

🤔

Comment on lines +23 to +24
final String slackUrl,
final String notice,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

Copy link
Collaborator

@xrabcde xrabcde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다 ~ 💯

Copy link
Collaborator

@dusdn1702 dusdn1702 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다~

@Getter
@NoArgsConstructor
public class NoticeCreateRequest {
@Size(max = 100, message = DESCRIPTION_MESSAGE)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Max 100인데 lob이네용
별 상관은 없겠지만~

@xrabcde xrabcde merged commit 3f197cb into dev May 8, 2022
@xrabcde xrabcde deleted the feat/811-map-notice branch May 8, 2022 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants