커뮤니티 게시물 신고 하기 추가

This commit is contained in:
Yu Sung
2023-12-20 23:27:23 +09:00
parent 302f69b265
commit 9f360e9fcd
5 changed files with 163 additions and 60 deletions

View File

@@ -10,12 +10,13 @@ import Foundation
struct ReportRequest: Encodable {
let type: ReportType
let reason: String
let reportedMemberId: Int?
let cheersId: Int?
let audioContentId: Int?
var reportedMemberId: Int? = nil
var cheersId: Int? = nil
var audioContentId: Int? = nil
var communityPostId: Int? = nil
}
enum ReportType: String, Codable {
case PROFILE, USER, CHEERS, AUDIO_CONTENT
case PROFILE, USER, CHEERS, AUDIO_CONTENT, COMMUNITY_POST
}