Skip to content

Commit

Permalink
⚰️ [#239] All / hwpDocument 관련 코드 지우기
Browse files Browse the repository at this point in the history
  • Loading branch information
kimsh153 committed Aug 4, 2023
1 parent 719c87b commit 612683d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 36 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ final class StudentDetailModel: ObservableObject, StudentDetailStateProtocol {
@Published var _studentDetailEntity: StudentDetailEntity?
@Published var isLoading: Bool = false
@Published var isDownloading: Bool = false
@Published var hwpDocument: HWPDocument?
var hwpFilename: String {
guard let studentDetailEntity, let info = studentDetailEntity.detailInfoByTeacher else { return "" }
let number = info.number >= 10 ? "\(info.number)" : "0\(info.number)"
return "\(info.grade)\(info.class)\(number)\(studentDetailEntity.name)-드림북.hwp"
}
}
// swiftlint: enable identifier_name

Expand All @@ -51,8 +45,4 @@ extension StudentDetailModel: StudentDetailActionProtocol {
func updateIsDownloading(isDownloading: Bool) {
self.isDownloading = isDownloading
}

func updateHWPDocument(hwpDocument: HWPDocument) {
self.hwpDocument = hwpDocument
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@ protocol StudentDetailStateProtocol {
var studentDetailEntity: StudentDetailEntity? { get }
var isLoading: Bool { get }
var isDownloading: Bool { get }
var hwpDocument: HWPDocument? { get }
var hwpFilename: String { get }
}

protocol StudentDetailActionProtocol: AnyObject {
func updateUserRole(role: UserRoleType)
func updateStudentDetailEntity(entity: StudentDetailEntity)
func updateIsLoading(isLoading: Bool)
func updateIsDownloading(isDownloading: Bool)
func updateHWPDocument(hwpDocument: HWPDocument)
}

0 comments on commit 612683d

Please sign in to comment.