13/7/1404

This commit is contained in:
2025-10-05 09:44:14 +03:30
parent 4e182d3e37
commit 2a818f5784
453 changed files with 58044 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import type { Login, User } from '@/models/login'
import useAxios from '@/utils/useAxios'
import type { PriceTrigger } from '@/models/PriceTrigger'
import type { Ref, UnwrapRef } from 'vue'
import type { TableInput, TableOutput } from '@/models/table'
import type { Transaction } from '@/models/transaction'
import type { Order } from '@/models/order'
import type { Card } from '@/models/wallet'
export const createPriceTrigger = async (obj: PriceTrigger) => await useAxios.post<PriceTrigger>(`/customer/price_triggers`, obj)
export const updatePriceTrigger = async (id?: number, obj?: PriceTrigger | {
is_active: boolean
}) => await useAxios.put<PriceTrigger>(`/customer/price_triggers/${id}`, obj)
export const getPriceTriggers = async () => await useAxios.get<PriceTrigger[]>(`/customer/price_triggers`)
export const deletePriceTrigger = async (id?: number) => await useAxios.delete(`/customer/price_triggers/${id}`)