import { cloudService } from './index' import { ISession } from '@/types/auth' export const loginAdminApi = (username: string, password: string): Promise => { const data = new FormData() data.append('username', username) data.append('password', password) return cloudService({ url: '/blog-api/session', method: 'post', data }) }