Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
505f66f
[Feat] #194 - 마라톤 Title 부분 기능 구현
thingineeer Nov 18, 2023
11141a7
[Feat] #194 - 코스발견 Title 수정
thingineeer Nov 18, 2023
db7e87e
[Feat] #194 - 마라톤 Cell skeleton 코드 추가
thingineeer Nov 18, 2023
ed1b4ca
[Feat] #194 - 추천 코스 수평 CVC 구현
thingineeer Nov 21, 2023
e938b96
[Feat] #194 - 코스 발견 수평 CVC 추가
thingineeer Nov 21, 2023
1edc88a
[Feat] #194 - 추천 코스의 셀 구현
thingineeer Nov 21, 2023
42b14a6
[Refactor] #194 - 코스 발견 코드 상수화 적용
thingineeer Nov 21, 2023
2cbd292
[Refactor] #194 - Then 문법 적용
thingineeer Nov 21, 2023
14c5393
[Chore] #194 - 서버 통신을 위한 코드 추가
thingineeer Nov 23, 2023
0df28bf
[Feat] #194 - 코스발견 정렬 파라미터 기능 구현
thingineeer Nov 23, 2023
f24f5df
[Refactor] #194 - 셀 타이틀 코드 수정
thingineeer Nov 23, 2023
63a4045
[Feat] #194 - 코스 발견 마라톤 DTO 추가
thingineeer Nov 26, 2023
562cf6c
[Feat] #194 - 마라톤 데이터 Cell에 추가
thingineeer Nov 26, 2023
f22d713
[Feat] #194 - 마라톤 라우터 추가
thingineeer Nov 26, 2023
d3780e7
[Feat] #194 - Combine 이벤트 추가
thingineeer Nov 26, 2023
16f53cc
[Feat] #194 - Combine 이벤트 받는 코드 추가
thingineeer Nov 26, 2023
0009a3f
[Refactor] #194 - Cyclomatic Complexity 경고 제거
thingineeer Nov 26, 2023
6ae5a94
[Feat] #194 - 코스 개수 받아오는 라우터 추가
thingineeer Nov 26, 2023
ccfad24
[Feat] #194 - 코스 개수 받아오는 DTO 추가
thingineeer Nov 26, 2023
b7584a3
[Feat] #194 - 코스 개수 네트워크 코드 구현
thingineeer Nov 26, 2023
e19183d
Merge branch 'develop' into #194---코스-발견-페이지-UI-리뉴얼
thingineeer Nov 28, 2023
94eef74
[Fix] #194 - 코스 발견 정렬 터치 이벤트 중복 삭제
thingineeer Nov 29, 2023
90246bf
[Feat] #194 - 코스 발견 서버에서 보내주는 갯수 상수 처리
thingineeer Nov 29, 2023
b22980f
[Feat] #194 - pagination 좀 더 부드럽게 코드 변경
thingineeer Nov 29, 2023
a67cbe3
[Chore] #194 - 필요없는 주석 제거
thingineeer Nov 29, 2023
5539539
[Chore] #194 - RecommendedListCVC 파일 이름 변경
thingineeer Nov 29, 2023
2bacc00
[Chore] #194 - 즉시 실행 클로저 -> Then 문법으로 변경
thingineeer Nov 29, 2023
e69ef01
[Fix] #194 - 코스 불러오는 갯수 변경
thingineeer Nov 30, 2023
3a44e5a
[Fix] #194 - level 자료형 변경
thingineeer Nov 30, 2023
f335617
[Chore] #194 - 기존 코드 오타 수정
thingineeer Dec 1, 2023
841a946
[Feat] #194 - 코드리뷰 1차 반영
thingineeer Dec 4, 2023
98ce908
[Fix] #194 - Assets 변경
thingineeer Dec 5, 2023
b695b8b
[Refactor] #194 - pagination 함수 분리
thingineeer Dec 5, 2023
7b58638
[Feat] #194 - 업로드 버튼 동적으로 구현
thingineeer Dec 5, 2023
9d862f8
[Docs] #194 - gitignore 추가
thingineeer Dec 7, 2023
f90f5d0
[Feat] #194 - 업로드 버튼 모션 수정
thingineeer Dec 7, 2023
31bd47f
[Feat] #194 - 업로드 버튼 애니메이션 수정
thingineeer Dec 8, 2023
2d7b98a
[Add] #194 - 코스 발견 페이징 DTO추가
thingineeer Dec 8, 2023
8e4a234
Feat #194 - 스크랩 이벤트 이슈 해결
thingineeer Dec 9, 2023
079fff8
[Chore] #194 - 필요 없는 주석 제거
thingineeer Dec 9, 2023
c30d8d2
[Fix] #194 - getCourseData 로딩 시간 변경
thingineeer Dec 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,12 @@ Gemfile.lock
report.xml
Runnect-iOS/fastlane/.env.default

## dynamicLink
Runnect-iOS/Runnect-iOS/GoogleService-Info.plist
### Runniest project - git ignore setting ###
Runnect-iOS/Runnect-iOS/Info.plist
Runnect-iOS/Info.plist
Info.plist

### dynamicLink ###
Runnect-iOS/Runnect-iOS/GoogleService-Info.plist
Runnect-iOS/GoogleService-Info.plist
GoogleService-Info.plist
32 changes: 26 additions & 6 deletions Runnect-iOS/Runnect-iOS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
23EE06D12AC2F44E00CB3FF8 /* TmapAddressSearchingResponseDto.swift in Sources */ = {isa = PBXBuildFile; fileRef = 23EE06D02AC2F44E00CB3FF8 /* TmapAddressSearchingResponseDto.swift */; };
712F661D2A7B7BAB00D9539B /* Config.swift in Sources */ = {isa = PBXBuildFile; fileRef = 712F661C2A7B7BAB00D9539B /* Config.swift */; };
7136BF8A2AF921A900679364 /* CustomBottomSheetVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7136BF892AF921A900679364 /* CustomBottomSheetVC.swift */; };
71717B072B063E14004EA8DA /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 71DBF23D2ABB255A0013415B /* GoogleService-Info.plist */; };
713BA40B2B218AF8009091A8 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 713BA40A2B218AF8009091A8 /* GoogleService-Info.plist */; };
717916DA2B13613B009CEF97 /* MarathonListResponseDto.swift in Sources */ = {isa = PBXBuildFile; fileRef = 717916D92B13613B009CEF97 /* MarathonListResponseDto.swift */; };
717916DE2B137DC3009CEF97 /* TotalPageCountDto.swift in Sources */ = {isa = PBXBuildFile; fileRef = 717916DD2B137DC3009CEF97 /* TotalPageCountDto.swift */; };
71F7804E2B0893B600B53253 /* MarathonTitleCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71F7804D2B0893B600B53253 /* MarathonTitleCollectionViewCell.swift */; };
71F780502B0893D700B53253 /* MarathonMapCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71F7804F2B0893D700B53253 /* MarathonMapCollectionViewCell.swift */; };
71F7BF072B0CDFE300B752B3 /* MarathonCourseListCVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 71F7BF062B0CDFE300B752B3 /* MarathonCourseListCVC.swift */; };
A3305A97296EF58C000B1A10 /* GoalRewardInfoDto.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3305A96296EF58C000B1A10 /* GoalRewardInfoDto.swift */; };
A3BC2F2B2962C3D500198261 /* GoalRewardInfoVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3BC2F2A2962C3D500198261 /* GoalRewardInfoVC.swift */; };
A3BC2F2D2962C3F200198261 /* ActivityRecordInfoVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3BC2F2C2962C3F200198261 /* ActivityRecordInfoVC.swift */; };
Expand Down Expand Up @@ -177,7 +182,12 @@
7110A6032AA337DD009A7E99 /* Runnect-iOSDebug.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "Runnect-iOSDebug.entitlements"; sourceTree = "<group>"; };
712F661C2A7B7BAB00D9539B /* Config.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Config.swift; sourceTree = "<group>"; };
7136BF892AF921A900679364 /* CustomBottomSheetVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomBottomSheetVC.swift; sourceTree = "<group>"; };
71DBF23D2ABB255A0013415B /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "../../../../Runnect-iOS/Runnect-iOS/Runnect-iOS/GoogleService-Info.plist"; sourceTree = "<group>"; };
713BA40A2B218AF8009091A8 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
717916D92B13613B009CEF97 /* MarathonListResponseDto.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MarathonListResponseDto.swift; sourceTree = "<group>"; };
717916DD2B137DC3009CEF97 /* TotalPageCountDto.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TotalPageCountDto.swift; sourceTree = "<group>"; };
71F7804D2B0893B600B53253 /* MarathonTitleCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MarathonTitleCollectionViewCell.swift; sourceTree = "<group>"; };
71F7804F2B0893D700B53253 /* MarathonMapCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MarathonMapCollectionViewCell.swift; sourceTree = "<group>"; };
71F7BF062B0CDFE300B752B3 /* MarathonCourseListCVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MarathonCourseListCVC.swift; sourceTree = "<group>"; };
A3305A96296EF58C000B1A10 /* GoalRewardInfoDto.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GoalRewardInfoDto.swift; sourceTree = "<group>"; };
A3BC2F2A2962C3D500198261 /* GoalRewardInfoVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GoalRewardInfoVC.swift; sourceTree = "<group>"; };
A3BC2F2C2962C3F200198261 /* ActivityRecordInfoVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ActivityRecordInfoVC.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -723,9 +733,11 @@
CE17F0442961C3D900E1DED0 /* Views */ = {
isa = PBXGroup;
children = (
DAD5A3DB296C6DB800C8166B /* MapCollectionViewCell.swift */,
DAD5A3D9296C6DA500C8166B /* TitleCollectionViewCell.swift */,
DAD5A3D7296C6D9600C8166B /* AdImageCollectionViewCell.swift */,
71F7804D2B0893B600B53253 /* MarathonTitleCollectionViewCell.swift */,
71F7804F2B0893D700B53253 /* MarathonMapCollectionViewCell.swift */,
DAD5A3D9296C6DA500C8166B /* TitleCollectionViewCell.swift */,
DAD5A3DB296C6DB800C8166B /* MapCollectionViewCell.swift */,
CE17F0432961C3D600E1DED0 /* VC */,
);
path = Views;
Expand Down Expand Up @@ -822,7 +834,7 @@
CE6655A9295D7FAA00C64E12 /* Network */,
CE6655A8295D7F7D00C64E12 /* Presentation */,
CE4545D6295D7AF5003201E1 /* Info.plist */,
71DBF23D2ABB255A0013415B /* GoogleService-Info.plist */,
713BA40A2B218AF8009091A8 /* GoogleService-Info.plist */,
);
path = "Runnect-iOS";
sourceTree = "<group>";
Expand Down Expand Up @@ -1156,6 +1168,7 @@
isa = PBXGroup;
children = (
CE6B63D2296725E6003F900F /* CourseListCVC.swift */,
71F7BF062B0CDFE300B752B3 /* MarathonCourseListCVC.swift */,
);
path = CVC;
sourceTree = "<group>";
Expand Down Expand Up @@ -1206,7 +1219,9 @@
DAD5A3E0296D4C2A00C8166B /* ResponseDto */ = {
isa = PBXGroup;
children = (
717916D92B13613B009CEF97 /* MarathonListResponseDto.swift */,
DAD5A3E1296D4C6500C8166B /* PickedMapListResponseDto.swift */,
717916DD2B137DC3009CEF97 /* TotalPageCountDto.swift */,
);
path = ResponseDto;
sourceTree = "<group>";
Expand Down Expand Up @@ -1274,7 +1289,7 @@
files = (
CE665615295D989A00C64E12 /* .swiftlint.yml in Resources */,
CE17F0342961BEF800E1DED0 /* Pretendard-Bold.otf in Resources */,
71717B072B063E14004EA8DA /* GoogleService-Info.plist in Resources */,
713BA40B2B218AF8009091A8 /* GoogleService-Info.plist in Resources */,
CE17F0352961BEF800E1DED0 /* Pretendard-SemiBold.otf in Resources */,
CE17F0332961BEF800E1DED0 /* Pretendard-Medium.otf in Resources */,
CE6655BF295D82E200C64E12 /* .gitkeep in Resources */,
Expand Down Expand Up @@ -1363,6 +1378,7 @@
CE4545CD295D7AF4003201E1 /* TaBarController.swift in Sources */,
A3305A97296EF58C000B1A10 /* GoalRewardInfoDto.swift in Sources */,
CE21C024299E5FE500F62AF5 /* UserRouter.swift in Sources */,
71F780502B0893D700B53253 /* MarathonMapCollectionViewCell.swift in Sources */,
CE6655F4295D898400C64E12 /* UIViewController+.swift in Sources */,
CE14677829658C7200DCEA1B /* Stopwatch.swift in Sources */,
CE21C026299E5FF300F62AF5 /* CourseRouter.swift in Sources */,
Expand Down Expand Up @@ -1410,6 +1426,7 @@
CEC2A6922962BE2900160BF7 /* DepartureSearchVC.swift in Sources */,
CE6655EE295D88E600C64E12 /* UITextField+.swift in Sources */,
CE40BB1C2967E4910030ABCA /* RunningWaitingVC.swift in Sources */,
71F7804E2B0893B600B53253 /* MarathonTitleCollectionViewCell.swift in Sources */,
CE6B63D6296731F9003F900F /* ScrapCourseListView.swift in Sources */,
CE6655F8295D90CF00C64E12 /* adjusted+.swift in Sources */,
A3C2CAD729E53B2900EC525B /* RNAlertVC.swift in Sources */,
Expand Down Expand Up @@ -1443,10 +1460,12 @@
A3D1A77E29CF09B600DD54EC /* SignInResponseDto.swift in Sources */,
CE21C028299E5FFC00F62AF5 /* PublicCourseRouter.swift in Sources */,
CE18E894296C79B900FEB569 /* CourseDrawingRequestDto.swift in Sources */,
71F7BF072B0CDFE300B752B3 /* MarathonCourseListCVC.swift in Sources */,
DA20D84E2966A9B300F1581F /* CourseSearchVC.swift in Sources */,
CE1006572968230800FD31FB /* DepartureLocationModel.swift in Sources */,
CECA695C296E61D6002AF05C /* PrivateCourseNotUploadedResponseDto.swift in Sources */,
CE6655EC295D88D000C64E12 /* UITableView+.swift in Sources */,
717916DE2B137DC3009CEF97 /* TotalPageCountDto.swift in Sources */,
CEEC6B3A2961C4F300D00E1E /* CourseDrawingHomeVC.swift in Sources */,
CEB0BCBC29D123350048CCD5 /* GuideView.swift in Sources */,
CEC2A6902962B06C00160BF7 /* convertLocationObject.swift in Sources */,
Expand Down Expand Up @@ -1474,6 +1493,7 @@
A3BC2F4129667A0D00198261 /* NicknameEditorVC.swift in Sources */,
CE0C23742966D62A00B45063 /* PagedView.swift in Sources */,
CE3A53C5296C6017003D518C /* KeychainManager.swift in Sources */,
717916DA2B13613B009CEF97 /* MarathonListResponseDto.swift in Sources */,
CEEC6B4B2961D89700D00E1E /* CustomNavigationBar.swift in Sources */,
CE09037D296E9ED900BEA710 /* ScrapCourseResponseDto.swift in Sources */,
CED791B32A2626AF001BFCFB /* ShadowView.swift in Sources */,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
@@ -1,17 +1,17 @@
{
"images" : [
{
"filename" : "plus.png",
"filename" : "Component 125.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "plus@2x.png",
"filename" : "Component 125@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "plus@3x.png",
"filename" : "Component 125@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
21 changes: 21 additions & 0 deletions Runnect-iOS/Runnect-iOS/Global/Utils/RNUtils/UserManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ final class UserManager {
}
case .failure(let error):
print(error.localizedDescription)
if let response = error.response {
if let responseData = String(data: response.data, encoding: .utf8) {
print("\n 🔥 SignIn 메세지 \(responseData)\n") // 이 코드는 2차 업데이트 토큰 부분 디버깅 용으로 사용합니다. (업데이트 이후 제거)
} else {
print(error.localizedDescription)
}
} else {
print(error.localizedDescription)
}

completion(.failure(.networkFail))
}
}
Expand Down Expand Up @@ -93,6 +103,17 @@ final class UserManager {
}
case .failure(let error):
print(error.localizedDescription)
// 아래 코드는 2차 업데이트 토큰 부분 디버깅 용으로 사용합니다. (업데이트 이후 제거)
// if let response = error.response {
// if let responseData = String(data: response.data, encoding: .utf8) {
// print("\n getNewToken 메세지 ‼️🔥\(responseData)\n")
// } else {
// print(error.localizedDescription)
// }
// } else {
// print(error.localizedDescription)
// }

completion(.failure(.networkFail))
}
}
Expand Down
34 changes: 0 additions & 34 deletions Runnect-iOS/Runnect-iOS/GoogleSupport/GoogleService-Info.plist

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct UploadedCourseDetailResponseDto: Codable {

struct UploadUser: Codable {
let nickname: String
let level: String
let level: Int
let image: String
let isNowUser: Bool?
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
//
// MarathonListResponseDto.swift
// Runnect-iOS
//
// Created by 이명진 on 11/26/23.
//

import Foundation

// MARK: - MarathonListResponseDto

struct MarathonListResponseDto: Codable {
let marathonPublicCourses: [marathonCourse]
}

// MARK: - PublicCourse

struct marathonCourse: Codable {
let id, courseId: Int
let title: String
let image: String
let scrap: Bool?
let departure: Departure
}

// MARK: - CourseDiscoveryDeparture

struct Departure: Codable {
let region: String
let city: String
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import Foundation
// MARK: - PickedMapListResponseDto

struct PickedMapListResponseDto: Codable {
let totalPageSize: Int
let isEnd: Bool
let publicCourses: [PublicCourse]
}

Expand All @@ -19,7 +21,7 @@ struct PublicCourse: Codable {
let id, courseId: Int
let title: String
let image: String
let scrap: Bool?
var scrap: Bool?
let description: String?
let distance: Float?
let departure: CourseDiscoveryDeparture
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// TotalPageCountDto.swift
// Runnect-iOS
//
// Created by 이명진 on 11/26/23.
//

import Foundation

// MARK: - TotalPageCountDto

struct TotalPageCountDto: Codable {
let totalPageCount: Int
}
19 changes: 13 additions & 6 deletions Runnect-iOS/Runnect-iOS/Network/Router/PublicCourseRouter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@ import Foundation
import Moya

enum PublicCourseRouter {
case getCourseData(pageNo: Int)
case getCourseData(pageNo: Int, sort: String)
case getCourseSearchData(keyword: String)
case getMarathonCourseData
case getTotalPageCount
case courseUploadingData(param: CourseUploadingRequestDto)
case getUploadedCourseDetail(publicCourseId: Int)
case getUploadedCourseInfo
case updatePublicCourse(publicCourseId: Int, editCourseRequestDto: EditCourseRequestDto)
case deleteUploadedCourse(publicCourseIdList: [Int])
}
}

extension PublicCourseRouter: TargetType {

Expand All @@ -31,8 +33,12 @@ extension PublicCourseRouter: TargetType {
switch self {
case .getCourseData, .courseUploadingData:
return "/public-course"
case .getMarathonCourseData:
return "/public-course/marathon"
case .getCourseSearchData:
return "/public-course/search"
case .getTotalPageCount:
return "public-course/total-page-count"
case .getUploadedCourseDetail(let publicCourseId):
return "/public-course/detail/\(publicCourseId)"
case .getUploadedCourseInfo:
Expand All @@ -46,7 +52,7 @@ extension PublicCourseRouter: TargetType {

var method: Moya.Method {
switch self {
case .getCourseData, .getCourseSearchData, .getUploadedCourseDetail, .getUploadedCourseInfo:
case .getCourseData, .getCourseSearchData, .getMarathonCourseData, .getUploadedCourseDetail, .getUploadedCourseInfo, .getTotalPageCount:
return .get
case .courseUploadingData:
return .post
Expand All @@ -59,8 +65,9 @@ extension PublicCourseRouter: TargetType {

var task: Moya.Task {
switch self {
case .getCourseData(let pageNo):
return .requestParameters(parameters: ["pageNo": pageNo], encoding: URLEncoding.default)
case .getCourseData(let pageNo, let sort):
var parameters: [String: Any] = ["pageNo": pageNo, "sort": sort]
return .requestParameters(parameters: parameters, encoding: URLEncoding.default)
case .getCourseSearchData(let keyword):
return .requestParameters(parameters: ["keyword": keyword], encoding: URLEncoding.default)
case .courseUploadingData(param: let param):
Expand All @@ -75,7 +82,7 @@ extension PublicCourseRouter: TargetType {
fatalError("Encoding 실패")}
case .deleteUploadedCourse(let publicCourseIdList):
return .requestParameters(parameters: ["publicCourseIdList": publicCourseIdList], encoding: JSONEncoding.default)
case .getUploadedCourseDetail, .getUploadedCourseInfo:
case .getMarathonCourseData, .getTotalPageCount, .getUploadedCourseDetail, .getUploadedCourseInfo:
return .requestPlain
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class AuthInterceptor: RequestInterceptor {
// 방문자일 경우
if UserManager.shared.userType == .visitor && urlRequest.url?.absoluteString.hasPrefix(Config.baseURL) == true {
urlRequest.setValue("visitor", forHTTPHeaderField: "accessToken")
urlRequest.setValue("null", forHTTPHeaderField: "refreshToken")
urlRequest.setValue("visitor", forHTTPHeaderField: "refreshToken")
completion(.success(urlRequest))
return
}
Expand Down
Loading