mirror of
https://github.com/continew-org/continew-admin.git
synced 2026-01-07 20:57:12 +08:00
新增:新增获取用户信息 API,未设置头像时,前端将根据用户性别显示对应默认头像
This commit is contained in:
@@ -28,7 +28,7 @@ export function logout() {
|
||||
}
|
||||
|
||||
export function getUserInfo() {
|
||||
return axios.get<UserState>('/api/user/info');
|
||||
return axios.get<UserState>('/auth/user/info');
|
||||
}
|
||||
|
||||
export function getMenuList() {
|
||||
|
||||
@@ -40,40 +40,9 @@ export function saveUserInfo() {
|
||||
}
|
||||
|
||||
export interface BasicInfoModel {
|
||||
email: string;
|
||||
username: string;
|
||||
nickname: string;
|
||||
countryRegion: string;
|
||||
area: string;
|
||||
address: string;
|
||||
profile: string;
|
||||
}
|
||||
|
||||
export interface EnterpriseCertificationModel {
|
||||
accountType: number;
|
||||
status: number;
|
||||
time: string;
|
||||
legalPerson: string;
|
||||
certificateType: string;
|
||||
authenticationNumber: string;
|
||||
enterpriseName: string;
|
||||
enterpriseCertificateType: string;
|
||||
organizationCode: string;
|
||||
}
|
||||
|
||||
export type CertificationRecord = Array<{
|
||||
certificationType: number;
|
||||
certificationContent: string;
|
||||
status: number;
|
||||
time: string;
|
||||
}>;
|
||||
|
||||
export interface UnitCertification {
|
||||
enterpriseInfo: EnterpriseCertificationModel;
|
||||
record: CertificationRecord;
|
||||
}
|
||||
|
||||
export function queryCertification() {
|
||||
return axios.get<UnitCertification>('/api/user/certification');
|
||||
gender: number;
|
||||
}
|
||||
|
||||
export function userUploadApi(
|
||||
|
||||
Reference in New Issue
Block a user