feat(chat): 크리에이터 DM 시작을 추가한다

This commit is contained in:
Yu Sung
2026-09-14 22:03:46 +09:00
parent aea4e5558c
commit e486642a77
9 changed files with 505 additions and 2 deletions
@@ -1,7 +1,24 @@
import Foundation
struct UserCreatorCreateRoomRequest: Encodable {
let creatorId: Int
let recipientId: Int?
let creatorId: Int?
enum CodingKeys: String, CodingKey {
case recipientId
case creatorId
}
init(recipientId: Int? = nil, creatorId: Int? = nil) {
self.recipientId = recipientId
self.creatorId = creatorId
}
func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(recipientId, forKey: .recipientId)
try container.encodeIfPresent(creatorId, forKey: .creatorId)
}
}
struct UserCreatorCreateRoomResponse: Decodable {