feat: 1
This commit is contained in:
12
src/api/modules/account/index.ts
Normal file
12
src/api/modules/account/index.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { requestClient } from '@/api/request'
|
||||
|
||||
/** 账户信息 */
|
||||
interface IAccountInfo {
|
||||
id: number
|
||||
username: string
|
||||
}
|
||||
|
||||
/** 获取账户信息 */
|
||||
function getAccountInfo() {
|
||||
return requestClient.get<IAccountInfo>('/account')
|
||||
}
|
||||
Reference in New Issue
Block a user