jsdw_ios/QuickLocation/Service/ItineraryService.swift

34 lines
969 B
Swift
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// ItineraryService.swift
// QuickLocation
//
// Created by 八条 on 2026/6/23.
//
import RxSwift
import Moya
struct ItineraryService {
static let disposeBag = DisposeBag()
/// 查询行程
/// - Parameters:
/// - follow: 只查看关注的行程
/// - own: 只查看自己创建的行程
/// - history: true查看历史行程,默认查看今天之后的行程
/// - group_key: 过滤圈子查询
static func query(follow: Bool=false,
own: Bool=false,
history: Bool=false,
group_key: String="") -> ListService<ScheduleListResponse> {
ListService(newPaging: true) {
ItineraryAPI.query(follow: follow,
own: own,
history: history,
group_key: group_key,
page: $0).multiTarget
}
}
}