/*
 * @Description  : 
 * @Version      : 1.0
 * @Author       : Shiming
 * @Date         : 2021-12-27 10:30:56
 * @LastEditors  : Shiming
 * @LastEditTime : 2022-01-18 17:14:59
 * @FilePath     : \\tms-obc-web\\src\\app\\routes\\account\\services\\account.service.ts
 * Copyright (C) 2022 huzhenhong. All rights reserved.
 */

import { Injectable, Injector } from '@angular/core';
import { _HttpClient } from '@delon/theme';
import { NzMessageService } from 'ng-zorro-antd/message';
import { map } from 'rxjs/operators';
import { BaseService } from 'src/app/shared/services/core/base.service';
import { EAFileUtil } from 'src/app/shared/utils/file.util';

@Injectable({
  providedIn: 'root',
})
export class AccountService extends BaseService {

  // 获取当前登录用户详情
  $api_get_current_user_info = `/api/mdc/cuc/user/getUserInfo`;

  // 根据当前登录用户绑定的手机号码获取短信验证码
  $api_get_current_user_smVerification = `/api/mdc/pbc/smsSend/getSmVerificationCodeByToken`;
  // 获取短信验证码
  $api_get_getSMVerificationCode = `/api/mdc/pbc/smsSend/getSMVerificationCode`;

  // 验证手机号
  $api_get_verifyPhone = `/api/mdc/cuc/userBasicInfo/forgetPassword/verifyPhone`;

  // 凭证修改手机号
  $api_set_voucherUpdatePhone = `/api/mdc/cuc/userBasicInfo/forgetPassword/voucherUpdatePhone`;
  // 凭证修改密码
  $api_set_phoneUpdatePassword = `/api/mdc/cuc/userBasicInfo/phoneUpdatePassword`;
  constructor(public injector: Injector) {
    super(injector);
  }
}
