Skip to content

Commit

Permalink
Merge pull request #11 from byeolhaha/feat/1
Browse files Browse the repository at this point in the history
style : 패키지 명 변경
  • Loading branch information
byeolhaha authored May 13, 2024
2 parents 46bb02c + c7567e5 commit 30656a3
Show file tree
Hide file tree
Showing 211 changed files with 614 additions and 652 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.hellomeritz;
package com.hello;

import com.hellomeritz.chat.service.BanWordService;
import com.hello.chat.service.BanWordService;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.hellomeritz;
package com.hello;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.hellomeritz.chat.controller;
package com.hello.chat.controller;

import com.hellomeritz.chat.service.BanWordService;
import com.hello.chat.service.BanWordService;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PatchMapping;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.hellomeritz.chat.controller;
package com.hello.chat.controller;

import com.hellomeritz.chat.controller.dto.request.ChatMessageSttRequest;
import com.hellomeritz.chat.controller.dto.request.ChatMessageTranslateRequest;
import com.hellomeritz.chat.controller.dto.response.ChatMessageSttResponse;
import com.hellomeritz.chat.controller.dto.response.ChatMessageTranslateResponses;
import com.hellomeritz.chat.service.ChatMessageService;
import com.hellomeritz.chat.service.dto.result.ChatMessageSttResult;
import com.hello.chat.controller.dto.request.ChatMessageSttRequest;
import com.hello.chat.controller.dto.request.ChatMessageTranslateRequest;
import com.hello.chat.controller.dto.response.ChatMessageSttResponse;
import com.hello.chat.controller.dto.response.ChatMessageTranslateResponses;
import com.hello.chat.service.ChatMessageService;
import com.hello.chat.service.dto.result.ChatMessageSttResult;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Positive;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.hellomeritz.chat.controller;

import com.hellomeritz.chat.controller.dto.request.*;
import com.hellomeritz.chat.controller.dto.response.*;
import com.hellomeritz.chat.service.ChatService;
import com.hellomeritz.chat.service.dto.param.ChatRoomUserInfoParam;
import com.hellomeritz.chat.service.dto.result.ChatRoomInfoOfConsultantResults;
import com.hellomeritz.chat.service.dto.result.ChatRoomInfoOfForeignerResults;
package com.hello.chat.controller;

import com.hello.chat.controller.dto.request.*;
import com.hello.chat.controller.dto.response.*;
import com.hello.chat.service.ChatService;
import com.hello.chat.service.dto.param.ChatRoomUserInfoParam;
import com.hello.chat.service.dto.result.ChatRoomInfoOfConsultantResults;
import com.hello.chat.service.dto.result.ChatRoomInfoOfForeignerResults;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.hellomeritz.chat.controller.dto.request;
package com.hello.chat.controller.dto.request;

import com.hellomeritz.chat.service.dto.param.ChatAudioUploadParam;
import com.hello.chat.service.dto.param.ChatAudioUploadParam;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import org.springframework.web.multipart.MultipartFile;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.hellomeritz.chat.controller.dto.request;
package com.hello.chat.controller.dto.request;

import com.hellomeritz.chat.service.dto.param.ChatMessageGetParam;
import com.hello.chat.service.dto.param.ChatMessageGetParam;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.hellomeritz.chat.controller.dto.request;
package com.hello.chat.controller.dto.request;

import com.hellomeritz.chat.global.SourceLanguage;
import com.hellomeritz.chat.service.dto.param.ChatMessageSttParam;
import com.hello.chat.global.SourceLanguage;
import com.hello.chat.service.dto.param.ChatMessageSttParam;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.hellomeritz.chat.controller.dto.request;
package com.hello.chat.controller.dto.request;

import com.hellomeritz.chat.global.SourceLanguage;
import com.hellomeritz.chat.global.TargetLanguage;
import com.hellomeritz.chat.service.dto.param.ChatMessageTextParam;
import com.hello.chat.global.SourceLanguage;
import com.hello.chat.global.TargetLanguage;
import com.hello.chat.service.dto.param.ChatMessageTextParam;
import jakarta.validation.constraints.AssertTrue;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.hellomeritz.chat.controller.dto.request;
package com.hello.chat.controller.dto.request;

import com.hellomeritz.chat.service.dto.param.ChatRoomCreateParam;
import com.hello.chat.service.dto.param.ChatRoomCreateParam;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.hellomeritz.chat.controller.dto.request;
package com.hello.chat.controller.dto.request;

import com.hellomeritz.chat.service.dto.param.ChatRoomEnterParam;
import com.hello.chat.service.dto.param.ChatRoomEnterParam;
import jakarta.validation.constraints.NotNull;

public record ChatRoomEnterRequest(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.hellomeritz.chat.controller.dto.request;
package com.hello.chat.controller.dto.request;

import com.hellomeritz.chat.service.dto.param.ChatRoomInfoOfConsultantParam;
import com.hello.chat.service.dto.param.ChatRoomInfoOfConsultantParam;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.hellomeritz.chat.controller.dto.request;
package com.hello.chat.controller.dto.request;

import com.hellomeritz.chat.service.dto.param.ChatRoomInfoOfForeignerParam;
import com.hello.chat.service.dto.param.ChatRoomInfoOfForeignerParam;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.hellomeritz.chat.controller.dto.request;
package com.hello.chat.controller.dto.request;

import com.hellomeritz.chat.service.dto.param.ChatRoomLeaveParam;
import com.hello.chat.service.dto.param.ChatRoomLeaveParam;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.hellomeritz.chat.controller.dto.request;
package com.hello.chat.controller.dto.request;

import com.hellomeritz.chat.service.dto.param.ChatRoomPasswordCheckParam;
import com.hello.chat.service.dto.param.ChatRoomPasswordCheckParam;
import jakarta.validation.constraints.NotBlank;

public record ChatRoomPasswordCheckRequest(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.hellomeritz.chat.controller.dto.request;
package com.hello.chat.controller.dto.request;

import com.hellomeritz.global.encryption.PassWord;
import com.hellomeritz.chat.service.dto.param.ChatRoomPasswordCreateParam;
import com.hello.global.encryption.PassWord;
import com.hello.chat.service.dto.param.ChatRoomPasswordCreateParam;
import jakarta.validation.constraints.NotBlank;

import java.time.LocalDateTime;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.hellomeritz.chat.controller.dto.response;
package com.hello.chat.controller.dto.response;

import com.hellomeritz.chat.service.dto.result.ChatAudioUploadResult;
import com.hello.chat.service.dto.result.ChatAudioUploadResult;

public record ChatAudioUploadResponse(
String audioUrl,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.hellomeritz.chat.controller.dto.response;
package com.hello.chat.controller.dto.response;

import com.hellomeritz.chat.service.dto.result.ChatMessageGetResults;
import com.hello.chat.service.dto.result.ChatMessageGetResults;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.hellomeritz.chat.controller.dto.response;
package com.hello.chat.controller.dto.response;

import com.hellomeritz.chat.service.dto.result.ChatMessageSttResult;
import com.hello.chat.service.dto.result.ChatMessageSttResult;

public record ChatMessageSttResponse(
String textBySpeech,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.hellomeritz.chat.controller.dto.response;
package com.hello.chat.controller.dto.response;

import com.hellomeritz.chat.service.dto.result.ChatMessageTranslateResults;
import com.hello.chat.service.dto.result.ChatMessageTranslateResults;

import java.time.LocalDateTime;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.hellomeritz.chat.controller.dto.response;
package com.hello.chat.controller.dto.response;

import com.hellomeritz.chat.service.dto.result.ChatRoomCreateResult;
import com.hello.chat.service.dto.result.ChatRoomCreateResult;

public record ChatRoomCreateResponse(
long chatRoomId
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.hellomeritz.chat.controller.dto.response;
package com.hello.chat.controller.dto.response;

import com.hellomeritz.chat.service.dto.result.ChatRoomInfoOfConsultantResult;
import com.hellomeritz.chat.service.dto.result.ChatRoomInfoOfConsultantResults;
import com.hello.chat.service.dto.result.ChatRoomInfoOfConsultantResult;
import com.hello.chat.service.dto.result.ChatRoomInfoOfConsultantResults;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.hellomeritz.chat.controller.dto.response;
package com.hello.chat.controller.dto.response;

import com.hellomeritz.chat.service.dto.result.ChatRoomInfoOfForeignerResult;
import com.hellomeritz.chat.service.dto.result.ChatRoomInfoOfForeignerResults;
import com.hello.chat.service.dto.result.ChatRoomInfoOfForeignerResult;
import com.hello.chat.service.dto.result.ChatRoomInfoOfForeignerResults;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.hellomeritz.chat.controller.dto.response;
package com.hello.chat.controller.dto.response;

public record ChatRoomPasswordCheckResponse(
Boolean isMyUser
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.hellomeritz.chat.controller.dto.response;
package com.hello.chat.controller.dto.response;

import com.hellomeritz.chat.service.dto.result.ChatRoomUserInfoResult;
import com.hello.chat.service.dto.result.ChatRoomUserInfoResult;

public record ChatRoomUserInfoResponse(
long userId,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.hellomeritz.chat.domain;
package com.hello.chat.domain;

import com.hellomeritz.chat.global.SourceLanguage;
import com.hello.chat.global.SourceLanguage;
import jakarta.persistence.*;
import lombok.Getter;
import org.springframework.util.Assert;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.hellomeritz.chat.domain;
package com.hello.chat.domain;

import lombok.Getter;
import org.checkerframework.checker.units.qual.C;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.util.Assert;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.hellomeritz.chat.domain;
package com.hello.chat.domain;

public enum ChatMessageType {
AUDIO,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.hellomeritz.chat.domain;
package com.hello.chat.domain;

import jakarta.persistence.*;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.hellomeritz.chat.global;
package com.hello.chat.global;

import lombok.Getter;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.hellomeritz.chat.global;
package com.hello.chat.global;

import lombok.Getter;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.hellomeritz.chat.global;
package com.hello.chat.global;

import lombok.Getter;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.hellomeritz.chat.global;
package com.hello.chat.global;

import java.util.Arrays;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.hellomeritz.chat.global.config;
package com.hello.chat.global.config;

import com.mongodb.client.MongoClient;
import com.mongodb.client.MongoClients;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.hellomeritz.chat.global.config;
package com.hello.chat.global.config;

import com.hellomeritz.chat.global.handler.ChatErrorHandler;
import com.hello.chat.global.handler.ChatErrorHandler;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.hellomeritz.chat.global.handler;
package com.hello.chat.global.handler;

import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpStatus;
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/com/hello/chat/global/stt/SttManager.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.hello.chat.global.stt;

import com.hello.chat.global.stt.dto.SttRequest;
import com.hello.chat.global.stt.dto.SttResponse;

public interface SttManager {

SttResponse asyncRecognizeAudio (SttRequest request);
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package com.hellomeritz.chat.global.stt;
package com.hello.chat.global.stt;

import com.hellomeritz.chat.global.stt.google.SttGoogleManager;
import com.hellomeritz.chat.global.stt.openai.SttWhisperManager;
import com.hellomeritz.chat.global.stt.openai.client.OpenAIClient;
import com.hellomeritz.chat.global.stt.openai.client.OpenAIClientConfig;
import com.hellomeritz.chat.global.uploader.AudioUploader;
import com.hello.chat.global.stt.google.SttGoogleManager;
import com.hello.chat.global.stt.openai.SttWhisperManager;
import org.springframework.stereotype.Component;

import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.hellomeritz.chat.global.stt;
package com.hello.chat.global.stt;

public enum SttProvider {
GOOGLE,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.hellomeritz.chat.global.stt.dto;
package com.hello.chat.global.stt.dto;

import com.hellomeritz.chat.global.SourceLanguage;
import com.hello.chat.global.SourceLanguage;
import org.springframework.web.multipart.MultipartFile;

public record SttRequest(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.hellomeritz.chat.global.stt.dto;
package com.hello.chat.global.stt.dto;

import com.hellomeritz.chat.domain.ChatMessage;
import com.hellomeritz.chat.domain.ChatMessageType;
import com.hellomeritz.chat.service.dto.param.ChatMessageSttParam;
import com.hello.chat.domain.ChatMessage;
import com.hello.chat.domain.ChatMessageType;
import com.hello.chat.service.dto.param.ChatMessageSttParam;

public record SttResponse(
String textBySpeech
Expand Down
Loading

0 comments on commit 30656a3

Please sign in to comment.