-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Dev' of github.com:DDD-Community/PINGPONG-IOS into Dev
- Loading branch information
Showing
4 changed files
with
194 additions
and
4 deletions.
There are no files selected for viewing
66 changes: 66 additions & 0 deletions
66
PingPong/Projects/Core/Domain/Model/Sources/Model/Archive/ArchiveModel.swift
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,66 @@ | ||
// | ||
// ArchiveModel.swift | ||
// Model | ||
// | ||
// Created by 서원지 on 11/4/23. | ||
// Copyright © 2023 Wonji Suh. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
// MARK: - Welcome | ||
public struct ArchiveModel: Codable { | ||
public let status: Int? | ||
public let data: [ArchiveResponseModel]? | ||
public let message: String? | ||
|
||
public init(status: Int?, data: [ArchiveResponseModel]?, message: String?) { | ||
self.status = status | ||
self.data = data | ||
self.message = message | ||
} | ||
} | ||
|
||
// MARK: - Datum | ||
public struct ArchiveResponseModel: Codable { | ||
public let regDttm, modDttm: String? | ||
public let regrID: String? | ||
public let regrNm: String? | ||
public let modrID: String? | ||
public let modrNm: String? | ||
public let rmk: String? | ||
public let rowStatus: String? | ||
public let quoteID: Int? | ||
public let content: String? | ||
public let author: String? | ||
public let flavor: String? | ||
public let source: String? | ||
public let mood: String? | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case regDttm, modDttm | ||
case regrID = "regrId" | ||
case regrNm | ||
case modrID = "modrId" | ||
case modrNm, rmk, rowStatus | ||
case quoteID = "quoteId" | ||
case content, author, flavor, source, mood | ||
} | ||
|
||
public init(regDttm: String?, modDttm: String?, regrID: String?, regrNm: String?, modrID: String?, modrNm: String?, rmk: String?, rowStatus: String?, quoteID: Int?, content: String?, author: String?, flavor: String?, source: String?, mood: String?) { | ||
self.regDttm = regDttm | ||
self.modDttm = modDttm | ||
self.regrID = regrID | ||
self.regrNm = regrNm | ||
self.modrID = modrID | ||
self.modrNm = modrNm | ||
self.rmk = rmk | ||
self.rowStatus = rowStatus | ||
self.quoteID = quoteID | ||
self.content = content | ||
self.author = author | ||
self.flavor = flavor | ||
self.source = source | ||
self.mood = mood | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
PingPong/Projects/Core/Domain/Model/Sources/Model/Archive/DeleteModel.swift
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,27 @@ | ||
// | ||
// DeleteModel.swift | ||
// Model | ||
// | ||
// Created by 서원지 on 11/5/23. | ||
// Copyright © 2023 Wonji Suh. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct DeleteModel: Codable { | ||
public let status: Int? | ||
public let data: DeleteResponseModel? | ||
public let message: String? | ||
|
||
public init(status: Int?, data: DeleteResponseModel?, message: String?) { | ||
self.status = status | ||
self.data = data | ||
self.message = message | ||
} | ||
} | ||
|
||
// MARK: - DataClass | ||
public struct DeleteResponseModel: Codable { | ||
|
||
public init() {} | ||
} |
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