import { uploadFile } from '@/utils/request';

export interface LoginParams {
    loginName: string
    password: string
    emailCode: string
}
export interface TokenInfo {
    data: string
}

export interface RegisterParams extends LoginParams {
    email: string
    phone: string
}

export interface ResetPasswordParams {
    email: string
    code: string
    newPassword: string
}

export const uploadApi = {
    uploadFile: (file: File) => {
        console.log(file);
        
        return uploadFile<string>('/wasabi/api/upload/file', file)
    },
}
