Skip to content

Commit

Permalink
[CHORE] 각 도메인의 패키지 domain 이름 변경 -> model
Browse files Browse the repository at this point in the history
  • Loading branch information
05AM committed Dec 10, 2023
1 parent 15a9b5d commit 4680a33
Show file tree
Hide file tree
Showing 150 changed files with 564 additions and 568 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import javax.validation.constraints.NotNull;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.tattour.server.domain.custom.domain.CustomProcess;
import org.tattour.server.domain.custom.model.CustomProcess;
import org.tattour.server.domain.custom.facade.dto.request.UpdateCustomReq;

@Getter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
import org.springframework.transaction.annotation.Transactional;
import org.tattour.server.domain.admin.controller.dto.request.AdminLoginReq;
import org.tattour.server.domain.admin.controller.dto.response.AdminLoginRes;
import org.tattour.server.domain.admin.domain.Admin;
import org.tattour.server.domain.admin.facade.AdminFacade;
import org.tattour.server.domain.admin.model.Admin;
import org.tattour.server.domain.admin.service.AdminService;
import org.tattour.server.domain.user.domain.UserRole;
import org.tattour.server.domain.user.model.UserRole;
import org.tattour.server.global.config.jwt.JwtService;
import org.tattour.server.global.exception.BusinessException;
import org.tattour.server.global.exception.ErrorType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.tattour.server.domain.admin.domain;
package org.tattour.server.domain.admin.model;

import java.sql.Timestamp;
import javax.persistence.Column;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.tattour.server.domain.admin.domain;
package org.tattour.server.domain.admin.model;

import java.sql.Timestamp;
import javax.persistence.Entity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.tattour.server.domain.admin.domain.AdminAccessLog;
import org.tattour.server.domain.admin.model.AdminAccessLog;

@Repository
public interface AdminAccessLogRepository extends JpaRepository<AdminAccessLog, Integer> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.tattour.server.domain.admin.domain.Admin;
import org.tattour.server.domain.admin.model.Admin;

@Repository
public interface AdminRepositoryImpl extends JpaRepository<Admin, Integer> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.tattour.server.domain.admin.service;

import org.tattour.server.domain.admin.domain.Admin;
import org.tattour.server.domain.admin.model.Admin;

public interface AdminService {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import lombok.RequiredArgsConstructor;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service;
import org.tattour.server.domain.admin.domain.Admin;
import org.tattour.server.domain.admin.domain.AdminAccessLog;
import org.tattour.server.domain.admin.model.Admin;
import org.tattour.server.domain.admin.model.AdminAccessLog;
import org.tattour.server.domain.admin.repository.AdminAccessLogRepository;
import org.tattour.server.domain.admin.repository.AdminRepositoryImpl;
import org.tattour.server.domain.admin.service.AdminService;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.tattour.server.domain.banner.domain;
package org.tattour.server.domain.banner.model;

import javax.persistence.Column;
import javax.persistence.Entity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
import org.tattour.server.domain.cart.controller.dto.request.CartItemReq;
import org.tattour.server.domain.cart.controller.dto.request.UpdateCartCountReq;
import org.tattour.server.domain.cart.controller.dto.response.CartItemsRes;
import org.tattour.server.domain.cart.domain.Cart;
import org.tattour.server.domain.cart.facade.CartFacade;
import org.tattour.server.domain.cart.model.Cart;
import org.tattour.server.domain.cart.service.CartService;
import org.tattour.server.domain.sticker.domain.Sticker;
import org.tattour.server.domain.sticker.model.Sticker;
import org.tattour.server.domain.sticker.provider.StickerProvider;
import org.tattour.server.domain.sticker.provider.vo.StickerOrderInfo;
import org.tattour.server.domain.user.domain.User;
import org.tattour.server.domain.user.model.User;
import org.tattour.server.domain.user.service.UserService;
import org.tattour.server.global.util.EntityDtoMapper;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.tattour.server.domain.cart.domain;
package org.tattour.server.domain.cart.model;

import javax.persistence.Entity;
import javax.persistence.FetchType;
Expand All @@ -12,8 +12,8 @@
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.tattour.server.domain.sticker.domain.Sticker;
import org.tattour.server.domain.user.domain.User;
import org.tattour.server.domain.sticker.model.Sticker;
import org.tattour.server.domain.user.model.User;

@Entity
@Builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.tattour.server.domain.cart.domain.Cart;
import org.tattour.server.domain.sticker.domain.Sticker;
import org.tattour.server.domain.user.domain.User;
import org.tattour.server.domain.cart.model.Cart;
import org.tattour.server.domain.sticker.model.Sticker;
import org.tattour.server.domain.user.model.User;

@Repository
public interface CartRepositoryImpl extends JpaRepository<Cart, Integer> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import java.util.List;
import java.util.Optional;
import org.tattour.server.domain.cart.domain.Cart;
import org.tattour.server.domain.sticker.domain.Sticker;
import org.tattour.server.domain.user.domain.User;
import org.tattour.server.domain.cart.model.Cart;
import org.tattour.server.domain.sticker.model.Sticker;
import org.tattour.server.domain.user.model.User;

public interface CartService {
List<Cart> findByUserId(int userId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
import java.util.Optional;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.tattour.server.domain.cart.domain.Cart;
import org.tattour.server.domain.cart.model.Cart;
import org.tattour.server.domain.cart.repository.CartRepositoryImpl;
import org.tattour.server.domain.cart.service.CartService;
import org.tattour.server.domain.sticker.domain.Sticker;
import org.tattour.server.domain.user.domain.User;
import org.tattour.server.domain.sticker.model.Sticker;
import org.tattour.server.domain.user.model.User;
import org.tattour.server.global.exception.BusinessException;
import org.tattour.server.global.exception.ErrorType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import lombok.Builder;
import lombok.Getter;
import org.springframework.web.multipart.MultipartFile;
import org.tattour.server.domain.custom.domain.Custom;
import org.tattour.server.domain.custom.domain.CustomProcess;
import org.tattour.server.domain.custom.domain.CustomSize;
import org.tattour.server.domain.custom.model.Custom;
import org.tattour.server.domain.custom.model.CustomProcess;
import org.tattour.server.domain.custom.model.CustomSize;

@Getter
@Builder(access = AccessLevel.PRIVATE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
import org.tattour.server.domain.custom.domain.Custom;
import org.tattour.server.domain.custom.domain.CustomImage;
import org.tattour.server.domain.custom.model.Custom;
import org.tattour.server.domain.custom.model.CustomImage;

@Getter
@Builder(access = AccessLevel.PRIVATE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.tattour.server.domain.custom.domain.Custom;
import org.tattour.server.domain.custom.model.Custom;

@Getter
@AllArgsConstructor(access = AccessLevel.PRIVATE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import lombok.Builder;
import lombok.Getter;
import org.tattour.server.domain.custom.domain.Custom;
import org.tattour.server.domain.custom.model.Custom;

@Getter
@Builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.tattour.server.domain.custom.domain.Custom;
import org.tattour.server.domain.custom.domain.CustomImage;
import org.tattour.server.domain.custom.facade.CustomFacade;
import org.tattour.server.domain.custom.facade.dto.request.UpdateCustomReq;
import org.tattour.server.domain.custom.facade.dto.response.ReadCustomRes;
import org.tattour.server.domain.custom.facade.dto.response.ReadCustomSummaryListRes;
import org.tattour.server.domain.custom.model.Custom;
import org.tattour.server.domain.custom.model.CustomImage;
import org.tattour.server.domain.custom.provider.impl.CustomProviderImpl;
import org.tattour.server.domain.custom.service.CustomImageService;
import org.tattour.server.domain.custom.service.CustomService;
import org.tattour.server.domain.custom.service.CustomStyleService;
import org.tattour.server.domain.custom.service.CustomThemeService;
import org.tattour.server.domain.user.domain.User;
import org.tattour.server.domain.user.model.User;
import org.tattour.server.domain.user.service.UserService;
import org.tattour.server.infra.discord.service.DiscordMessageService;
import org.tattour.server.infra.s3.S3Service;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.tattour.server.domain.custom.domain;
package org.tattour.server.domain.custom.model;

import java.util.ArrayList;
import java.util.List;
Expand All @@ -22,8 +22,8 @@
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.tattour.server.domain.sticker.domain.Sticker;
import org.tattour.server.domain.user.domain.User;
import org.tattour.server.domain.sticker.model.Sticker;
import org.tattour.server.domain.user.model.User;
import org.tattour.server.global.util.AuditingTimeEntity;

@Getter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.tattour.server.domain.custom.domain;
package org.tattour.server.domain.custom.model;

import javax.persistence.Column;
import javax.persistence.Entity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.tattour.server.domain.custom.domain;
package org.tattour.server.domain.custom.model;

import lombok.AccessLevel;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.tattour.server.domain.custom.domain;
package org.tattour.server.domain.custom.model;

import lombok.AccessLevel;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.tattour.server.domain.custom.domain;
package org.tattour.server.domain.custom.model;

import javax.persistence.Entity;
import javax.persistence.FetchType;
Expand All @@ -13,7 +13,7 @@
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.tattour.server.domain.style.domain.Style;
import org.tattour.server.domain.style.model.Style;

@Getter
@Table(name = "custom_style")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.tattour.server.domain.custom.domain;
package org.tattour.server.domain.custom.model;

import javax.persistence.Entity;
import javax.persistence.FetchType;
Expand All @@ -14,7 +14,7 @@
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert;
import org.tattour.server.domain.theme.domain.Theme;
import org.tattour.server.domain.theme.model.Theme;

@Getter
@Table(name = "custom_theme")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.tattour.server.domain.custom.provider;

import java.util.List;
import org.tattour.server.domain.custom.domain.Custom;
import org.tattour.server.domain.custom.model.Custom;

public interface CustomProvider {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.tattour.server.domain.custom.domain.Custom;
import org.tattour.server.domain.custom.model.Custom;
import org.tattour.server.domain.custom.exception.NotFoundCustomException;
import org.tattour.server.domain.custom.provider.CustomProvider;
import org.tattour.server.domain.custom.repository.CustomRepository;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.tattour.server.domain.custom.repository;

import java.util.List;
import org.tattour.server.domain.custom.domain.CustomImage;
import org.tattour.server.domain.custom.model.CustomImage;

public interface CustomImageRepository {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import java.util.List;
import java.util.Optional;
import org.springframework.data.repository.Repository;
import org.tattour.server.domain.custom.domain.Custom;
import org.tattour.server.domain.custom.model.Custom;
import org.tattour.server.domain.custom.repository.custom.CustomRepositoryCustom;

public interface CustomRepository extends
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import java.util.List;
import java.util.Optional;
import org.tattour.server.domain.custom.domain.CustomStyle;
import org.tattour.server.domain.custom.model.CustomStyle;

public interface CustomStyleRepository {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import java.util.List;
import java.util.Optional;
import org.tattour.server.domain.custom.domain.CustomTheme;
import org.tattour.server.domain.custom.model.CustomTheme;

public interface CustomThemeRepository {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.tattour.server.domain.custom.repository.custom;

import java.util.List;
import org.tattour.server.domain.custom.domain.Custom;
import org.tattour.server.domain.custom.model.Custom;

public interface CustomRepositoryCustom {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.tattour.server.domain.custom.repository.impl;

import org.springframework.data.repository.Repository;
import org.tattour.server.domain.custom.domain.CustomImage;
import org.tattour.server.domain.custom.model.CustomImage;
import org.tattour.server.domain.custom.repository.CustomImageRepository;

public interface CustomImageRepositoryImpl extends
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.tattour.server.domain.custom.repository.impl;

import static org.tattour.server.domain.custom.domain.QCustom.*;
import static org.tattour.server.domain.custom.model.QCustom.*;

import com.querydsl.jpa.impl.JPAQueryFactory;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.tattour.server.domain.custom.domain.Custom;
import org.tattour.server.domain.custom.model.Custom;
import org.tattour.server.domain.custom.repository.custom.CustomRepositoryCustom;

@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.tattour.server.domain.custom.repository.impl;

import org.springframework.data.repository.Repository;
import org.tattour.server.domain.custom.domain.CustomStyle;
import org.tattour.server.domain.custom.model.CustomStyle;
import org.tattour.server.domain.custom.repository.CustomStyleRepository;

public interface CustomStyleRepositoryImpl extends
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.tattour.server.domain.custom.repository.impl;

import org.springframework.data.repository.Repository;
import org.tattour.server.domain.custom.domain.CustomTheme;
import org.tattour.server.domain.custom.model.CustomTheme;
import org.tattour.server.domain.custom.repository.CustomThemeRepository;

public interface CustomThemeRepositoryImpl extends
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.tattour.server.domain.custom.service;

import java.util.List;
import org.tattour.server.domain.custom.domain.CustomImage;
import org.tattour.server.domain.custom.model.CustomImage;

public interface CustomImageService {

Expand Down
Loading

0 comments on commit 4680a33

Please sign in to comment.