-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
195 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// | ||
// ReportViewModel.swift | ||
// Spon-us | ||
// | ||
// Created by 박현수 on 2/19/24. | ||
// | ||
|
||
import Foundation | ||
|
||
// 최상위 응답 객체 | ||
struct ReportResponseModel: Codable { | ||
let statusCode: String | ||
let message: String | ||
let content: ReportContent | ||
} | ||
|
||
// 'content' 필드 내용 | ||
struct ReportContent: Codable { | ||
let id: Int | ||
let writerId: Int | ||
let title: String | ||
let content: String | ||
let reportImages: [ReportImage] | ||
let reportAttachments: [ReportAttachment] | ||
} | ||
|
||
// 'reportImages' 배열 내의 객체 | ||
struct ReportImage: Codable { | ||
let id: Int | ||
let name: String | ||
let url: String | ||
} | ||
|
||
// 'reportAttachments' 배열 내의 객체 | ||
struct ReportAttachment: Codable { | ||
let id: Int | ||
let name: String | ||
let url: String | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.