Skip to content

Commit

Permalink
#143 feat: 상담 Finish 시 상담사 닉네임 넣어서 content 반환 로직 util로 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
aeyongdodam committed Mar 14, 2024
1 parent 43e8424 commit 684cc24
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.example.sharemind.chatMessage.utils;

import com.example.sharemind.chat.domain.Chat;

public class ChatMessageUtil {
public static String getFinishMessage(Chat chat, String content) {
String nickname = chat.getConsult().getCounselor().getNickname();
return nickname + content;
}
}

0 comments on commit 684cc24

Please sign in to comment.