homeRank static method
首页 排行榜 "type":1 // 1-用户日榜 2-用户周榜 3-用户月榜 4-主播日榜 5-主播周榜 6-主播月榜
Implementation
static homeRank(
int type,
Function(dynamic data) onSuccess,
Function(String errStr)? onError,
) {
DioManager().request<dynamic>(RequestType.POST, RequestApi.apiHomeRank, params: {'type': type}, onSuccess: (data) {
onSuccess(data);
}, onError: (error) {
if (onError != null) {
onError(error.message);
}
});
}