diff --git a/punchnet/Shared/Networking/SDLAPIClient+User.swift b/punchnet/Features/Auth/AuthService.swift similarity index 96% rename from punchnet/Shared/Networking/SDLAPIClient+User.swift rename to punchnet/Features/Auth/AuthService.swift index d2503f3..1412435 100644 --- a/punchnet/Shared/Networking/SDLAPIClient+User.swift +++ b/punchnet/Features/Auth/AuthService.swift @@ -6,9 +6,7 @@ // import Foundation -extension SDLAPIClient { - - +struct AuthService { static func loginWithAccountAndPassword(username: String, password: String) async throws -> NetworkSession { var params: [String: Any] = [ diff --git a/punchnet/Features/Network/API/SDLAPIClient+Network.swift b/punchnet/Features/Network/NetworkService.swift similarity index 97% rename from punchnet/Features/Network/API/SDLAPIClient+Network.swift rename to punchnet/Features/Network/NetworkService.swift index 45391f5..0931c3e 100644 --- a/punchnet/Features/Network/API/SDLAPIClient+Network.swift +++ b/punchnet/Features/Network/NetworkService.swift @@ -6,7 +6,7 @@ // import Foundation -extension SDLAPIClient { +struct NetworkService { static func connectNetwork(accesToken: String) async throws -> NetworkContext { let params: [String: Any] = [ diff --git a/punchnet/Shared/Networking/SDLAPIClient+App.swift b/punchnet/Shared/Services/AppService.swift similarity index 98% rename from punchnet/Shared/Networking/SDLAPIClient+App.swift rename to punchnet/Shared/Services/AppService.swift index 600d1a4..a83addc 100644 --- a/punchnet/Shared/Networking/SDLAPIClient+App.swift +++ b/punchnet/Shared/Services/AppService.swift @@ -6,7 +6,7 @@ // import Foundation -extension SDLAPIClient { +struct AppService { // 提交用户反馈 static func appIssue(accessToken: String, contact: String, content: String) async throws -> String {