Skip to content

Commit

Permalink
[feat/#92] service layer 형태 제작
Browse files Browse the repository at this point in the history
  • Loading branch information
HELLOHIDI committed Oct 14, 2024
1 parent af370aa commit 46bd03b
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,22 @@
//

import Foundation
import Combine

typealias AuthService = BaseService<AuthAPI>

protocol AuthServiceType {

}

extension AuthService: AuthServiceType {


}

struct StubAuthService: AuthServiceType {

}



Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,21 @@
//

import Foundation
import Combine

typealias ChallengeService = BaseService<ChallengeAPI>

protocol ChallengeServiceType {

}

extension ChallengeService: ChallengeServiceType {


}

struct StubChallengeService: ChallengeServiceType {

}


Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,33 @@
//

import Foundation
import Combine

typealias PointService = BaseService<PointAPI>

protocol PointServiceType {
func getUsagePoint()
func patchEarnPoint(challengeDate: String)
func getEarnPoint()
func getPointList()
func patchPointUse(challengeDate: String)
}

extension PointService: PointServiceType {
func getUsagePoint() {}
func patchEarnPoint(challengeDate: String) {}
func getEarnPoint() {}
func getPointList() {}
func patchPointUse(challengeDate: String) {}

}

struct StubPointServicee: PointServiceType {
func getUsagePoint() {}
func patchEarnPoint(challengeDate: String) {}
func getEarnPoint() {}
func getPointList() {}
func patchPointUse(challengeDate: String) {}
}


Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,20 @@
//

import Foundation
import Combine

typealias UserService = BaseService<UserAPI>

protocol UserServiceType {

}

extension UserService: UserServiceType {


}

struct StubUserService: UserServiceType {

}

0 comments on commit 46bd03b

Please sign in to comment.