You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
167 lines
4.7 KiB
167 lines
4.7 KiB
class APIV2 {
|
|
static UserAPI userAPI = UserAPI();
|
|
static BenefitAPI benefitAPI = BenefitAPI();
|
|
static _OrderAPI orderAPI = _OrderAPI();
|
|
static _InvoiceAoi invoiceApi = _InvoiceAoi();
|
|
}
|
|
|
|
class UserAPI {
|
|
///我的收益
|
|
String get userBenefit => '/v2/app/user/income';
|
|
|
|
///余额信息
|
|
String get balanceInfo => '/v2/app/user/balance/info';
|
|
|
|
///月余额记录信息
|
|
String get balanceMonthHistory => '/v2/app/user/balance/month_history';
|
|
|
|
///累计收益
|
|
String get accumulate => '/v2/app/user/income/accumulate';
|
|
|
|
//历史累计收益
|
|
String get oldIncome => '/v2/app/user/income/history';
|
|
|
|
///年度月收益
|
|
String get monthIncome => '/v2/app/user/income/month_income';
|
|
|
|
///累计自购收益
|
|
String get selfIncome => '/v2/app/user/income/purchase_accumulate';
|
|
|
|
///累计导购收益
|
|
String get guideIncome => '/v2/app/user/income/guide_accumulate';
|
|
|
|
///累计团队收益
|
|
String get teamIncome => '/v2/app/user/income/team_income';
|
|
|
|
///累计推荐收益
|
|
String get recommandIncome => '/v2/app/user/income/recommend_income';
|
|
|
|
///累计平台奖励
|
|
String get platformIncome => '/v2/app/user/income/reward_income';
|
|
|
|
///月度日收益
|
|
///
|
|
///包含`自购收益`和`导购收益`
|
|
String get monthDetail => '/v2/app/user/income/day_income';
|
|
|
|
///团队月收益详情
|
|
String get groupDetail => '/v2/app/user/income/team_month_income';
|
|
|
|
///月推荐收益详情
|
|
String get recommendDetail => '/v2/app/user/income/recommend_month_income';
|
|
|
|
///月平台奖励收益详情
|
|
String get platformDetail => '/v2/app/user/income/reward_month_income';
|
|
|
|
///未到账收益
|
|
String get notReceivedDetail => '/v2/app/user/income/nr/detail';
|
|
|
|
///到账收益
|
|
String get receivedDetail => '/v2/app/user/income/detail';
|
|
|
|
///团队未到账收益
|
|
String get groupNotReceivedDetail => '/v2/app/user/income/team/nr/detail';
|
|
|
|
///团队到账收益
|
|
String get groupReceivedDetail => '/v2/app/user/income/team/detail';
|
|
|
|
///我的团队列表
|
|
String get myGroup => '/v2/app/user/team';
|
|
|
|
///我的推荐列表
|
|
String get myRecommend => '/v2/app/user/recommend';
|
|
|
|
///我的奖励列表
|
|
String get myReward => '/v2/app/user/reward';
|
|
|
|
///推荐升级钻石
|
|
String get recommendDiamond => '/v2/app/user/recommend_diamond';
|
|
|
|
///用户角色变动
|
|
String get userLottery => '/v2/app/user/lottery';
|
|
|
|
///确认角色变动
|
|
String get agreeLottery => '/v2/app/user/lottery_agree';
|
|
|
|
String get userCheck => '/v2/app/user/check';
|
|
|
|
String get memberInfo => '/v2/app/user/member/info';
|
|
|
|
///角色卡列表
|
|
String get userCard => '/v2/app/user/welfare/lists';
|
|
|
|
///使用角色卡
|
|
String get useCard => '/v2/app/user/welfare/use';
|
|
|
|
///赠送角色卡
|
|
String get giveCard => '/v2/app/user/welfare/give';
|
|
|
|
///角色卡通知列表
|
|
String get userCardNoticeList => '/v2/app/user/welfare/notice/list';
|
|
|
|
///确认角色卡变动
|
|
String get confirmUserCardChange => '/v2/app/user/welfare/notice/look';
|
|
|
|
///会员隐私开关
|
|
String get securePhone => '/v2/app/user/secret';
|
|
|
|
String get userSaleAmount => '/v2/app/user/sale';
|
|
|
|
///二维码扫描
|
|
String get getScanResult => '/v2/app/operate/scan';
|
|
|
|
///注销短信发送
|
|
String get getDeleteMessage => '/v2/app/message/destroy/send';
|
|
|
|
///注销账户
|
|
String get deleteAccount => '/v2/app/user/operation/destroy';
|
|
}
|
|
|
|
class BenefitAPI {
|
|
///日收益详情
|
|
String get dayIncome => '/v2/app/user/income/day_incomes';
|
|
|
|
///月收益详情
|
|
String get monthIncome => '/v2/app/user/income/month_incomes';
|
|
|
|
///日自购导购预估收益
|
|
String get dayExpect => '/v2/app/user/income/day_expect';
|
|
|
|
///月自购导购预估收益
|
|
String get monthExpect => '/v2/app/user/income/month_expect';
|
|
|
|
///日团队推荐平台预估收益
|
|
String get dayExpectExtra => '/v2/app/user/income/day_expect_team';
|
|
|
|
///月团队推荐平台预估收益
|
|
String get monthExpectExtra => '/v2/app/user/income/month_expect_team';
|
|
|
|
///会员收益数据
|
|
String get incomeData => '/v2/app/user/member/income_data';
|
|
}
|
|
|
|
class _OrderAPI {
|
|
///导购订单列表
|
|
String get guideOrderList => '/v2/app/order/guide_lists';
|
|
}
|
|
|
|
class _InvoiceAoi {
|
|
///用户可开票订单列表
|
|
String get canInvoiceBill => '/v2/app/order/can_bill_list';
|
|
|
|
///显示用户抬头列表
|
|
String get invoiceList => '/v2/app/order/invoice_user_list';
|
|
|
|
///添加常用开票抬头(包括修改功能)
|
|
String get addInvocieTitle => '/v2/app/order/add_invoice_title';
|
|
|
|
///用户申请开票
|
|
String get applyInvoice => '/v2/app/order/apply_invoice';
|
|
|
|
///获取用户开票记录
|
|
String get invoiceRecord => '/v2/app/order/invoice_history';
|
|
|
|
///显示单个开票详情
|
|
String get invoiceDetail => '/v2/app/order/invoice_one_detail';
|
|
}
|