Skip to content

Commit

Permalink
refactor quiz
Browse files Browse the repository at this point in the history
  • Loading branch information
pionas committed Dec 16, 2023
1 parent 80e6b45 commit bb27610
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
3 changes: 3 additions & 0 deletions src/main/java/info/pionas/quiz/api/quiz/QuizApiMapper.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package info.pionas.quiz.api.quiz;

import info.pionas.quiz.api.quiz.api.AnswerResponseDto;
import info.pionas.quiz.api.quiz.api.QuestionResponseDto;
import info.pionas.quiz.api.quiz.api.QuizResponseDto;
import info.pionas.quiz.domain.quiz.api.*;
import org.mapstruct.Mapper;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package info.pionas.quiz.api.quiz;

import info.pionas.quiz.api.quiz.api.QuizResponseDto;
import info.pionas.quiz.domain.quiz.api.QuizService;
import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package info.pionas.quiz.api.quiz;
package info.pionas.quiz.api.quiz.api;

import lombok.Getter;
import lombok.NoArgsConstructor;
Expand All @@ -9,7 +9,7 @@
@NoArgsConstructor
@Getter
@Setter
class AnswerResponseDto {
public class AnswerResponseDto {

private UUID id;
private String content;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package info.pionas.quiz.api.quiz;
package info.pionas.quiz.api.quiz.api;

import lombok.Getter;
import lombok.NoArgsConstructor;
Expand All @@ -10,7 +10,7 @@
@NoArgsConstructor
@Getter
@Setter
class QuestionResponseDto {
public class QuestionResponseDto {

private UUID id;
private String content;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package info.pionas.quiz.api.quiz;
package info.pionas.quiz.api.quiz.api;

import lombok.Getter;
import lombok.NoArgsConstructor;
Expand All @@ -11,7 +11,7 @@
@NoArgsConstructor
@Getter
@Setter
class QuizResponseDto {
public class QuizResponseDto {

private UUID id;
private String title;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package info.pionas.quiz.api.quiz;

import info.pionas.quiz.api.AbstractIT;
import info.pionas.quiz.api.quiz.api.AnswerResponseDto;
import info.pionas.quiz.api.quiz.api.QuestionResponseDto;
import info.pionas.quiz.api.quiz.api.QuizResponseDto;
import info.pionas.quiz.domain.user.api.Role;
import info.pionas.quiz.domain.user.api.User;
import info.pionas.quiz.infrastructure.database.quiz.QuestionEntity;
Expand Down

0 comments on commit bb27610

Please sign in to comment.