20 lines
930 B
TypeScript
20 lines
930 B
TypeScript
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)
|
|
// }
|