Skip to content

Commit

Permalink
feat(ChatController): 테스트를 위한 컨트롤러, 서비스 클래스 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
coke98 committed Feb 3, 2024
1 parent 35ab03e commit efe3794
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package com.aliens.backend.chat.controller;

import com.aliens.backend.chat.service.ChatService;
import org.springframework.messaging.handler.annotation.MessageMapping;
import org.springframework.stereotype.Controller;


@Controller
public class ChatController {

private final ChatService chatService;

public ChatController(ChatService chatService) {
this.chatService = chatService;
}

@MessageMapping("/send")
public void sendMessage() {
chatService.sendMessage();
}

@MessageMapping("/read")
public void readMessage() {
chatService.readMessage();
}

@MessageMapping("/summary")
public void getChatSummary() {
chatService.getChatSummary();
}

}
15 changes: 15 additions & 0 deletions src/main/java/com/aliens/backend/chat/service/ChatService.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.aliens.backend.chat.service;

import org.springframework.stereotype.Service;

@Service
public class ChatService {
public void sendMessage() {
}

public void readMessage() {
}

public void getChatSummary() {
}
}

0 comments on commit efe3794

Please sign in to comment.