// // OrderService.swift // QuickLocation // // Created by 八条 on 2026/6/17. // import RxSwift import Moya struct OrderService { static let disposeBag = DisposeBag() /// 充值内容 /// - Parameters: /// - type: 类型 member static func rechargeInfo(type: String) -> Observable { let api = OrderAPI.rechargeInfo(type: type).multiTarget return APIProvider.request(token: api) .map(VipExpenseResponse.self) .asObservable() } /// 支付参数 /// - Parameters: /// - goodsId: 商品ID /// - payType: alipay、weixin /// - source: center /// - extra: 额外参数 static func orderPayParams(goodsId: String, payType: String, source: String="center", extra: [String:Any]=[:]) -> Observable { let api = OrderAPI.orderPayParams(goodsId: goodsId, payType: payType, source: source, extra: extra).multiTarget return APIProvider.request(token: api) .map(ResponseModel.self) .asObservable() } }