first commit for e-party

This commit is contained in:
edwinQQQ
2025-07-07 14:19:07 +08:00
parent 007c10daaf
commit 5926906f3c
14 changed files with 1248 additions and 201 deletions

View File

@@ -1,10 +1,23 @@
import Foundation
/// API
///
/// API
/// -
/// -
/// - API
/// -
///
/// APIConfiguration
/// APIConfiguration
enum APIConstants {
// MARK: - Base URLs
///
static let baseURL = "http://beta.api.molistar.xyz"
// MARK: - Common Headers
///
/// Content-TypeAccept
static let defaultHeaders: [String: String] = [
"Content-Type": "application/json",
"Accept": "application/json",
@@ -13,12 +26,20 @@ enum APIConstants {
]
// MARK: - Endpoints
/// API
///
/// 使 APIEndpoints.swift
///
enum Endpoints {
static let clientInit = "/client/config"
///
static let clientInit = "/client/init"
///
static let login = "/user/login"
}
// MARK: - Common Parameters
///
/// BaseRequest
static let commonParameters: [String: String] = [:
// "platform": "ios",
// "version": "1.0.0"