Skip to content

Commit

Permalink
๐Ÿ“ฎ๐ŸŽจ ์œ ์ €/๋ฐ˜๋ ค๋™๋ฌผ ๊ด€๋ จ api ์—ฐ๋™ + UI ์ˆ˜์ • (#100)
Browse files Browse the repository at this point in the history
* feat: ์‚ฌ์šฉ์ž ์„ค์ • ์ด๋ฆ„ ์กฐํšŒ api ์—ฐ๋™

* feat: ๋‹ค๋ฅธ ์œ ์ € ๋ณ„๋ช… ๋ณ€๊ฒฝ api ์—ฐ๋™

* fix: ๊ด€๋ฆฌ์ž api ์ŠคํŽ™ ๋ณ€๊ฒฝ์œผ๋กœ ์ธํ•œ ์ ์šฉ

* feat: ๋ฐ˜๋ ค๋™๋ฌผ ์ˆ˜์ • view ui ์ˆ˜์ •

* feat: ๋ฐ˜๋ ค๋™๋ฌผ ์ •๋ณด ์กฐํšŒ api ์—ฐ๋™

* feat: PetProfileEditVC ui ์ˆ˜์ •

* feat: ์„ฑ๋ณ„ ui  menu -> PanModal๋กœ ๋ณ€๊ฒฝ + ๋ฐ˜๋ ค๋™๋ฌผ ์ •๋ณด ์กฐํšŒ api ๋ฐ์ดํ„ฐ ์—ฐ๋™

* feat: ๋ฐ˜๋ ค๋™๋ฌผ ์ •๋ณด ์ˆ˜์ • api ์—ฐ๋™

* feat: ๋ฐ˜๋ ค๋™๋ฌผ ์‚ญ์ œ api ์—ฐ๋™

* feat: ๋ฐ˜๋ ค๋™๋ฌผ ์‚ญ์ œ api ์—ฐ๋™ ->  ๋ฐ์ดํ„ฐ ์ ์šฉ
  • Loading branch information
heejinnn authored Mar 17, 2024
1 parent 3003785 commit 72b2f54
Show file tree
Hide file tree
Showing 69 changed files with 1,082 additions and 360 deletions.
24 changes: 20 additions & 4 deletions fit-a-pet-client/fit-a-pet-client.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
4A8B9B4E2AD443FA009236EC /* MySearchRouter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A8B9B4D2AD443FA009236EC /* MySearchRouter.swift */; };
4A8B9B502AD444D0009236EC /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A8B9B4F2AD444D0009236EC /* Constants.swift */; };
4A9088772AC1681B000C7878 /* MainPetCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A9088752AC1681B000C7878 /* MainPetCollectionViewCell.swift */; };
4A9118742B95B35400B19D9E /* BasicUserInfoView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A9118732B95B35400B19D9E /* BasicUserInfoView.swift */; };
4A9936522B64230600B7B21A /* CalendarHeaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A9936512B64230600B7B21A /* CalendarHeaderView.swift */; };
4A9936542B64231B00B7B21A /* CalendarView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A9936532B64231B00B7B21A /* CalendarView.swift */; };
4A9936562B642A0800B7B21A /* CalendarRegistrationVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A9936552B642A0800B7B21A /* CalendarRegistrationVC.swift */; };
Expand Down Expand Up @@ -134,6 +135,9 @@
4AE293FA2B71495A00920C0B /* PetDetailCareListCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AE293F92B71495A00920C0B /* PetDetailCareListCollectionViewCell.swift */; };
4AE293FE2B714EC100920C0B /* PetDetailScheduleListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AE293FD2B714EC100920C0B /* PetDetailScheduleListView.swift */; };
4AE359C52B933B3100EB6E4A /* PetRouter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AE359C42B933B3100EB6E4A /* PetRouter.swift */; };
4AE7DC9F2B9CC001002BA0F4 /* SelectGenderPanModalVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AE7DC9E2B9CC001002BA0F4 /* SelectGenderPanModalVC.swift */; };
4AE7DCA12B9CC344002BA0F4 /* CustomTableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AE7DCA02B9CC344002BA0F4 /* CustomTableView.swift */; };
4AE7DCA32B9CC41F002BA0F4 /* CustomTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AE7DCA22B9CC41F002BA0F4 /* CustomTableViewCell.swift */; };
4AEDCE012B4C718E0043E872 /* PetCareRegistVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AEDCE002B4C718E0043E872 /* PetCareRegistVC.swift */; };
4AF0C84E2B24667500A45EEE /* FidnInputIdVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AF0C84D2B24667500A45EEE /* FidnInputIdVC.swift */; };
4AF0C8502B24765400A45EEE /* ResetPwVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AF0C84F2B24765400A45EEE /* ResetPwVC.swift */; };
Expand All @@ -143,7 +147,7 @@
4AF2409C2B88BDB000E224AE /* InviteWaitingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AF2409B2B88BDB000E224AE /* InviteWaitingView.swift */; };
4AF2409E2B88C25000E224AE /* MemberManagementVCMethod.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AF2409D2B88C25000E224AE /* MemberManagementVCMethod.swift */; };
4AF240A02B88C45D00E224AE /* InviteMemberTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AF2409F2B88C45D00E224AE /* InviteMemberTableViewCell.swift */; };
4AF240A22B8A4E2600E224AE /* petManagersManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AF240A12B8A4E2600E224AE /* petManagersManager.swift */; };
4AF240A22B8A4E2600E224AE /* PetManagersManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AF240A12B8A4E2600E224AE /* PetManagersManager.swift */; };
4AFBBBAF2B66DDFF00166643 /* ScheduleRegistrationManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4AFBBBAE2B66DDFF00166643 /* ScheduleRegistrationManager.swift */; };
5F3351521D53411AE096AE11 /* Pods_fit_a_pet_client.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AB1D3740B0C5A796E5D597B2 /* Pods_fit_a_pet_client.framework */; };
/* End PBXBuildFile section */
Expand Down Expand Up @@ -239,6 +243,7 @@
4A8B9B4D2AD443FA009236EC /* MySearchRouter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MySearchRouter.swift; sourceTree = "<group>"; };
4A8B9B4F2AD444D0009236EC /* Constants.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Constants.swift; sourceTree = "<group>"; };
4A9088752AC1681B000C7878 /* MainPetCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainPetCollectionViewCell.swift; sourceTree = "<group>"; };
4A9118732B95B35400B19D9E /* BasicUserInfoView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BasicUserInfoView.swift; sourceTree = "<group>"; };
4A9936512B64230600B7B21A /* CalendarHeaderView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CalendarHeaderView.swift; sourceTree = "<group>"; };
4A9936532B64231B00B7B21A /* CalendarView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CalendarView.swift; sourceTree = "<group>"; };
4A9936552B642A0800B7B21A /* CalendarRegistrationVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CalendarRegistrationVC.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -282,6 +287,9 @@
4AE293F92B71495A00920C0B /* PetDetailCareListCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PetDetailCareListCollectionViewCell.swift; sourceTree = "<group>"; };
4AE293FD2B714EC100920C0B /* PetDetailScheduleListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PetDetailScheduleListView.swift; sourceTree = "<group>"; };
4AE359C42B933B3100EB6E4A /* PetRouter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PetRouter.swift; sourceTree = "<group>"; };
4AE7DC9E2B9CC001002BA0F4 /* SelectGenderPanModalVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SelectGenderPanModalVC.swift; sourceTree = "<group>"; };
4AE7DCA02B9CC344002BA0F4 /* CustomTableView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomTableView.swift; sourceTree = "<group>"; };
4AE7DCA22B9CC41F002BA0F4 /* CustomTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomTableViewCell.swift; sourceTree = "<group>"; };
4AEDCE002B4C718E0043E872 /* PetCareRegistVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PetCareRegistVC.swift; sourceTree = "<group>"; };
4AF0C84D2B24667500A45EEE /* FidnInputIdVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FidnInputIdVC.swift; sourceTree = "<group>"; };
4AF0C84F2B24765400A45EEE /* ResetPwVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ResetPwVC.swift; sourceTree = "<group>"; };
Expand All @@ -291,7 +299,7 @@
4AF2409B2B88BDB000E224AE /* InviteWaitingView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InviteWaitingView.swift; sourceTree = "<group>"; };
4AF2409D2B88C25000E224AE /* MemberManagementVCMethod.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MemberManagementVCMethod.swift; sourceTree = "<group>"; };
4AF2409F2B88C45D00E224AE /* InviteMemberTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InviteMemberTableViewCell.swift; sourceTree = "<group>"; };
4AF240A12B8A4E2600E224AE /* petManagersManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = petManagersManager.swift; sourceTree = "<group>"; };
4AF240A12B8A4E2600E224AE /* PetManagersManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PetManagersManager.swift; sourceTree = "<group>"; };
4AFBBBAE2B66DDFF00166643 /* ScheduleRegistrationManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScheduleRegistrationManager.swift; sourceTree = "<group>"; };
A8CCF3AF04A53824C263132B /* Pods-fit-a-pet-client.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-fit-a-pet-client.debug.xcconfig"; path = "Target Support Files/Pods-fit-a-pet-client/Pods-fit-a-pet-client.debug.xcconfig"; sourceTree = "<group>"; };
AB1D3740B0C5A796E5D597B2 /* Pods_fit_a_pet_client.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_fit_a_pet_client.framework; sourceTree = BUILT_PRODUCTS_DIR; };
Expand All @@ -314,6 +322,7 @@
children = (
4A0150312B7410140069AF20 /* GenderView.swift */,
4A0150332B7545660069AF20 /* BirthdayView.swift */,
4A9118732B95B35400B19D9E /* BasicUserInfoView.swift */,
);
path = PetProfileEditView;
sourceTree = "<group>";
Expand Down Expand Up @@ -452,7 +461,7 @@
4A88D6162B53ABD2003A2D0F /* PetCareRegistrationManager.swift */,
4ABE52FF2B5AD92F000EA41D /* PetDataManager.swift */,
4AFBBBAE2B66DDFF00166643 /* ScheduleRegistrationManager.swift */,
4AF240A12B8A4E2600E224AE /* petManagersManager.swift */,
4AF240A12B8A4E2600E224AE /* PetManagersManager.swift */,
);
path = Manager;
sourceTree = "<group>";
Expand All @@ -464,6 +473,8 @@
4A828D8C2B619432006AE70A /* CustomCheckPopupView.swift */,
4A9936572B642B7E00B7B21A /* CustomVerticalView.swift */,
4A2974A72B7FD5D100587AF8 /* CustomPanModalView.swift */,
4AE7DCA02B9CC344002BA0F4 /* CustomTableView.swift */,
4AE7DCA22B9CC41F002BA0F4 /* CustomTableViewCell.swift */,
);
path = CustomView;
sourceTree = "<group>";
Expand Down Expand Up @@ -698,6 +709,7 @@
4A2D55D62B8663FE0079FDC7 /* MemberManagementVC.swift */,
4A2D55E12B87B7170079FDC7 /* InviteMemberVC.swift */,
4A6106C32B8CEEB4000502B9 /* ManagerDelegationVC.swift */,
4AE7DC9E2B9CC001002BA0F4 /* SelectGenderPanModalVC.swift */,
);
path = PetProfileVC;
sourceTree = "<group>";
Expand Down Expand Up @@ -902,6 +914,7 @@
4AD3542D2AAF7F83004A47B3 /* SettingVC.swift in Sources */,
4A80E4D42B49BA7800CD5D05 /* AnonymousAlamofire.swift in Sources */,
4AE293FA2B71495A00920C0B /* PetDetailCareListCollectionViewCell.swift in Sources */,
4A9118742B95B35400B19D9E /* BasicUserInfoView.swift in Sources */,
4AE293FE2B714EC100920C0B /* PetDetailScheduleListView.swift in Sources */,
4A0CC3622B810C6E004A9D77 /* RootFolderPanModalVC.swift in Sources */,
4AF0C8502B24765400A45EEE /* ResetPwVC.swift in Sources */,
Expand Down Expand Up @@ -967,13 +980,16 @@
4A0750D82B0D130F00281A4C /* PetRegistrationManager.swift in Sources */,
4AA999922A8485A500E495FA /* AppDelegate.swift in Sources */,
4AC6384B2B7A9F72006DB9B5 /* RecordCustomCheckPopupVC.swift in Sources */,
4AE7DCA32B9CC41F002BA0F4 /* CustomTableViewCell.swift in Sources */,
4A2D55D72B8663FE0079FDC7 /* MemberManagementVC.swift in Sources */,
4A9936582B642B7E00B7B21A /* CustomVerticalView.swift in Sources */,
4A1B5E492B79476A00A076A7 /* PetImageCollectionViewCell.swift in Sources */,
4A6106D02B8D19B1000502B9 /* UserInfoRouter.swift in Sources */,
4ABE53002B5AD92F000EA41D /* PetDataManager.swift in Sources */,
4A2D55DE2B86734D0079FDC7 /* MemberView.swift in Sources */,
4AE7DCA12B9CC344002BA0F4 /* CustomTableView.swift in Sources */,
4A88D6172B53ABD2003A2D0F /* PetCareRegistrationManager.swift in Sources */,
4AE7DC9F2B9CC001002BA0F4 /* SelectGenderPanModalVC.swift in Sources */,
4A4B085C2B77D2DF00959683 /* RecordVCMethod.swift in Sources */,
4A2D55D52B84C87F0079FDC7 /* NoRecordDataView.swift in Sources */,
4A9936542B64231B00B7B21A /* CalendarView.swift in Sources */,
Expand All @@ -999,7 +1015,7 @@
4A54A0B92B584D110024B940 /* PetProfileView.swift in Sources */,
4A54A0B62B5849230024B940 /* PetCollectionViewCell.swift in Sources */,
4AD354202AAF7CD6004A47B3 /* MainVC.swift in Sources */,
4AF240A22B8A4E2600E224AE /* petManagersManager.swift in Sources */,
4AF240A22B8A4E2600E224AE /* PetManagersManager.swift in Sources */,
4A0C7EFF2B5C29090097D753 /* MainPetListView.swift in Sources */,
4A2440712B374C0F0086D2AB /* CryptoHelpers.swift in Sources */,
4A2D55DC2B866ECB0079FDC7 /* UserDataView.swift in Sources */,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
uuid = "C80BB406-4616-4C49-BCAB-180D68A83C15"
type = "0"
version = "2.0">
</Bucket>
78 changes: 76 additions & 2 deletions fit-a-pet-client/fit-a-pet-client/API/AuthorizationAlamofire.swift
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,49 @@ class AuthorizationAlamofire: TokenHandling {
}
}

func petTotalInfoCheck(_ petId: Int, completion: @escaping (Result<Data?, Error>) -> Void) {
os_log("AuthorizationAlamofire - petTotalInfoCheck() called", log: .default, type: .info)

self.session.request(PetRouter.petTotalInfoCheck(petId: petId))
.response { response in
switch response.result {
case .success(let data):
completion(.success(data))
case .failure(let error):
completion(.failure(error))
}
}
}

func petInfoEdit(_ petId: Int, _ combinedData: [String: Any], completion: @escaping (Result<Data?, Error>) -> Void) {
os_log("AuthorizationAlamofire - petInfoEdit() called", log: .default, type: .info)

self.session.request(PetRouter.petInfoEdit(petId: petId, combinedData: combinedData))
.response { response in
switch response.result {
case .success(let data):
completion(.success(data))
case .failure(let error):
completion(.failure(error))
}
}
}

func petDelete(_ petId: Int, completion: @escaping (Result<Data?, Error>) -> Void) {
os_log("AuthorizationAlamofire - petDelete() called", log: .default, type: .info)

self.session.request(PetRouter.petDelete(petId: petId))
.response { response in
switch response.result {
case .success(let data):
completion(.success(data))
case .failure(let error):
completion(.failure(error))
}
}
}


//MARK: UserInfoRouter

func userProfileInfo(completion: @escaping(Result<Data?, Error>) -> Void){
Expand Down Expand Up @@ -245,6 +288,37 @@ class AuthorizationAlamofire: TokenHandling {
}
}

func userNicknameCheck(_ userId: Int, completion: @escaping (Result<Data?, Error>) -> Void) {
os_log("AuthorizationAlamofire - userNicknameCheck() called ", log: .default, type: .info)

self.session.request(UserInfoRouter.userNicknameCheck(userId: userId))
.response { response in
switch response.result {
case .success(let data):
completion(.success(data))
case .failure(let error):
completion(.failure(error))
}
}
}

func editSomeoneNickname(_ userId: Int, _ nickname: String, completion: @escaping (Result<Data?, Error>) -> Void) {
os_log("AuthorizationAlamofire - editSomeoneNickname() called: %@", log: .default, type: .info, nickname)

self.session.request(UserInfoRouter.editSomeoneNickname(userId: userId, nickname: nickname))
.response { response in
switch response.result {
case .success(let data):
completion(.success(data))
case .failure(let error):
completion(.failure(error))
}
}
}


//MARK: MySearchRouter

func createSchedule(_ combinedData: [String: Any], completion: @escaping (Result<Data?, Error>) -> Void) {
os_log("AuthorizationAlamofire - createSchedule() called userInput: %@", log: .default, type: .info)

Expand Down Expand Up @@ -370,10 +444,10 @@ class AuthorizationAlamofire: TokenHandling {
}
}

func deleteInviteMember(_ petId: Int, _ deleteId: String, completion: @escaping (Result<Data?, Error>) -> Void) {
func deleteInviteMember(_ petId: Int, _ invitationId: Int, completion: @escaping (Result<Data?, Error>) -> Void) {
os_log("AuthorizationAlamofire - deleteInviteMember() called ", log: .default, type: .info)

self.session.request(MySearchRouter.deleteInviteMember(petId: petId, deleteId: deleteId))
self.session.request(MySearchRouter.deleteInviteMember(petId: petId, invitationId: invitationId))
.response { response in
switch response.result {
case .success(let data):
Expand Down
26 changes: 9 additions & 17 deletions fit-a-pet-client/fit-a-pet-client/API/MySearchRouter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ enum MySearchRouter: URLRequestConvertible {
//manager
case petManagersList(petId: Int)
case inviteMember(petId: Int, inviteId: Int)
case deleteInviteMember(petId: Int, deleteId: String)
case deleteInviteMember(petId: Int, invitationId: Int)
case inviteMemberList(petId: Int)
case cancellationManager(petId: Int, userId: Int)
case managerDelegation(petId: Int, userId: Int)
Expand Down Expand Up @@ -75,8 +75,12 @@ enum MySearchRouter: URLRequestConvertible {
return "v2/schedules"
case .petScheduleList:
return "v2/accounts/\(UserDefaults.standard.string(forKey: "id")!)/schedules"
case .inviteMemberList(let petId), .deleteInviteMember(let petId, _), .inviteMember(let petId, _):
return "v2/pets/\(petId)/managers/invite"

case .inviteMember(let petId, _),.inviteMemberList(let petId):
return "v2/pets/\(petId)/invitations"

case .deleteInviteMember(let petId, let invitationId):
return "v2/pets/\(petId)/invitations/\(invitationId)"

case .cancellationManager(let petId, let userId), .managerDelegation(let petId, let userId):
return "v2/pets/\(petId)/managers/\(userId)"
Expand Down Expand Up @@ -166,7 +170,7 @@ enum MySearchRouter: URLRequestConvertible {
url = url.appendingPathComponent("/\(petId)/root-memo-categories/\(rootMemoCategoryId)")
request = URLRequest.createURLRequestWithBody(url: url, method: method, parameters: parameters)

case .recordDataListInquiry(let petId, let memoCategoryId, let searchData):
case .recordDataListInquiry(let petId, let memoCategoryId, _):
url = url.appendingPathComponent("/\(petId)/memo-categories/\(memoCategoryId)/memos")
request = URLRequest(url: url)
request.httpMethod = method.rawValue
Expand All @@ -176,19 +180,7 @@ enum MySearchRouter: URLRequestConvertible {
request = URLRequest(url: url)
request.httpMethod = method.rawValue

case .deleteInviteMember(let petId, let deleteId):
let queryParameters = [URLQueryItem(name: "id", value: deleteId)]
request = URLRequest.createURLRequestWithQuery(url: url, method: method, queryParameters: queryParameters)

case .cancellationManager( _, _):
request = URLRequest(url: url)
request.httpMethod = method.rawValue

case .managerDelegation( _, _):
request = URLRequest(url: url)
request.httpMethod = method.rawValue

case .inviteMemberList(let petId):
case .deleteInviteMember(_, _), .cancellationManager( _, _), .managerDelegation( _, _), .inviteMemberList( _):
request = URLRequest(url: url)
request.httpMethod = method.rawValue

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ enum AdminRouter: URLRequestConvertible {
}

func asURLRequest() throws -> URLRequest {
var url = baseURL.appendingPathComponent(path)
let url = baseURL.appendingPathComponent(path)
var request: URLRequest

switch self {
Expand Down
Loading

0 comments on commit 72b2f54

Please sign in to comment.