/*
 * @Author: your name
 * @Date: 2021-12-30 19:36:30
 * @LastEditTime: 2022-01-04 10:34:31
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \tms-obc-web\src\app\routes\financial-management\services\freight-account.service.ts
 */
import { Injectable, Injector } from '@angular/core';
import { BaseService, EACacheService, ShipperBaseService } from '@shared';

@Injectable({
  providedIn: 'root'
})
export class FreightAccountService extends ShipperBaseService {
  $mock_url = '/rule?_allow_anonymous=true';

  // 运营端获取货主账户信息
  $api_get_shipper_account_page = '/api/fcc/accountBalance/getShipperAccountBalanceByOperator';
  // 运营端获取司机账户信息
  $api_get_driver_account_page = '/api/fcc/accountBalance/getDriverAccountBalanceByOperator';

  // 运营端获取货主账户明细信息
  $api_get_shipper_account_detail = '/api/fcc/accountBalanceDetail/getAccountBalanceShipperByOperatorPage';
  // 运营端获取司机账户明细信息
  $api_get_driver_account_detail = '/api/fcc/accountBalanceDetail/getAccountBalanceDriverByOperatorPage';
  // 运营端端获取货主交易收入与支出金额
  $api_get_shipper_account_balance_detail = '/api/fcc/accountBalanceDetail/getAccountBalanceShipperIncomeDetailByOperator';
  // 运营端端获取司机交易收入与支出金额
  $api_get_driver_account_balance_detail = '/api/fcc/accountBalanceDetail/getAccountBalanceDriverIncomeDetailByOperator';

  // 货主端获取账户余额交易明细
  $api_get_balance_by_shipper = '/api/fcc/accountBalanceDetail/getAccountBalanceByShipperPage';

  // 查询订单支付申请表
  $api_get_order_payment_page = '/api/fcc/billPaymentApplicationOBC/list/page';

  // 查询提现申请表
  $api_get_refund_page = '/api/fcc/refundApplicationOBC/list/page';
  // 获取提现申请表详情
  $api_get_refund_detail = '/api/fcc/refundApplicationOBC/get';
  // 同意提现
  $api_agree_refund = '/api/fcc/refundApplicationOBC/agreeRefund';
  // 拒绝提现
  $api_disagree_refund = '/api/fcc/refundApplicationOBC/disagreeRefund';

  // 查询充值信息表
  $api_get_recharge_page = '/api/fcc/rechargeInfo/list/getPageByOperator';
  // 查询异常入金
  $api_get_abnormal_gold_page = '/api/fcc/rechargeInfo/list/page';
  // 运营端获取账户余额交易明细
  $api_get_account_blance = '/api/fcc/accountBalanceDetail/getAccountBalanceByPage';


  // 查询费用单抬头
  $api_get_cost_page = '/api/fcc/ficoFeeH/list/page';
  // 根据费用头ID查询费用单及开票明细
  $api_get_cost_detail = '/api/fcc/ficoFeeL/detail';

  constructor(public injector: Injector,public eaCacheSrv: EACacheService) {
    super(injector, eaCacheSrv);
  }
}
