-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from mash-up-kr/feature/withdraw
νμ νν΄ κΈ°λ₯ μΆκ°
- Loading branch information
Showing
12 changed files
with
145 additions
and
21 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
24 changes: 24 additions & 0 deletions
24
Projects/DataSource/Sources/User/Delete/DeleteUserRequest.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,24 @@ | ||
// | ||
// DeleteUserRequest.swift | ||
// DataSource | ||
// | ||
// Created by λ°κ±΄μ° on 2022/08/30. | ||
// Copyright Β© 2022 kr.mash-up. All rights reserved. | ||
// | ||
|
||
import NetworkProtocol | ||
|
||
public struct DeleteUserRequest: Request { | ||
|
||
public typealias Body = EmptyRequestBody | ||
|
||
public typealias Output = DeleteUserResponse | ||
|
||
public var endpoint: String = "/api/v1/users" | ||
|
||
public var method: HTTPMethod = .delete | ||
|
||
public init(userId: Int) { | ||
endpoint = endpoint + "/\(userId)" | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
Projects/DataSource/Sources/User/Delete/DeleteUserResponse.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,13 @@ | ||
// | ||
// DeleteUserResponse.swift | ||
// DataSource | ||
// | ||
// Created by λ°κ±΄μ° on 2022/08/30. | ||
// Copyright Β© 2022 kr.mash-up. All rights reserved. | ||
// | ||
|
||
import NetworkProtocol | ||
|
||
public typealias DeleteUserResponse = BaseResponse<DeleteUserResponseBody> | ||
|
||
public struct DeleteUserResponseBody: Response {} |
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
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
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