Skip to content

Commit

Permalink
[feat] Feed DataModel 추가 (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
BAEKYUJEONG committed Aug 30, 2024
1 parent 0eedc9f commit 71fa88b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions PLUV.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
6859C9102C612ACE00E03179 /* DotView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6859C90F2C612ACE00E03179 /* DotView.swift */; };
68830FAA2C81D8CF00995785 /* WebViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 68830FA92C81D8CF00995785 /* WebViewController.swift */; };
68830FAD2C81F57900995785 /* FeedViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 68830FAC2C81F57900995785 /* FeedViewController.swift */; };
68830FB12C82657F00995785 /* Feed.swift in Sources */ = {isa = PBXBuildFile; fileRef = 68830FB02C82657F00995785 /* Feed.swift */; };
6889F5122C6CD194001F5FC2 /* SelectPlaylistViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6889F5112C6CD194001F5FC2 /* SelectPlaylistViewModel.swift */; };
6889F5162C6CE56F001F5FC2 /* SelectMusicViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6889F5152C6CE56F001F5FC2 /* SelectMusicViewController.swift */; };
6889F5182C6D234C001F5FC2 /* SelectMusicTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6889F5172C6D234C001F5FC2 /* SelectMusicTableViewCell.swift */; };
Expand Down Expand Up @@ -116,6 +117,7 @@
6859C90F2C612ACE00E03179 /* DotView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DotView.swift; sourceTree = "<group>"; };
68830FA92C81D8CF00995785 /* WebViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebViewController.swift; sourceTree = "<group>"; };
68830FAC2C81F57900995785 /* FeedViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeedViewController.swift; sourceTree = "<group>"; };
68830FB02C82657F00995785 /* Feed.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Feed.swift; sourceTree = "<group>"; };
6889F5112C6CD194001F5FC2 /* SelectPlaylistViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SelectPlaylistViewModel.swift; sourceTree = "<group>"; };
6889F5152C6CE56F001F5FC2 /* SelectMusicViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SelectMusicViewController.swift; sourceTree = "<group>"; };
6889F5172C6D234C001F5FC2 /* SelectMusicTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SelectMusicTableViewCell.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -371,6 +373,7 @@
6889F5192C6D49E3001F5FC2 /* Music.swift */,
6889F5262C6F4193001F5FC2 /* AccessTokenModel.swift */,
6889F53A2C72710F001F5FC2 /* Search.swift */,
68830FB02C82657F00995785 /* Feed.swift */,
);
path = DataModel;
sourceTree = "<group>";
Expand Down Expand Up @@ -776,6 +779,7 @@
68DB038A2C81170D00FBD014 /* MyPageItem.swift in Sources */,
68DC8A9B2C3C535300A03042 /* HomeViewController.swift in Sources */,
6889F5212C6E6E78001F5FC2 /* LoginViewController.swift in Sources */,
68830FB12C82657F00995785 /* Feed.swift in Sources */,
6889F5252C6E9A4F001F5FC2 /* MusicKitManager.swift in Sources */,
68DC8A972C3C535300A03042 /* AppDelegate.swift in Sources */,
68F6FAB02C4A8ECF001128FF /* MoveView.swift in Sources */,
Expand Down
24 changes: 24 additions & 0 deletions PLUV/DataModel/Feed.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//
// Feed.swift
// PLUV
//
// Created by 백유정 on 8/31/24.
//

import Foundation

struct Feed: Codable {
let id: Int
let title: String
let thumbNailURL: String
let artistNames: String
let creatorName: String
let transferredAt: String
let totalSongCount: Int?

enum CodingKeys: String, CodingKey {
case id, title
case thumbNailURL = "thumbNailUrl"
case artistNames, creatorName, transferredAt, totalSongCount
}
}

0 comments on commit 71fa88b

Please sign in to comment.