1404/10/28-base
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import type {TableInput, TableOutput} from "@/models/table";
|
||||
import useAxios from "@/utils/useAxios";
|
||||
import type {Transaction} from "@/models/transaction";
|
||||
import type {Card} from "@/models/wallet";
|
||||
|
||||
export const getTransactionTable = async (tbl: TableInput): Promise<TableOutput<Transaction>> => {
|
||||
return await useAxios.post<TableOutput<Transaction>>(`/customer/transaction/table`, tbl)
|
||||
}
|
||||
|
||||
export const getTransactionTable2 = async (tbl: TableInput): Promise<TableOutput<Transaction>> => {
|
||||
return await useAxios.post<TableOutput<Transaction>>(`/customer/withdraw/table`, tbl)
|
||||
}
|
||||
|
||||
export const getCardsTable = async (tbl?: TableInput): Promise<TableOutput<Card>> => {
|
||||
return await useAxios.post<TableOutput<Card>>(`/customer/account/table`, tbl)
|
||||
}
|
||||
// export const getProducts = async (tbl: TableInput): Promise<TableOutput<Product>> => {
|
||||
// return await axios.post<TableOutput<Product>>('/site/product', tbl)
|
||||
// }
|
||||
Reference in New Issue
Block a user