/*
 * @Author: your name
 * @Date: 2021-11-29 15:22:34
 * @LastEditTime: 2021-12-13 11:25:12
 * @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\usercenter\services\usercenter.service.ts
 */
import { Injectable, Injector } from '@angular/core';
import { _HttpClient } from '@delon/theme';
import { NzMessageService } from 'ng-zorro-antd/message';
import { BaseService } from 'src/app/shared/services/core/base.service';
import { EAFileUtil } from 'src/app/shared/utils/file.util';

@Injectable({
  providedIn: 'root'
})
export class UsermanageService extends BaseService {
  // 查询企业列表
  $api_get_freight_list = '/api/mdc/cuc/enterpriseInfo/operate/list/page';

  // 导出企业列表
  $api_export_freight_list = '/api/mdc/cuc/enterpriseInfo/operate/export';

  // 查询企业详情
  $api_get_freight_detail = '/api/mdc/cuc/enterpriseInfo/operate/detail';

  // 添加企业业务员
  $api_add_salesman = '/api/mdc/cuc/enterpriseInfo/operate/addSalesman';

  // 冻结/启用企业业
  $api_lock_freight = '/api/mdc/cuc/enterpriseInfo/operate/lock';

  // 企业审核
  $api_audit_freight = '/api/mdc/cuc/enterpriseInfo/operate/audit';

  // 货主员工列表(运营后台)
  $api_get_user_list = '/api/mdc/cuc/userApp/getShipperUserList';

  // 冻结或恢复员工
  $api_lock_staff = '/api/mdc/cuc/userApp/freezeOrResumeStaff';
  
  // 冻结或恢复应用用户
  $api_lock_app_user = '/api/mdc/cuc/userApp/freezeOrResume';

  // 冻结/启用用户
  $api_lock_user = '/api/mdc/cuc/enterpriseInfo/operate/lock';

  // 查询司机列表
  $api_get_driver_list = '/api/mdc/cuc/driver/list/page';

  // 根据应用用户id获取用户详情
  $api_get_user_detail = '/api/mdc/cuc/user/getUserDetailByAppUserId';
  // 根据应用用户ID获取身份信息表
  $api_get_user_identity = '/api/mdc/cuc/identityInfo/getIdentityInfoByAppUserId';
  // 司机详情查看-驾驶证
  $api_get_driver_license = '/api/mdc/cuc/driver/getDriversLicense';
  // 司机详情查看-从业资格证信息
  $api_get_driver_practice_seniority = '/api/mdc/cuc/driver/getDriversPracticeSeniority';
  // 司机详情查看-载具信息
  $api_get_driver_car_license = '/api/mdc/cuc/driver/getUserCarLicense';

  // 修改实名认证-运营管理后台
  $api_update_driver_identity = '/api/mdc/cuc/identityInfo/operatorAlterIdentity';
  // 修改驾驶证信息
  $api_update_driver_license = '/api/mdc/cuc/driver/updateDriverLicense';

  // 冻结或恢复应用用户
  $api_lock_or_free_user = '/api/mdc/cuc/userApp/freezeOrResume';
  // 人工审核实名认证
  $api_approve_identity = '/api/mdc/cuc/identityInfo/identityAudit';
  // 审核驾驶证信息
  $api_approve_driver_license = '/api/mdc/cuc/driver/auditDriverLicense';

  // 查询企业管理员审核信息
  $api_get_enterprise_admin_list = '/api/mdc/cuc/enterpriseAdmin/operate/list/page';
  // 根据主键ID获取企业管理员审核信息
  $api_get_enterprise_user_by_id = '/api/mdc/cuc/enterpriseAdmin/operate/get';
  // 审核企业管理员
  $api_audit_enterprise_admin = '/api/mdc/cuc/enterpriseAdmin/operate/audit';
  // 保存企业信息表
  $api_save_enterprise_admin = '/api/mdc/cuc/enterpriseInfo/operate/save';

  // 根据地区code查询列表
  $api_get_region_by_code = '/api/mdc/pbc/region/getRegionByCode';

  constructor(public injector: Injector) {
    super(injector);
  }
}
