feat(character-detail) 대화하기 버튼 액션 추가
- 채팅방 생성 API 호출
This commit is contained in:
		@@ -15,6 +15,8 @@ struct ChatRoomView: View {
 | 
			
		||||
    
 | 
			
		||||
    @AppStorage("can") private var can: Int = UserDefaults.int(forKey: .can)
 | 
			
		||||
    
 | 
			
		||||
    let roomId: Int
 | 
			
		||||
    
 | 
			
		||||
    var body: some View {
 | 
			
		||||
        BaseView(isLoading: $viewModel.isLoading) {
 | 
			
		||||
            ChatRoomBgView()
 | 
			
		||||
@@ -207,5 +209,5 @@ struct ChatRoomBgView: View {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#Preview {
 | 
			
		||||
    ChatRoomView()
 | 
			
		||||
    ChatRoomView(roomId: 0)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -6,5 +6,5 @@
 | 
			
		||||
//
 | 
			
		||||
 | 
			
		||||
struct CreateChatRoomResponse: Decodable {
 | 
			
		||||
    let chatRoomId: Int64
 | 
			
		||||
    let chatRoomId: Int
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user