UserApi

@JvmBlocking
@JvmAsync
class UserApi

用户相关 API。

提供用户资料公开信息、关系、访客、徽章、商店等用户相关功能的访问接口。

Parameters

httpClient

配置好的 HTTP 客户端

baseUrl

API 基础 URL

Functions

Link copied to clipboard
suspend fun getLikeStatus(username: String): LikeStatusData

获取用户点赞状态。

Link copied to clipboard
suspend fun getSocialBadgeDetail(username: String, userBadgeId: String): SocialBadgeDetailData

获取用户社交徽章详情。

Link copied to clipboard
suspend fun getSocialBadges(username: String): SocialBadgesData

获取用户社交徽章列表。

Link copied to clipboard
suspend fun getStoreProducts(username: String): StoreProductsData

获取用户商店商品。

Link copied to clipboard
suspend fun getUserId(id: String): UserIdData

用户基础信息 ID 查询。

Link copied to clipboard
suspend fun getUserProfile(username: String): UserProfile

获取用户资料公开信息。

Link copied to clipboard

获取用户关系公开列表。

Link copied to clipboard
suspend fun getUserVisitors(username: String): UserVisitorsData

获取用户访客记录。