Skip to content

Commit

Permalink
Merge pull request #226 from dionisos198/Refactor/#219-bug-refactor
Browse files Browse the repository at this point in the history
Refactor/#219 bug refactor
  • Loading branch information
dionisos198 authored Dec 5, 2024
2 parents d92b26a + 923fe51 commit bebd3c3
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.gaduationproject.cre8.adminapp.communityBoard.controller;

import com.gaduationproject.cre8.app.auth.interfaces.CurrentMemberLoginId;
import com.gaduationproject.cre8.app.community.dto.request.CommunityBoardSaveRequestDto;
import com.gaduationproject.cre8.adminapp.communityBoard.dto.CommunityBoardResponseDto;
import com.gaduationproject.cre8.adminapp.communityBoard.dto.request.CommunityBoardSaveRequestDto;
import com.gaduationproject.cre8.app.community.dto.response.CommunityBoardResponseDto;
import com.gaduationproject.cre8.adminapp.communityBoard.service.CommunityBoardService;
import com.gaduationproject.cre8.app.response.BaseResponse;
import io.swagger.v3.oas.annotations.Operation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gaduationproject.cre8.app.community.dto.request;
package com.gaduationproject.cre8.adminapp.communityBoard.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.gaduationproject.cre8.adminapp.communityBoard.service;

import com.gaduationproject.cre8.app.community.dto.request.CommunityBoardSaveRequestDto;
import com.gaduationproject.cre8.adminapp.communityBoard.dto.CommunityBoardResponseDto;
import com.gaduationproject.cre8.adminapp.communityBoard.dto.request.CommunityBoardSaveRequestDto;
import com.gaduationproject.cre8.app.community.dto.response.CommunityBoardResponseDto;
import com.gaduationproject.cre8.common.response.error.ErrorCode;
import com.gaduationproject.cre8.common.response.error.exception.NotFoundException;
import com.gaduationproject.cre8.domain.community.entity.CommunityBoard;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ public class CommunityPostEditRequestDto {

@NotEmpty(message = "제목을 입력해 주세요")
@Schema(description = "커뮤니티 게시글의 제목을 입력합니다",example = "이것은 게시글 제목 1,2,3,4,5,6")
@Size(max = 50,message = "50글자 미만으로 입력해주세요")
@Size(min =5,max = 50, message = "5이상 50 글자 이내만 입력 가능합니다.")
private String title;

@NotEmpty(message = "내용을 입력해 주세요")
@Schema(description = "구직자 게시물에 대한 내용을 입력합니다",example = "나는 진짜 능력이 있어요")
@Size(max = 500,message = "500글자 미만으로 입력해주세요")
@Size(min = 10,max = 2000, message = "10글자 이상 2000 글자 이내만 입력 가능합니다.")
private String contents;

@Schema(description = "이미지 데이터")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ public class CommunityPostSaveRequestDto {
private Long communityBoardId;

@NotEmpty(message = "제목을 입력해 주세요")
@Size(max = 50, message = "50 글자 이내만 가능합니다.")
@Size(min =5,max = 50, message = "5이상 50 글자 이내만 입력 가능합니다.")
@Schema(description = "커뮤니티 게시글의 제목을 입력합니다",example = "이것은 게시글 제목 1,2,3,4,5,6")
private String title;

@NotEmpty(message = "내용을 입력해 주세요")
@Size(max = 500, message = "500 글자 이내만 가능합니다.")
@Size(min = 10,max = 2000, message = "10글자 이상 2000 글자 이내만 입력 가능합니다.")
@Schema(description = "구직자 게시물에 대한 내용을 입력합니다",example = "나는 진짜 능력이 있어요")
private String contents;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class ReplyEditRequestDto {
private Long replyId;

@NotEmpty(message = "내용을 입력해 주세요")
@Size(max = 500, message = "200 글자 이내만 가능합니다.")
@Size(min=5,max = 200, message = "200 글자 이내만 가능합니다.")
@Schema(description = "게시물에 대한 댓글 내용을 입력합니다",example = "나는 진짜 능력이 있어요")
private String contents;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class ReplySaveRequestDto {
private Long parentReplyId;

@NotEmpty(message = "내용을 입력해 주세요")
@Size(max = 500, message = "200 글자 이내만 가능합니다.")
@Size(min=5,max = 200, message = "200 글자 이내만 가능합니다.")
@Schema(description = "게시물에 대한 댓글 내용을 입력합니다",example = "나는 진짜 능력이 있어요")
private String contents;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.gaduationproject.cre8.adminapp.communityBoard.dto;
package com.gaduationproject.cre8.app.community.dto.response;

import com.gaduationproject.cre8.domain.community.entity.CommunityBoard;
import lombok.AccessLevel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import jakarta.validation.constraints.PositiveOrZero;
import jakarta.validation.constraints.Size;
import java.util.ArrayList;
import java.util.List;
import lombok.AccessLevel;
Expand All @@ -24,6 +25,7 @@ public class EditEmployeePostRequestDto {

@NotEmpty(message = "제목을 입력해 주세요")
@Schema(description = "구직자 게시물에 대한 제목을 입력합니다",example = "월급 주실분 구합니다")
@Size(min=5,max = 50, message = "50 글자 이내만 가능합니다.")
private String title;

@Schema(description = "작업 분야 상위 태그를 입력합니다",example = "2")
Expand All @@ -45,6 +47,7 @@ public class EditEmployeePostRequestDto {

@NotEmpty(message = "내용을 입력해 주세요")
@Schema(description = "구직자 게시물에 대한 내용을 입력합니다",example = "나는 진짜 능력이 있어요")
@Size(min=10,max = 2000, message = "2000 글자 이내만 가능합니다.")
private String contents;

@NotEmpty(message = "연락처를 입력해주세요(이메일,핸드폰)")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import jakarta.validation.constraints.PositiveOrZero;
import jakarta.validation.constraints.Size;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
Expand All @@ -24,6 +25,7 @@ public class EditEmployerPostRequestDto {

@NotEmpty(message = "제목을 입력해 주세요")
@Schema(description = "구직자 게시물에 대한 제목을 입력합니다",example = "월급 주실분 구합니다")
@Size(min=5,max = 50, message = "50 글자 이내만 가능합니다.")
private String title;

@Schema(description = "작업 분야 상위 태그를 입력합니다",example = "2")
Expand Down Expand Up @@ -59,6 +61,7 @@ public class EditEmployerPostRequestDto {

@NotEmpty(message = "내용을 입력해주세요")
@Schema(description = "구인자 게시글 내용 입력",example = "0")
@Size(min=10,max = 2000, message = "2000 글자 이내만 가능합니다.")
private String contents;

@NotEmpty(message = "연락처를 입력해주세요(이메일,핸드폰)")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Positive;
import jakarta.validation.constraints.PositiveOrZero;
import jakarta.validation.constraints.Size;
import java.util.ArrayList;
import java.util.List;
import lombok.AccessLevel;
Expand All @@ -18,6 +19,7 @@ public class SaveEmployeePostRequestDto {

@NotEmpty(message = "제목을 입력해 주세요")
@Schema(description = "구직자 게시물에 대한 제목을 입력합니다",example = "월급 주실분 구합니다")
@Size(min=5,max = 50, message = "50 글자 이내만 가능합니다.")
private String title;


Expand All @@ -40,6 +42,7 @@ public class SaveEmployeePostRequestDto {

@NotEmpty(message = "내용을 입력해 주세요")
@Schema(description = "구직자 게시물에 대한 내용을 입력합니다",example = "나는 진짜 능력이 있어요")
@Size(min=10,max = 2000, message = "2000 글자 이내만 가능합니다.")
private String contents;

@NotEmpty(message = "연락처를 입력해주세요(이메일,핸드폰)")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Positive;
import jakarta.validation.constraints.PositiveOrZero;
import jakarta.validation.constraints.Size;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
Expand All @@ -19,6 +20,7 @@ public class SaveEmployerPostRequestDto {

@NotEmpty(message = "제목을 입력해 주세요")
@Schema(description = "구인자 게시물에 대한 제목을 입력합니다",example = "월급 받으실 분 구합니다")
@Size(min=5,max = 50, message = "50 글자 이내만 가능합니다.")
private String title;

@Schema(description = "작업 분야 상위 태그를 입력합니다",example = "2")
Expand Down Expand Up @@ -54,6 +56,7 @@ public class SaveEmployerPostRequestDto {

@NotEmpty(message = "내용을 입력해주세요")
@Schema(description = "구인자 게시글 내용 입력",example = "0")
@Size(min=10,max = 2000, message = "2000 글자 이내만 가능합니다.")
private String contents;

@NotEmpty(message = "연락처를 입력해주세요(이메일,핸드폰)")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class Member {
private String name;


@Column(length = 50,unique = true,updatable = false,nullable = false)
@Column(unique = true,updatable = false,nullable = false)
private String email;

@Column(length = 20,unique = true,nullable = false)
Expand Down

0 comments on commit bebd3c3

Please sign in to comment.