Skip to content

Commit

Permalink
[fix]:Socket #146 유저 타입 스트링으로 변환
Browse files Browse the repository at this point in the history
  • Loading branch information
RyuKwanKon committed Nov 20, 2023
1 parent 983c960 commit 47a2016
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package com.kusitms.socketservice.domain.chat.dto.response;

import com.kusitms.socketservice.domain.chat.domain.ChatUser;
import com.kusitms.socketservice.domain.chat.domain.User;
import com.kusitms.socketservice.domain.chat.domain.UserType;
import lombok.Builder;
import lombok.Getter;

Expand All @@ -14,7 +12,7 @@ public class UserChatResponseDto {
private Long sessionId;
private String profile;
private String userName;
private UserType userType;
private String userType;
private String content;
private String time;

Expand All @@ -23,7 +21,7 @@ public static UserChatResponseDto of(ChatUser user, String content, LocalDateTim
.sessionId(user.getSessionId())
.profile(user.getProfile())
.userName(user.getName())
.userType(user.getType())
.userType(user.getType().getStringUserType())
.content(content)
.time(time.toString())
.build();
Expand Down

0 comments on commit 47a2016

Please sign in to comment.