Skip to content

Commit

Permalink
[BE] 금지어 정책에 따른 패키지 이름 변경 (#114)
Browse files Browse the repository at this point in the history
fix(all): 금지어 정책에 따른 패키지 이름 변경

- com.woowacourse.momo -> kr.momo
  • Loading branch information
hw0603 authored Jul 30, 2024
1 parent 8d9cbcc commit c3cf4a2
Show file tree
Hide file tree
Showing 70 changed files with 290 additions and 290 deletions.
2 changes: 1 addition & 1 deletion backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id 'io.spring.dependency-management' version '1.1.5'
}

group = 'com.woowacourse'
group = 'kr'
version = '1.0-SNAPSHOT'

java {
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.woowacourse.momo;
package kr.momo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.woowacourse.momo.config;
package kr.momo.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.woowacourse.momo.config;
package kr.momo.config;

import com.woowacourse.momo.controller.auth.AuthArgumentResolver;
import java.util.List;
import kr.momo.controller.auth.AuthArgumentResolver;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.woowacourse.momo.config.swagger;
package kr.momo.config.swagger;

import io.swagger.v3.oas.models.Components;
import io.swagger.v3.oas.models.OpenAPI;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.woowacourse.momo.controller;
package kr.momo.controller;

public record MomoApiResponse<T>(T data) {
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.woowacourse.momo.controller.attendee;
package kr.momo.controller.attendee;

import com.woowacourse.momo.controller.MomoApiResponse;
import com.woowacourse.momo.service.attendee.AttendeeService;
import com.woowacourse.momo.service.attendee.dto.AttendeeLoginRequest;
import com.woowacourse.momo.service.attendee.dto.TokenResponse;
import jakarta.validation.Valid;
import kr.momo.controller.MomoApiResponse;
import kr.momo.service.attendee.AttendeeService;
import kr.momo.service.attendee.dto.AttendeeLoginRequest;
import kr.momo.service.attendee.dto.TokenResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.woowacourse.momo.controller.auth;
package kr.momo.controller.auth;

import com.woowacourse.momo.exception.MomoException;
import com.woowacourse.momo.exception.code.AuthErrorCode;
import com.woowacourse.momo.service.auth.JwtManager;
import kr.momo.exception.MomoException;
import kr.momo.exception.code.AuthErrorCode;
import kr.momo.service.auth.JwtManager;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.core.MethodParameter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.woowacourse.momo.controller.auth;
package kr.momo.controller.auth;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.woowacourse.momo.controller.meeting;
package kr.momo.controller.meeting;

import com.woowacourse.momo.controller.MomoApiResponse;
import com.woowacourse.momo.service.meeting.MeetingService;
import com.woowacourse.momo.service.meeting.dto.MeetingCreateRequest;
import com.woowacourse.momo.service.meeting.dto.MeetingResponse;
import com.woowacourse.momo.service.meeting.dto.MeetingSharingResponse;
import jakarta.validation.Valid;
import java.net.URI;
import kr.momo.controller.MomoApiResponse;
import kr.momo.service.meeting.MeetingService;
import kr.momo.service.meeting.dto.MeetingCreateRequest;
import kr.momo.service.meeting.dto.MeetingResponse;
import kr.momo.service.meeting.dto.MeetingSharingResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.woowacourse.momo.controller.schedule;
package kr.momo.controller.schedule;

import com.woowacourse.momo.controller.MomoApiResponse;
import com.woowacourse.momo.controller.auth.AuthAttendee;
import com.woowacourse.momo.service.schedule.ScheduleService;
import com.woowacourse.momo.service.schedule.dto.ScheduleCreateRequest;
import com.woowacourse.momo.service.schedule.dto.ScheduleOneAttendeeResponse;
import com.woowacourse.momo.service.schedule.dto.SchedulesResponse;
import jakarta.validation.Valid;
import kr.momo.controller.MomoApiResponse;
import kr.momo.controller.auth.AuthAttendee;
import kr.momo.service.schedule.ScheduleService;
import kr.momo.service.schedule.dto.ScheduleCreateRequest;
import kr.momo.service.schedule.dto.ScheduleOneAttendeeResponse;
import kr.momo.service.schedule.dto.SchedulesResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.woowacourse.momo.domain;
package kr.momo.domain;

import jakarta.persistence.Column;
import jakarta.persistence.EntityListeners;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.woowacourse.momo.domain.attendee;
package kr.momo.domain.attendee;

import com.woowacourse.momo.domain.BaseEntity;
import com.woowacourse.momo.domain.meeting.Meeting;
import jakarta.persistence.Column;
import jakarta.persistence.Embedded;
import jakarta.persistence.Entity;
Expand All @@ -14,6 +12,8 @@
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.Table;
import kr.momo.domain.BaseEntity;
import kr.momo.domain.meeting.Meeting;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.woowacourse.momo.domain.attendee;
package kr.momo.domain.attendee;

import com.woowacourse.momo.exception.MomoException;
import com.woowacourse.momo.exception.code.AttendeeErrorCode;
import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
import kr.momo.exception.MomoException;
import kr.momo.exception.code.AttendeeErrorCode;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.woowacourse.momo.domain.attendee;
package kr.momo.domain.attendee;

import com.woowacourse.momo.exception.MomoException;
import com.woowacourse.momo.exception.code.AttendeeErrorCode;
import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
import kr.momo.exception.MomoException;
import kr.momo.exception.code.AttendeeErrorCode;
import lombok.AccessLevel;
import lombok.EqualsAndHashCode;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.woowacourse.momo.domain.attendee;
package kr.momo.domain.attendee;

import com.woowacourse.momo.domain.meeting.Meeting;
import java.util.List;
import java.util.Optional;
import kr.momo.domain.meeting.Meeting;
import org.springframework.data.jpa.repository.JpaRepository;

public interface AttendeeRepository extends JpaRepository<Attendee, Long> {
Expand Down
6 changes: 6 additions & 0 deletions backend/src/main/java/kr/momo/domain/attendee/Role.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package kr.momo.domain.attendee;

public enum Role {
HOST,
GUEST
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.woowacourse.momo.domain.availabledate;
package kr.momo.domain.availabledate;

import com.woowacourse.momo.domain.BaseEntity;
import com.woowacourse.momo.domain.meeting.Meeting;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.FetchType;
Expand All @@ -12,6 +10,8 @@
import jakarta.persistence.ManyToOne;
import jakarta.persistence.Table;
import java.time.LocalDate;
import kr.momo.domain.BaseEntity;
import kr.momo.domain.meeting.Meeting;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.woowacourse.momo.domain.availabledate;
package kr.momo.domain.availabledate;

import com.woowacourse.momo.domain.meeting.Meeting;
import java.util.List;
import kr.momo.domain.meeting.Meeting;
import org.springframework.data.jpa.repository.JpaRepository;

public interface AvailableDateRepository extends JpaRepository<AvailableDate, Long> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.woowacourse.momo.domain.availabledate;
package kr.momo.domain.availabledate;

import com.woowacourse.momo.domain.meeting.Meeting;
import com.woowacourse.momo.exception.MomoException;
import com.woowacourse.momo.exception.code.AvailableDateErrorCode;
import java.time.LocalDate;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import kr.momo.domain.meeting.Meeting;
import kr.momo.exception.MomoException;
import kr.momo.exception.code.AvailableDateErrorCode;
import lombok.Getter;

@Getter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package com.woowacourse.momo.domain.meeting;
package kr.momo.domain.meeting;

import com.woowacourse.momo.domain.BaseEntity;
import com.woowacourse.momo.domain.timeslot.Timeslot;
import com.woowacourse.momo.domain.timeslot.TimeslotInterval;
import jakarta.persistence.Column;
import jakarta.persistence.Embedded;
import jakarta.persistence.Entity;
Expand All @@ -11,6 +8,9 @@
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import java.time.LocalTime;
import kr.momo.domain.BaseEntity;
import kr.momo.domain.timeslot.Timeslot;
import kr.momo.domain.timeslot.TimeslotInterval;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.woowacourse.momo.domain.meeting;
package kr.momo.domain.meeting;

import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package com.woowacourse.momo.domain.schedule;
package kr.momo.domain.schedule;

import com.woowacourse.momo.domain.BaseEntity;
import com.woowacourse.momo.domain.attendee.Attendee;
import com.woowacourse.momo.domain.availabledate.AvailableDate;
import com.woowacourse.momo.domain.timeslot.Timeslot;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.EnumType;
Expand All @@ -18,6 +14,10 @@
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import kr.momo.domain.BaseEntity;
import kr.momo.domain.attendee.Attendee;
import kr.momo.domain.availabledate.AvailableDate;
import kr.momo.domain.timeslot.Timeslot;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.woowacourse.momo.domain.schedule;
package kr.momo.domain.schedule;

import com.woowacourse.momo.domain.attendee.Attendee;
import java.util.List;
import kr.momo.domain.attendee.Attendee;
import org.springframework.data.jpa.repository.JpaRepository;

public interface ScheduleRepository extends JpaRepository<Schedule, Long> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.woowacourse.momo.domain.timeslot;
package kr.momo.domain.timeslot;

import com.woowacourse.momo.exception.MomoException;
import com.woowacourse.momo.exception.code.TimeslotErrorCode;
import java.time.LocalTime;
import java.util.Arrays;
import kr.momo.exception.MomoException;
import kr.momo.exception.code.TimeslotErrorCode;
import lombok.Getter;

@Getter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.woowacourse.momo.domain.timeslot;
package kr.momo.domain.timeslot;

import com.woowacourse.momo.exception.MomoException;
import com.woowacourse.momo.exception.code.MeetingErrorCode;
import com.woowacourse.momo.exception.code.ScheduleErrorCode;
import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
import java.time.LocalTime;
import kr.momo.exception.MomoException;
import kr.momo.exception.code.MeetingErrorCode;
import kr.momo.exception.code.ScheduleErrorCode;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.woowacourse.momo.exception;
package kr.momo.exception;

import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.woowacourse.momo.exception;
package kr.momo.exception;

import com.woowacourse.momo.exception.code.ErrorCodeType;
import kr.momo.exception.code.ErrorCodeType;
import lombok.Getter;
import org.springframework.http.HttpStatus;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.woowacourse.momo.exception.code;
package kr.momo.exception.code;

import org.springframework.http.HttpStatus;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.woowacourse.momo.exception.code;
package kr.momo.exception.code;

import org.springframework.http.HttpStatus;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.woowacourse.momo.exception.code;
package kr.momo.exception.code;

import org.springframework.http.HttpStatus;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.woowacourse.momo.exception.code;
package kr.momo.exception.code;

import org.springframework.http.HttpStatus;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.woowacourse.momo.exception.code;
package kr.momo.exception.code;

import org.springframework.http.HttpStatus;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.woowacourse.momo.exception.code;
package kr.momo.exception.code;

import org.springframework.http.HttpStatus;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.woowacourse.momo.exception.code;
package kr.momo.exception.code;

import org.springframework.http.HttpStatus;

Expand Down
Loading

0 comments on commit c3cf4a2

Please sign in to comment.