34 lines
969 B
Swift
34 lines
969 B
Swift
//
|
||
// 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
|
||
}
|
||
}
|
||
|
||
}
|