Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feat/#26-on-with-off' into feat/#25
Browse files Browse the repository at this point in the history
-mypage
  • Loading branch information
dami0806 committed Feb 18, 2024
2 parents 5a1e2be + 9533339 commit 5743c77
Show file tree
Hide file tree
Showing 43 changed files with 2,986 additions and 156 deletions.
191 changes: 185 additions & 6 deletions On_off_iOS/On_off_iOS.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "오늘의다짐뷰.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scale" : "1x"
},
{
"filename" : "온보딩1@2x.png",
"filename" : "온보딩1@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scale" : "1x"
},
{
"filename" : "온보딩2@2x.png",
"filename" : "온보딩2@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scale" : "1x"
},
{
"filename" : "온보딩3@2x.png",
"filename" : "온보딩3@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scale" : "1x"
},
{
"filename" : "온보딩시계@2x.png",
"filename" : "온보딩시계@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
Expand Down
10 changes: 10 additions & 0 deletions On_off_iOS/On_off_iOS/Constants/API/Endpoint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ enum StatisticsPath: String {
case nextMonth = "/stats/month/next"
}

enum WorklogPath: String {
case Worklog = "/on/worklog/worklogId" //체크,수정,삭제,내일로 미루기
case addWorklog = "/on/worklog/" //조회 및 추가

}

enum OnPath: String {
case On = "/on"
}

enum AlertPath: String {
case alertStatus = "/users/pushNotification"
}
Expand Down
5 changes: 5 additions & 0 deletions On_off_iOS/On_off_iOS/Constants/CellIdentifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ enum CellIdentifier: String {
case ImageCollectionView
case WorkLifeBalanceTableViewCell

// MARK: - On UIView
case WorkLogTableViewCell
case TodayResolutionTableViewCell

// MARK: - Calendar
case CalendarCell

}
10 changes: 5 additions & 5 deletions On_off_iOS/On_off_iOS/Home/Base/Service/HomeViewService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class HomeViewService {

/// 일주일 날짜 초기 가져오기
/// - Returns: Week Day
func weekDayInit() -> Observable<WeekDay> {
func weekDayInit() -> Observable<WeekDay?> {
let url = Domain.RESTAPI + WeekDayPath.weekdayInit.rawValue
let header = Header.header.getHeader()
return Observable.create { observer in
Expand All @@ -26,7 +26,7 @@ final class HomeViewService {
print(#function, response)
switch response.result {
case .success(let data):
observer.onNext(data.result)
observer.onNext(data.result )
case .failure(let error):
observer.onError(error)
}
Expand All @@ -51,7 +51,7 @@ final class HomeViewService {
print(#function, response)
switch response.result {
case .success(let data):
observer.onNext(data.result.nickname ?? "")
observer.onNext(data.result?.nickname ?? "")
case .failure(let error):
observer.onError(error)
}
Expand All @@ -64,7 +64,7 @@ final class HomeViewService {
/// 이전 일주일 날짜 가져오기
/// - Returns: Week Day
/// - Parameter date: 선택한 날짜
func movePrevWeek(date: String) -> Observable<WeekDay> {
func movePrevWeek(date: String) -> Observable<WeekDay?> {
let url = Domain.RESTAPI + WeekDayPath.prevWeek.rawValue
let parameters: Parameters = ["date": date]
let header = Header.header.getHeader()
Expand Down Expand Up @@ -93,7 +93,7 @@ final class HomeViewService {
/// 다음 일주일 날짜 가져오기
/// - Returns: Week Day
/// - Parameter date: 선택한 날짜
func moveNextWeek(date: String) -> Observable<WeekDay> {
func moveNextWeek(date: String) -> Observable<WeekDay?> {
let url = Domain.RESTAPI + WeekDayPath.nextWeek.rawValue
let parameters: Parameters = ["date": date]
let header = Header.header.getHeader()
Expand Down
Loading

0 comments on commit 5743c77

Please sign in to comment.