refactor: add payment store skeleton
This commit is contained in:
parent
1bdce4bed7
commit
e199c355e4
2 changed files with 22 additions and 1 deletions
|
|
@ -4,7 +4,28 @@ import { api } from 'src/boot/axios';
|
||||||
import { PaginationResult } from 'src/types';
|
import { PaginationResult } from 'src/types';
|
||||||
import { Invoice, InvoicePayload } from './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 data = ref<Invoice[]>([]);
|
||||||
const page = ref<number>(1);
|
const page = ref<number>(1);
|
||||||
const pageMax = ref<number>(1);
|
const pageMax = ref<number>(1);
|
||||||
Loading…
Add table
Add a link
Reference in a new issue