Skip to content

Commit

Permalink
refactor: PostCreateRequest Swagger, Comment folder rename (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
toychip committed Dec 25, 2023
1 parent dee4a4a commit cc6d3c5
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.api.TaveShot.domain.Comment.controller;
package com.api.TaveShot.domain.comment.controller;

import com.api.TaveShot.domain.Comment.dto.request.CommentCreateRequest;
import com.api.TaveShot.domain.Comment.dto.request.CommentUpdateRequest;
import com.api.TaveShot.domain.Comment.service.CommentService;
import com.api.TaveShot.domain.comment.dto.request.CommentCreateRequest;
import com.api.TaveShot.domain.comment.dto.request.CommentUpdateRequest;
import com.api.TaveShot.domain.comment.service.CommentService;
import com.api.TaveShot.global.exception.ErrorType;
import com.api.TaveShot.global.success.SuccessResponse;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.api.TaveShot.domain.Comment.converter;
package com.api.TaveShot.domain.comment.converter;

import com.api.TaveShot.domain.Comment.domain.Comment;
import com.api.TaveShot.domain.Comment.dto.request.CommentCreateRequest;
import com.api.TaveShot.domain.comment.domain.Comment;
import com.api.TaveShot.domain.Member.domain.Member;
import com.api.TaveShot.domain.post.post.domain.Post;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.api.TaveShot.domain.Comment.domain;
package com.api.TaveShot.domain.comment.domain;

import com.api.TaveShot.domain.Member.domain.Member;
import com.api.TaveShot.domain.post.post.domain.Post;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package com.api.TaveShot.domain.Comment.dto.request;
package com.api.TaveShot.domain.comment.dto.request;

import com.api.TaveShot.domain.post.post.domain.PostTier;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.api.TaveShot.domain.Comment.dto.request;
package com.api.TaveShot.domain.comment.dto.request;

import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.api.TaveShot.domain.Comment.dto.response;
package com.api.TaveShot.domain.comment.dto.response;

import com.api.TaveShot.domain.Comment.domain.Comment;
import com.api.TaveShot.domain.comment.domain.Comment;
import com.querydsl.core.annotations.QueryProjection;
import lombok.Getter;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.api.TaveShot.domain.Comment.repository;
package com.api.TaveShot.domain.comment.repository;

import com.api.TaveShot.domain.Comment.domain.Comment;
import com.api.TaveShot.domain.comment.domain.Comment;
import com.api.TaveShot.domain.post.post.domain.Post;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.api.TaveShot.domain.Comment.service;

import com.api.TaveShot.domain.Comment.converter.CommentConverter;
import com.api.TaveShot.domain.Comment.domain.Comment;
import com.api.TaveShot.domain.Comment.dto.request.CommentCreateRequest;
import com.api.TaveShot.domain.Comment.dto.request.CommentUpdateRequest;
import com.api.TaveShot.domain.Comment.dto.response.CommentResponse;
import com.api.TaveShot.domain.Comment.repository.CommentRepository;
package com.api.TaveShot.domain.comment.service;

import com.api.TaveShot.domain.comment.converter.CommentConverter;
import com.api.TaveShot.domain.comment.domain.Comment;
import com.api.TaveShot.domain.comment.dto.request.CommentCreateRequest;
import com.api.TaveShot.domain.comment.dto.request.CommentUpdateRequest;
import com.api.TaveShot.domain.comment.dto.response.CommentResponse;
import com.api.TaveShot.domain.comment.repository.CommentRepository;
import com.api.TaveShot.domain.Member.domain.Member;
import com.api.TaveShot.domain.post.post.domain.Post;
import com.api.TaveShot.domain.post.post.domain.PostTier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class PostCreateRequest {
@NotEmpty
private String content;

@Schema(description = "게시판 등급", example = "BronzeSilver or Gold or Platinum or High")
@Schema(description = "게시판 등급", example = "'POST_BRONZE_SILVER' or 'POST_GOLD' or 'POST_PLATINUM' or 'POST_HIGH'")
@NotEmpty
private String postTier;

Expand Down

0 comments on commit cc6d3c5

Please sign in to comment.