-
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.
- Loading branch information
Showing
5 changed files
with
164 additions
and
15 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
...s/Core/Domain/Model/Sources/Model/Profile/ProfileUserPrefModel/ProfileUserPrefModel.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,57 @@ | ||
// | ||
// ProfileUserPrefModel.swift | ||
// Model | ||
// | ||
// Created by 서원지 on 11/22/23. | ||
// Copyright © 2023 Wonji Suh. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
// MARK: - Welcome | ||
public struct ProfileUserPrefModel: Codable { | ||
public let status: Int? | ||
public let data: ProfileUserPrefModelResponse? | ||
public let message: String? | ||
|
||
public init(status: Int?, data: ProfileUserPrefModelResponse?, message: String?) { | ||
self.status = status | ||
self.data = data | ||
self.message = message | ||
} | ||
} | ||
|
||
// MARK: - DataClass | ||
public struct ProfileUserPrefModelResponse: Codable { | ||
public let regDttm, modDttm: String? | ||
public let regrID, regrNm, modrID, modrNm: String? | ||
public let rmk, rowStatus: String? | ||
public let userPrefID, userID: Int? | ||
public let flavors, sources: [String]? | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case regDttm, modDttm | ||
case regrID = "regrId" | ||
case regrNm | ||
case modrID = "modrId" | ||
case modrNm, rmk, rowStatus | ||
case userPrefID = "userPrefId" | ||
case userID = "userId" | ||
case flavors, sources | ||
} | ||
|
||
public init(regDttm: String?, modDttm: String?, regrID: String?, regrNm: String?, modrID: String?, modrNm: String?, rmk: String?, rowStatus: String?, userPrefID: Int?, userID: Int?, flavors: [String]?, sources: [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.userPrefID = userPrefID | ||
self.userID = userID | ||
self.flavors = flavors | ||
self.sources = sources | ||
} | ||
} |
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