Package-level declarations

Types

Link copied to clipboard
@Serializable
data class ApiResponse<T>(val success: Boolean, val data: T, val requestId: String)

通用 API 响应包装 用于统一 API 响应格式

Link copied to clipboard
@Serializable
data class DiscoverySearchParams(val query: String, val page: Int? = null, val pageSize: Int? = null, val type: String? = null)

Discovery 搜索参数 用于 discovery 搜索接口的请求参数

Link copied to clipboard
@Serializable
data class DiscoverySpeciesSearchParams(val speciesId: String, val page: Int? = null, val pageSize: Int? = null)

Discovery 按物种搜索参数 用于 discovery 按物种搜索接口的请求参数

Link copied to clipboard
@Serializable
data class GatheringMonthlyParams(val year: Int, val month: Int, val lat: Double? = null, val lng: Double? = null)

聚会月历参数 用于聚会月历接口的请求参数

Link copied to clipboard
@Serializable
data class GatheringNearbyParams(val lat: Double, val lng: Double, val radius: Int? = null)

附近聚会参数 用于附近聚会接口的请求参数

Link copied to clipboard
@Serializable
data class GatheringRegistrationsParams(val gatheringId: String, val status: String? = null, val cursor: String? = null, val limit: Int? = null)

聚会报名列表参数 用于聚会报名列表接口的请求参数

Link copied to clipboard
@Serializable
data class GeoLocation(val lat: Double, val lng: Double)

地理位置坐标 表示一个地理位置的经纬度坐标

Link copied to clipboard
@Serializable
data class ImageResource(val url: String, val width: Int? = null, val height: Int? = null)

图片资源 表示一个图片资源的信息

Link copied to clipboard
@Serializable
data class PaginatedResponse<T>(val items: List<T>, val nextCursor: String? = null, val hasMore: Boolean = false)

分页响应数据 通用的分页响应包装

Link copied to clipboard
@Serializable
data class PaginationParams(val cursor: String? = null, val limit: Int? = null)

分页请求参数 用于支持分页查询

Link copied to clipboard
@Serializable
data class RandomFursuitParams(val count: Int? = null, val personalized: Boolean? = null)

随机推荐参数 用于随机推荐接口的请求参数

Link copied to clipboard
@Serializable
data class SchoolSearchParams(val query: String, val cursor: String? = null, val limit: Int? = null)

学校搜索参数 用于学校搜索接口的请求参数

Link copied to clipboard
class SdkConfig

SDK 配置类 用于统一管理 SDK 的各种配置项,包括 API 端点、超时、重试等设置

Link copied to clipboard
@Serializable
data class SearchParams(val query: String, val type: String? = null, val cursor: String? = null, val limit: Int? = null)

搜索参数 用于搜索接口的请求参数

Link copied to clipboard
@Serializable
data class TimeRange(val start: String, val end: String)

时间范围 表示一个时间范围