-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[feat] 모임 가입 및 생성 API 연결
- Loading branch information
Showing
14 changed files
with
188 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
KkuMulKum/Network/DTO/Model/Meetings/RegisterMeetingsResponseModel.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// RegisterMeetingsResponseModel.swift | ||
// KkuMulKum | ||
// | ||
// Created by YOUJIM on 7/19/24. | ||
// | ||
|
||
import Foundation | ||
|
||
/// 모임 가입 (Response) | ||
struct RegisterMeetingsResponseModel: ResponseModelType { | ||
let meetingID: Int | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case meetingID = "meetingId" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
KkuMulKum/Source/MeetingCreate/CreateMeeting/Service/CreateMeetingService.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// CreateMeetingService.swift | ||
// KkuMulKum | ||
// | ||
// Created by YOUJIM on 7/13/24. | ||
// | ||
|
||
import Foundation | ||
|
||
import Moya | ||
|
||
protocol CreateMeetingServiceType { | ||
func createMeeting( | ||
request: MakeMeetingsRequestModel | ||
) async throws -> ResponseBodyDTO<MakeMeetingsResponseModel>? | ||
} | ||
|
||
extension MeetingService: CreateMeetingServiceType { | ||
func createMeeting( | ||
request: MakeMeetingsRequestModel | ||
) async throws -> ResponseBodyDTO<MakeMeetingsResponseModel>? { | ||
return try await self.request( | ||
with: .createMeeting( | ||
request: request | ||
) | ||
) | ||
} | ||
} |
25 changes: 0 additions & 25 deletions
25
KkuMulKum/Source/MeetingCreate/CreateMeeting/Service/MockCreateMeetingService.swift
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.