-
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.
[Feat] #252 - 명언 api 요청을 위한 basefile 세팅
- URLConstant 추가 - ResponseDTO 추가 - Error 핸들링을 위한 Enum 생성 - 컴포넌트 폴더링
- Loading branch information
Showing
6 changed files
with
100 additions
and
2 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
iOS-NOTTODO/Widget-NOTTODO/Network/Base/NetworkError.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,14 @@ | ||
// | ||
// NetworkError.swift | ||
// iOS-NOTTODO | ||
// | ||
// Created by 강윤서 on 5/11/24. | ||
// | ||
|
||
import Foundation | ||
|
||
enum NetworkError: Error { | ||
case invalidResponse | ||
case networkError | ||
case dataParsingError | ||
} |
14 changes: 14 additions & 0 deletions
14
iOS-NOTTODO/Widget-NOTTODO/Network/DataModel/QuoteResponseDTO.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,14 @@ | ||
// | ||
// QuoteResponseDTO.swift | ||
// iOS-NOTTODO | ||
// | ||
// Created by 강윤서 on 5/10/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct QuoteResponseDTO: Codable { | ||
let id: Int | ||
let description: String | ||
let author: String | ||
} |
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
File renamed without changes.
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