添加修改头像功能

This commit is contained in:
Jerry
2024-08-15 14:55:26 +08:00
parent 8a64b28099
commit 3599f28910
10 changed files with 112 additions and 14 deletions

View File

@@ -1,9 +1,9 @@
import { API_CONTEXT } from '../config';
import { loginParam, LoginUserInfo } from '@/types/upms/login';
import { UserInfo } from '@/types/upms/user';
import { BaseController } from '@/api/BaseController';
import { RequestOption, TableData } from '@/common/http/types';
import { ANY_OBJECT } from '@/types/generic';
import { API_CONTEXT } from '../config';
export default class LoginController extends BaseController {
static login(params: loginParam) {
@@ -17,4 +17,8 @@ export default class LoginController extends BaseController {
static changePassword(params: ANY_OBJECT, httpOptions?: RequestOption) {
return super.post(API_CONTEXT + '/upms/login/changePassword', params, httpOptions);
}
static changeHeadImageUrl() {
return API_CONTEXT + '/upms/login/changeHeadImage';
}
}