1405/02/07-add authentication card for garoosi

This commit is contained in:
2026-04-27 18:18:05 +03:30
parent e96ef77e8f
commit 688c356e7d
7 changed files with 327 additions and 2 deletions
+4
View File
@@ -1,6 +1,7 @@
import useAxios from '@core/utils/useAxios'
import type { AddId, Customer } from '@/model/customer'
import type { TableInput } from '@core/type/baseTable'
import type {CheckCardRequest, CheckCardResponse} from "@/model/user";
export const createCustomer = async (obj: Customer) =>
await useAxios.post<AddId>(`/admin/customer`, obj)
@@ -34,3 +35,6 @@ export const getSingleTable = async (params: TableInput) =>
export const getSingleArchiveTable = async (params: TableInput) =>
await useAxios.post<Array<Customer>>('/admin/customer/single/archive/table', params)
export const checkCard = async (data: CheckCardRequest) => {
return await useAxios.post<CheckCardResponse>('/admin/check_card', data)
}