feat: 添加api文件夹以及api公共类型

main
NoahLan 2 years ago
parent 98098c75a4
commit 2b97f0fe9d

9
src/api/api.d.ts vendored

@ -0,0 +1,9 @@
interface Pagination {
size?: number
current?: number
total?: number
}
interface BaseID {
id?: string
}

@ -0,0 +1,7 @@
import { defHttp } from '~/utils/http'
export function login() {
defHttp.post({
url: '/api/auth/login',
})
}

@ -76,6 +76,7 @@ export default defineConfig({
'src/composables', 'src/composables',
'src/stores', 'src/stores',
'src/types', 'src/types',
'src/api/**',
], ],
vueTemplate: true, vueTemplate: true,
resolvers: [ resolvers: [

Loading…
Cancel
Save