-
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.
Merge pull request #214 from PLUB2022/feat/130-MyPage/Main
[Feat] 마이페이지 메인 화면 구현
- Loading branch information
Showing
36 changed files
with
1,020 additions
and
6 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
PLUB/Assets.xcassets/MyPage/foldedArrow.imageset/Contents.json
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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "unfoldedArrow.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "unfoldedArrow@2x.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "unfoldedArrow@3x.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+369 Bytes
PLUB/Assets.xcassets/MyPage/foldedArrow.imageset/unfoldedArrow@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+490 Bytes
PLUB/Assets.xcassets/MyPage/foldedArrow.imageset/unfoldedArrow@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "pencil.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "pencil@2x.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "pencil@3x.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
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.
23 changes: 23 additions & 0 deletions
23
PLUB/Assets.xcassets/MyPage/setting.imageset/Contents.json
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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "setting.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "setting@2x.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "setting@3x.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
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.
23 changes: 23 additions & 0 deletions
23
PLUB/Assets.xcassets/MyPage/unfoldedArrow.imageset/Contents.json
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,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "unfoldedArrow.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "unfoldedArrow@2x.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "unfoldedArrow@3x.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+270 Bytes
PLUB/Assets.xcassets/MyPage/unfoldedArrow.imageset/unfoldedArrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+380 Bytes
PLUB/Assets.xcassets/MyPage/unfoldedArrow.imageset/unfoldedArrow@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+488 Bytes
PLUB/Assets.xcassets/MyPage/unfoldedArrow.imageset/unfoldedArrow@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// MyInfoResponse.swift | ||
// PLUB | ||
// | ||
// Created by 김수빈 on 2023/03/12. | ||
// | ||
|
||
import Foundation | ||
|
||
struct MyInfoResponse: Codable { | ||
let email: String | ||
let nickname: String | ||
let socialType: String | ||
let birthday: String | ||
let gender: String | ||
let introduce: String | ||
let profileImage: String? | ||
} |
13 changes: 13 additions & 0 deletions
13
PLUB/Sources/Models/MyPage/Request/MyPlubbingParameter.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 @@ | ||
// | ||
// MyPlubbingParameter.swift | ||
// PLUB | ||
// | ||
// Created by 김수빈 on 2023/03/13. | ||
// | ||
|
||
import Foundation | ||
|
||
struct MyPlubbingParameter: Encodable { | ||
let status: String | ||
let cursorId: Int | ||
} |
39 changes: 39 additions & 0 deletions
39
PLUB/Sources/Models/MyPage/Response/MyPlubbingResponse.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,39 @@ | ||
// | ||
// MyPlubbingResponse.swift | ||
// PLUB | ||
// | ||
// Created by 김수빈 on 2023/03/13. | ||
// | ||
|
||
import Foundation | ||
|
||
enum PlubbingStatusType: String, CaseIterable { | ||
case recruiting = "RECRUITING" | ||
case waiting = "WAITING" | ||
case active = "ACTIVE" | ||
case end = "END" | ||
} | ||
|
||
struct MyPlubbingResponse: Codable { | ||
let plubbingStatus: PlubbingStatusType.RawValue | ||
let plubbings: [MyPagePlubbing] | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case plubbingStatus | ||
case plubbings | ||
} | ||
} | ||
|
||
struct MyPagePlubbing: Codable { | ||
let plubbingID: Int | ||
let name: String | ||
let goal: String | ||
let iconImage: String | ||
let myPlubbingStatus: String | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case plubbingID = "plubbingId" | ||
case name = "title" | ||
case goal, iconImage, myPlubbingStatus | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// | ||
// MyPageRouter.swift | ||
// PLUB | ||
// | ||
// Created by 김수빈 on 2023/03/13. | ||
// | ||
|
||
import Alamofire | ||
|
||
enum MyPageRouter { | ||
case inquireMyMeeting(MyPlubbingParameter) | ||
} | ||
|
||
extension MyPageRouter: Router { | ||
var method: HTTPMethod { | ||
switch self { | ||
case .inquireMyMeeting: | ||
return .get | ||
} | ||
} | ||
|
||
var path: String { | ||
switch self { | ||
case .inquireMyMeeting: | ||
return "/plubbings/all/my" | ||
} | ||
} | ||
|
||
var parameters: ParameterType { | ||
switch self { | ||
case .inquireMyMeeting(let parameter): | ||
return .query(parameter) | ||
} | ||
} | ||
|
||
var headers: HeaderType { | ||
switch self { | ||
case .inquireMyMeeting: | ||
return .withAccessToken | ||
} | ||
} | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// MyPageService.swift | ||
// PLUB | ||
// | ||
// Created by 김수빈 on 2023/03/13. | ||
// | ||
|
||
import RxSwift | ||
|
||
final class MyPageService: BaseService { | ||
static let shared = MyPageService() | ||
|
||
private override init() { } | ||
} | ||
|
||
extension MyPageService { | ||
func inquireMyMeeting( | ||
status: PlubbingStatusType, | ||
cursorID: Int | ||
) -> PLUBResult<MyPlubbingResponse> { | ||
return sendRequest( | ||
MyPageRouter.inquireMyMeeting( | ||
.init( | ||
status:status.rawValue, | ||
cursorId: cursorID | ||
) | ||
), type: MyPlubbingResponse.self) | ||
} | ||
} |
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.