个人中心
This commit is contained in:
61
src/app/routes/account/services/account.service.ts
Normal file
61
src/app/routes/account/services/account.service.ts
Normal file
@ -0,0 +1,61 @@
|
||||
/*
|
||||
* @Author: your name
|
||||
* @Date: 2021-11-02 11:12:21
|
||||
* @LastEditTime: 2021-11-05 10:04:26
|
||||
* @LastEditors: your name
|
||||
* @Description: In User Settings Edit
|
||||
* @FilePath: \scm-ows-ui\src\app\routes\account\services\account.service.ts
|
||||
*/
|
||||
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 {
|
||||
public $api_add_one!: string;
|
||||
public $api_add_many!: string;
|
||||
public $api_edit_one!: string;
|
||||
public $api_edit_many!: string;
|
||||
public $api_del_one!: string;
|
||||
public $api_del_many!: string;
|
||||
public $api_get_many!: string;
|
||||
public $api_get_one!: string;
|
||||
public $api_get_page!: string;
|
||||
public $api_export!: string;
|
||||
public $api_import!: string;
|
||||
public $api_import_download_tpl!: string;
|
||||
// 获取当前登录用户详情
|
||||
$api_get_current_user_detail = `/cuc/user/getUserInfo`;
|
||||
// 获取当前登录用户基本信息
|
||||
$api_getUserInfo = `/cuc/user/getUserInfo`;
|
||||
// 修改用户信息
|
||||
$api_updateUserInfo = `/cuc/userBasicInfo/updateUserInfo`;
|
||||
// 凭证修改手机号
|
||||
$api_voucherUpdatePhone = '/cuc/userBasicInfo/forgetPassword/voucherUpdatePhone';
|
||||
// 凭证修改密码
|
||||
$api_voucherUpdatePassword = '/cuc/userBasicInfo/forgetPassword/voucherUpdatePassword';
|
||||
// 根据当前登录用户绑定的手机号码获取短信验证码
|
||||
public $api_get_msg_code = `/cuc/userBasicInfo/getLoginUserSMVerificationCode`;
|
||||
// 验证手机号
|
||||
$api_verifyPhone = '/cuc/userBasicInfo/forgetPassword/verifyPhone';
|
||||
|
||||
// 获取当前登录用户详情
|
||||
$api_get_current_user_info = `/cuc/user/getUserInfo`;
|
||||
|
||||
// 修改用户名
|
||||
$api_updateUserName = `/cuc/userBasicInfo/updateUserName`;
|
||||
// 验证用户名是否已被使用
|
||||
$api_checkUserName = `/cuc/userBasicInfo/checkUserName`;
|
||||
|
||||
// constructor(http: _HttpClient, msgSrv: NzMessageService, fileExt: EAFileUtil) {
|
||||
// super(http, msgSrv, fileExt);
|
||||
// }
|
||||
constructor(public injector: Injector) {
|
||||
super(injector);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user