forked from sopt-makers/SOPT-iOS
-
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.
[Feat] sopt-makers#199 - N차 출석정보 조회 Entity, Model 구현
- Loading branch information
Showing
6 changed files
with
56 additions
and
24 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
21 changes: 21 additions & 0 deletions
21
SOPT-iOS/Projects/Data/Sources/Transform/AttendanceRoundTransform.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,21 @@ | ||
// | ||
// AttendanceLectureRoundTransform.swift | ||
// Data | ||
// | ||
// Created by 김영인 on 2023/04/22. | ||
// Copyright © 2023 SOPT-iOS. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
import Domain | ||
import Network | ||
|
||
extension AttendanceRoundEntity { | ||
public func toDomain() -> AttendanceRoundModel { | ||
return AttendanceRoundModel.init( | ||
subLectureId: self.id, | ||
round: self.round | ||
) | ||
} | ||
} |
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
21 changes: 21 additions & 0 deletions
21
SOPT-iOS/Projects/Domain/Sources/Model/AttendanceRoundModel.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,21 @@ | ||
// | ||
// AttendanceRoundModel.swift | ||
// Domain | ||
// | ||
// Created by 김영인 on 2023/04/22. | ||
// Copyright © 2023 SOPT-iOS. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct AttendanceRoundModel { | ||
public let subLectureId: Int | ||
public let round: Int | ||
|
||
public init(subLectureId: Int, round: Int) { | ||
self.subLectureId = subLectureId | ||
self.round = round | ||
} | ||
|
||
public static let EMPTY: Self = .init(subLectureId: 0, round: 0) | ||
} |
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