-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Feat] 개인 기록 구현
- Loading branch information
Showing
19 changed files
with
1,022 additions
and
47 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
41 changes: 41 additions & 0 deletions
41
Namo_SwiftUI/Projects/Domain/Diary/Sources/Model/Diary.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,41 @@ | ||
// | ||
// Diary.swift | ||
// DomainDiary | ||
// | ||
// Created by 박민서 on 11/14/24. | ||
// | ||
|
||
public struct Diary: Equatable { | ||
public let id: Int? | ||
public var content: String | ||
public var enjoyRating: Int | ||
public var images: [DiaryImage] | ||
|
||
public init( | ||
id: Int? = nil, | ||
content: String = "", | ||
enjoyRating: Int = 0, | ||
images: [DiaryImage] = [] | ||
) { | ||
self.id = id | ||
self.content = content | ||
self.enjoyRating = enjoyRating | ||
self.images = images | ||
} | ||
} | ||
|
||
public struct DiaryImage: Equatable { | ||
public let id: Int? | ||
public var orderNumber: Int | ||
public let imageUrl: String | ||
|
||
public init( | ||
id: Int? = nil, | ||
orderNumber: Int, | ||
imageUrl: String | ||
) { | ||
self.id = id | ||
self.orderNumber = orderNumber | ||
self.imageUrl = imageUrl | ||
} | ||
} |
Oops, something went wrong.