diff --git a/src/api/login.ts b/src/api/login.ts index ad5b26d..9732650 100644 --- a/src/api/login.ts +++ b/src/api/login.ts @@ -1,4 +1,4 @@ -import type { ICaptcha, IUpdateInfo, IUpdatePassword, IUserInfoVo, IUserLogin } from './login.typings' +import type { ICaptcha, IUpdateInfo, IUpdatePassword, IUserInfoVo, IUserLogin } from './types/login' import { http } from '@/utils/http' /** diff --git a/src/api/login.typings.ts b/src/api/login.typings.ts deleted file mode 100644 index d0638cf..0000000 --- a/src/api/login.typings.ts +++ /dev/null @@ -1,57 +0,0 @@ -/** - * 用户信息 - */ -export interface IUserInfoVo { - id: number - username: string - avatar: string - token: string -} - -/** - * 登录返回的信息 - */ -export interface IUserLogin { - id: string - username: string - token: string -} - -/** - * 获取验证码 - */ -export interface ICaptcha { - captchaEnabled: boolean - uuid: string - image: string -} -/** - * 上传成功的信息 - */ -export interface IUploadSuccessInfo { - fileId: number - originalName: string - fileName: string - storagePath: string - fileHash: string - fileType: string - fileBusinessType: string - fileSize: number -} -/** - * 更新用户信息 - */ -export interface IUpdateInfo { - id: number - name: string - sex: string -} -/** - * 更新用户信息 - */ -export interface IUpdatePassword { - id: number - oldPassword: string - newPassword: string - confirmPassword: string -} diff --git a/src/store/user.ts b/src/store/user.ts index da73da3..cec931a 100644 --- a/src/store/user.ts +++ b/src/store/user.ts @@ -1,4 +1,4 @@ -import type { IUserInfoVo } from '@/api/login.typings' +import type { IUserInfoVo } from '@/api/types/login' import { defineStore } from 'pinia' import { ref } from 'vue' import {