SearchApi

@JvmBlocking
@JvmAsync
class SearchApi

搜索与发现 API,提供热门推荐、随机推荐、关键词搜索、物种检索与热门地区等能力。

Functions

Link copied to clipboard
suspend fun getPopular(limit: Int? = null): PopularResponse

获取热门用户列表(热门推荐.md)。

Link copied to clipboard

获取热门地区(按省份与城市分组)(热门地区.md)。

Link copied to clipboard

DEPRECATED in v0.5.0 旧版使用 RandomFursuitParams 包装的入口,推荐直接使用展开参数版本 getRandomFursuit。

suspend fun getRandomFursuit(count: Int? = null): RandomFursuitResponse

获取随机兽装用户列表(随机推荐.md)。

Link copied to clipboard

获取搜索建议(搜索建议.md)。

Link copied to clipboard

获取全部物种及统计列表(物种列表.md)。

Link copied to clipboard
suspend fun search(params: SearchParams): SearchResponse

DEPRECATED in v0.5.0 旧版使用 SearchParams 包装的入口,推荐直接使用展开参数版本 search。

suspend fun search(query: String, type: String? = null, cursor: String? = null, limit: Int? = null, page: Int? = null): SearchResponse

按关键词搜索用户(搜索.md)。

Link copied to clipboard
suspend fun searchBySpecies(species: String, page: Int? = null, limit: Int? = null, cursor: String? = null): SpeciesSearchResponse

按物种搜索用户(按物种搜索.md),支持可选分页。