Skip to content

Commit db4fa20

Browse files
committed
refactor: 루틴 수정/등록 엔티티 재정의
1 parent 4db6969 commit db4fa20

4 files changed

Lines changed: 54 additions & 26 deletions

File tree

Projects/DataSource/Sources/DTO/RoutineUpdateDTO.swift

Lines changed: 0 additions & 14 deletions
This file was deleted.

Projects/DataSource/Sources/DTO/SubRoutineUpdateDTO.swift

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//
2+
// RoutineUpdateApplyDateType.swift
3+
// Domain
4+
//
5+
// Created by 이동현 on 8/18/25.
6+
//
7+
8+
9+
public enum RoutineUpdateApplyDateType: String {
10+
case today = "TODAY"
11+
case tomorrow = "TOMORROW"
12+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
//
2+
// RoutineCreationEntity.swift
3+
// Domain
4+
//
5+
// Created by 이동현 on 8/18/25.
6+
//
7+
import Foundation
8+
9+
10+
public struct RoutineCreationEntity {
11+
public let id: String?
12+
public let name: String
13+
public let repeatDay: [Week]
14+
public let startDate: String
15+
public let endDate: String
16+
public let executionTime: String
17+
public let subroutines: [String]
18+
public let recommendedRoutineType: RoutineCategoryType?
19+
public let applyDateType: RoutineUpdateApplyDateType?
20+
21+
public init(
22+
id: String?,
23+
name: String,
24+
repeatDay: [Week],
25+
startDate: String,
26+
endDate: String,
27+
executionTime: String,
28+
subroutines: [String],
29+
recommendedRoutineType: RoutineCategoryType?,
30+
applyDateType: RoutineUpdateApplyDateType?
31+
) {
32+
self.id = id
33+
self.name = name
34+
self.repeatDay = repeatDay
35+
self.startDate = startDate
36+
self.endDate = endDate
37+
self.executionTime = executionTime
38+
self.subroutines = subroutines
39+
self.recommendedRoutineType = recommendedRoutineType
40+
self.applyDateType = applyDateType
41+
}
42+
}

0 commit comments

Comments
 (0)