u
This commit is contained in:
1 parent
098a061308
commit
994321d049
40 files changed
+1401
-359
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import type { MoneyCategory } from '@/types/money'
|
||||
import alovaInstance from '../index'
|
||||
|
||||
const API_PREFIX = '/money'
|
||||
|
||||
export interface MoneyCategoryResult {
|
||||
income: MoneyCategory[]
|
||||
expense: MoneyCategory[]
|
||||
}
|
||||
|
||||
export function getMoneyCategoryApi() {
|
||||
return alovaInstance.Get<ResponseData<MoneyCategoryResult>>(`${API_PREFIX}/category`)
|
||||
}
|
||||
Reference in new issue
Block a user