@@ -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'
/**
@@ -1,57 +0,0 @@
-/**
- * 用户信息
- */
-export interface IUserInfoVo {
- id: number
- username: string
- avatar: string
- token: string
-}
-
- * 登录返回的信息
-export interface IUserLogin {
- id: 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 {
- name: string
- sex: string
-export interface IUpdatePassword {
- oldPassword: string
- newPassword: string
- confirmPassword: string
-import type { IUserInfoVo } from '@/api/login.typings'
+import type { IUserInfoVo } from '@/api/types/login'
import { defineStore } from 'pinia'
import { ref } from 'vue'
import {