refactor: add payment store skeleton

This commit is contained in:
Methapon Metanipat 2024-10-28 13:28:46 +07:00
parent 1bdce4bed7
commit e199c355e4
2 changed files with 22 additions and 1 deletions

View file

@ -4,7 +4,28 @@ import { api } from 'src/boot/axios';
import { PaginationResult } from 'src/types';
import { Invoice, InvoicePayload } from './types';
export const useInvoice = defineStore('workflow-store', () => {
export const usePayment = defineStore('payment-store', () => {
const data = ref<{}[]>([]);
const page = ref<number>(1);
const pageMax = ref<number>(1);
const pageSize = ref<number>(30);
async function getPayment() {}
async function getPaymentList() {}
return {
data,
page,
pageSize,
pageMax,
getPayment,
getPaymentList,
};
});
export const useInvoice = defineStore('invoice-store', () => {
const data = ref<Invoice[]>([]);
const page = ref<number>(1);
const pageMax = ref<number>(1);