diff --git a/Core/Sources/Model/FeedModel.swift b/Core/Sources/Model/FeedModel.swift deleted file mode 100644 index 1a43ffb..0000000 --- a/Core/Sources/Model/FeedModel.swift +++ /dev/null @@ -1,31 +0,0 @@ -// -// FeedModel.swift -// Core -// -// Created by 송여경 on 7/15/24. -// Copyright © 2024 com.recordy. All rights reserved. -// - -public struct FeedModel { - public let id: Int - public let thumbnail: String - public let isbookmarked: Bool - public let location: String - public let video: String? - public let keywords: [Keyword] - public let nickname: String? - public let description: String? - public let bookmarkCount: Int? - - public init(id: Int, thumbnail: String, isbookmarked: Bool, location: String, video: String?, keywords: [Keyword], nickname: String?, description: String?, bookmarkCount: Int?) { - self.id = id - self.thumbnail = thumbnail - self.isbookmarked = isbookmarked - self.location = location - self.video = video - self.keywords = keywords - self.nickname = nickname - self.description = description - self.bookmarkCount = bookmarkCount - } -} diff --git a/Core/Sources/Model/Follow.swift b/Core/Sources/Model/Follow.swift new file mode 100644 index 0000000..e2d657d --- /dev/null +++ b/Core/Sources/Model/Follow.swift @@ -0,0 +1,9 @@ +// +// Follow.swift +// Core +// +// Created by 한지석 on 9/29/24. +// Copyright © 2024 com.recordy. All rights reserved. +// + +import Foundation diff --git a/Core/Sources/Model/Follower.swift b/Core/Sources/Model/Follower.swift deleted file mode 100644 index 50374c4..0000000 --- a/Core/Sources/Model/Follower.swift +++ /dev/null @@ -1,28 +0,0 @@ -// -// Follower.swift -// Core -// -// Created by 한지석 on 7/20/24. -// Copyright © 2024 com.recordy. All rights reserved. -// - -import Foundation - -public struct Follower { - public let id: Int - public let username: String - public var isFollowing: Bool - public let profileImage : String - - public init( - id: Int, - username: String, - isFollowing: Bool, - profileImage: String - ) { - self.id = id - self.username = username - self.isFollowing = isFollowing - self.profileImage = profileImage - } -} diff --git a/Core/Sources/Model/Keyword.swift b/Core/Sources/Model/Keyword.swift deleted file mode 100644 index 55c095a..0000000 --- a/Core/Sources/Model/Keyword.swift +++ /dev/null @@ -1,69 +0,0 @@ -// -// Keyword.swift -// Core -// -// Created by 한지석 on 9/13/24. -// Copyright © 2024 com.recordy. All rights reserved. -// - -import Foundation - -public enum Keyword: CaseIterable { - case all - case sensitive - case intensive - case cute - case clean - case nerdy - case cozy - case exotic - case fun - case quiet - case concentrate - case classic - case trendy - - public var title: String { - switch self { - case .all: - "전체" - case .sensitive: - "감각적인" - case .intensive: - "강렬한" - case .cute: - "귀여운" - case .clean: - "깔끔한" - case .nerdy: - "덕후몰이" - case .cozy: - "아늑한" - case .exotic: - "이색적인" - case .fun: - "재밌는" - case .quiet: - "조용한" - case .concentrate: - "집중하기 좋은" - case .classic: - "클래식한" - case .trendy: - "트렌디한" - } - } - - public var width: CGFloat { - switch self { - case .all: - return 45 //2 - case .intensive, .cute, .clean, .cozy, .fun, .quiet: - return 56 //3 - case .sensitive, .nerdy, .exotic, .classic, .trendy: - return 66 //4 - case .concentrate: - return 92 - } - } -} diff --git a/Core/Sources/Model/LocalVideo.swift b/Core/Sources/Model/LocalVideo.swift deleted file mode 100644 index 4e66103..0000000 --- a/Core/Sources/Model/LocalVideo.swift +++ /dev/null @@ -1,23 +0,0 @@ -// -// LocalVideo.swift -// Core -// -// Created by 한지석 on 7/12/24. -// Copyright © 2024 com.recordy. All rights reserved. -// - -import Foundation -import Photos - -public struct LocalVideo { - public var asset: PHAsset - public var playtime: String - - public init( - asset: PHAsset, - playtime: String - ) { - self.asset = asset - self.playtime = playtime - } -} diff --git a/Core/Sources/Model/MainRecord.swift b/Core/Sources/Model/MainRecord.swift deleted file mode 100644 index 5c8f86c..0000000 --- a/Core/Sources/Model/MainRecord.swift +++ /dev/null @@ -1,28 +0,0 @@ -// -// FamousRecord.swift -// Core -// -// Created by Chandrala on 7/18/24. -// Copyright © 2024 com.recordy. All rights reserved. -// - -import Foundation - -public struct MainRecord { - public let id: Int - public let thumbnailUrl: String - public let location: String - public var isBookmarked: Bool - - public init( - id: Int, - thumbnailUrl: String, - location: String, - isBookmarked: Bool - ) { - self.id = id - self.thumbnailUrl = thumbnailUrl - self.location = location - self.isBookmarked = isBookmarked - } -} diff --git a/Core/Sources/Model/OverView.swift b/Core/Sources/Model/OverView.swift new file mode 100644 index 0000000..9af6c50 --- /dev/null +++ b/Core/Sources/Model/OverView.swift @@ -0,0 +1,9 @@ +// +// Overview.swift +// Core +// +// Created by 한지석 on 9/29/24. +// Copyright © 2024 com.recordy. All rights reserved. +// + +import Foundation diff --git a/Core/Sources/Model/Place.swift b/Core/Sources/Model/Place.swift new file mode 100644 index 0000000..9508afb --- /dev/null +++ b/Core/Sources/Model/Place.swift @@ -0,0 +1,15 @@ +// +// Location.swift +// Core +// +// Created by 한지석 on 9/29/24. +// Copyright © 2024 com.recordy. All rights reserved. +// + +import Foundation + +struct Location { + let location + let title: String + +} diff --git a/Core/Sources/Model/PlaceInfo.swift b/Core/Sources/Model/PlaceInfo.swift new file mode 100644 index 0000000..f4772b9 --- /dev/null +++ b/Core/Sources/Model/PlaceInfo.swift @@ -0,0 +1,9 @@ +// +// PlaceInfo.swift +// Core +// +// Created by 한지석 on 9/29/24. +// Copyright © 2024 com.recordy. All rights reserved. +// + +import Foundation diff --git a/Core/Sources/Model/PlaceReview.swift b/Core/Sources/Model/PlaceReview.swift new file mode 100644 index 0000000..d9212c5 --- /dev/null +++ b/Core/Sources/Model/PlaceReview.swift @@ -0,0 +1,9 @@ +// +// PlaceReview.swift +// Core +// +// Created by 한지석 on 9/29/24. +// Copyright © 2024 com.recordy. All rights reserved. +// + +import Foundation diff --git a/Core/Sources/Model/ProfileUserModel.swift b/Core/Sources/Model/ProfileUserModel.swift deleted file mode 100644 index c08a4d6..0000000 --- a/Core/Sources/Model/ProfileUserModel.swift +++ /dev/null @@ -1,25 +0,0 @@ -// -// ProfileUserModel.swift -// Core -// -// Created by 한지석 on 7/20/24. -// Copyright © 2024 com.recordy. All rights reserved. -// - -import Foundation - -public struct ProfileUserModel { - public let name: String - public let followerCount: String - public let followingCount: String - - public init( - name: String, - followerCount: String, - followingCount: String - ) { - self.name = name - self.followerCount = followerCount - self.followingCount = followingCount - } -} diff --git a/Core/Sources/Model/TasteData.swift b/Core/Sources/Model/TasteData.swift deleted file mode 100644 index 149962b..0000000 --- a/Core/Sources/Model/TasteData.swift +++ /dev/null @@ -1,31 +0,0 @@ -// -// TasteData.swift -// Core -// -// Created by 한지석 on 7/20/24. -// Copyright © 2024 com.recordy. All rights reserved. -// - -import Foundation - -public struct TasteData { - public let title: String - public let percentage: Int - public let type: TasteCase - - public init( - title: String, - percentage: Int, - type: TasteCase - ) { - self.title = title - self.percentage = percentage - self.type = type - } -} - -public enum TasteCase: Int { - case large - case medium - case small -} diff --git a/Core/Sources/Model/UserRecord.swift b/Core/Sources/Model/UserRecord.swift deleted file mode 100644 index 8445c7c..0000000 --- a/Core/Sources/Model/UserRecord.swift +++ /dev/null @@ -1,27 +0,0 @@ -// -// UserRecord.swift -// Core -// -// Created by 송여경 on 7/18/24. -// Copyright © 2024 com.recordy. All rights reserved. -// -import Foundation - -public struct UserRecord { - public let userId: Int - public let recordId: Int - public let location: String - public var isBookmarked: Bool - - public init( - userId: Int, - recordId: Int, - location: String, - isBookmarked: Bool - ) { - self.userId = userId - self.recordId = recordId - self.location = location - self.isBookmarked = isBookmarked - } -}