Auto merge main into base-sard-ui
This commit is contained in:
commit
2b5afd6581
@ -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'
|
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
|
|
||||||
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
|
|
||||||
}
|
|
@ -1,4 +1,4 @@
|
|||||||
import type { IUserInfoVo } from '@/api/login.typings'
|
import type { IUserInfoVo } from '@/api/types/login'
|
||||||
import { defineStore } from 'pinia'
|
import { defineStore } from 'pinia'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import {
|
import {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user