-
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 #126 from DeveloperAcademy-POSTECH/fix/Login/OrgName
[Fix] ์ฑ ๋ก๊ทธ์ธ ์ธ์ฆ๋ํ ์์ ๋ฒ๊ทธ ์์
- Loading branch information
Showing
5 changed files
with
101 additions
and
12 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
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
23 changes: 23 additions & 0 deletions
23
Projects/App/Sources/Domain/User/UserInfoManagerUseCase.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,23 @@ | ||
// | ||
// UserInfoManagerUseCase.swift | ||
// App | ||
// | ||
// Created by Lee Myeonghwan on 2022/12/04. | ||
// Copyright ยฉ 2022 com.zesty. All rights reserved. | ||
// | ||
|
||
import Combine | ||
import Foundation | ||
import Network | ||
|
||
final class UserInfoManagerUseCase { | ||
|
||
func fetchOrganizationList() -> AnyPublisher<[Organization], NetworkError> { | ||
return OrganizationAPI.fetchOrgList() | ||
.map { orgList in | ||
orgList.map { Organization(dto: $0) } | ||
} | ||
.eraseToAnyPublisher() | ||
} | ||
|
||
} |
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