|
|
|
@ -32,12 +32,13 @@ class UserBenefitFunc {
|
|
|
|
|
return UserIncomeModel.fromJson(result.data['data']);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//未到账收益
|
|
|
|
|
static Future<UserIncomeModel> notReceicedIncome(
|
|
|
|
|
String date_str, int type) async {
|
|
|
|
|
static Future<UserIncomeModel> notReceicedIncome(String date_str, int type) async {
|
|
|
|
|
ResultData result = await HttpManager.post(
|
|
|
|
|
APIV2.userAPI.notReceivedDetail, {'date_str': date_str, 'type': type});
|
|
|
|
|
APIV2.userAPI.notReceivedDetail,
|
|
|
|
|
{'date_str': date_str, 'type': type});
|
|
|
|
|
|
|
|
|
|
if (result.data != null) {
|
|
|
|
|
if (result.data['data'] != null) {
|
|
|
|
@ -113,8 +114,7 @@ class UserBenefitFunc {
|
|
|
|
|
return UserBenefitSubModel.fromJson(result.data, type);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static Future<List<UserBenefitMonthDetailModel>> monthDetail(
|
|
|
|
|
DateTime date) async {
|
|
|
|
|
static Future<List<UserBenefitMonthDetailModel>> monthDetail(DateTime date) async {
|
|
|
|
|
ResultData result = await HttpManager.post(
|
|
|
|
|
APIV2.userAPI.monthDetail,
|
|
|
|
|
{'month': DateUtil.formatDate(date, format: 'yyyy-MM')},
|
|
|
|
@ -179,8 +179,7 @@ class UserBenefitFunc {
|
|
|
|
|
return UserBenefitCommonModel.fromJson(result.data['data']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static Future<UserBenefitDayExpectModel> getBenefitDayExpect(
|
|
|
|
|
DateTime date) async {
|
|
|
|
|
static Future<UserBenefitDayExpectModel> getBenefitDayExpect(DateTime date) async {
|
|
|
|
|
String path = '';
|
|
|
|
|
Map<String, dynamic> params = {};
|
|
|
|
|
path = APIV2.benefitAPI.dayExpect;
|
|
|
|
@ -231,3 +230,4 @@ class UserBenefitFunc {
|
|
|
|
|
return UserBenefitExpectExtraModel.fromJson(result.data['data']);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|