u
This commit is contained in:
16
src/db/account.js
Normal file
16
src/db/account.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import { getStore } from './store.js';
|
||||
|
||||
export async function list(googleAuthId) {
|
||||
const store = await getStore();
|
||||
return store.account.list(googleAuthId);
|
||||
}
|
||||
|
||||
export async function create(googleAuthId, data) {
|
||||
const store = await getStore();
|
||||
return store.account.create(googleAuthId, data);
|
||||
}
|
||||
|
||||
export async function remove(googleAuthId, id) {
|
||||
const store = await getStore();
|
||||
return store.account.delete(googleAuthId, id);
|
||||
}
|
||||
16
src/db/package.js
Normal file
16
src/db/package.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import { getStore } from './store.js';
|
||||
|
||||
export async function listByShippingId(googleAuthId, shippingId) {
|
||||
const store = await getStore();
|
||||
return store.package.listByShippingId(googleAuthId, shippingId);
|
||||
}
|
||||
|
||||
export async function create(googleAuthId, data) {
|
||||
const store = await getStore();
|
||||
return store.package.create(googleAuthId, data);
|
||||
}
|
||||
|
||||
export async function remove(googleAuthId, id) {
|
||||
const store = await getStore();
|
||||
return store.package.delete(googleAuthId, id);
|
||||
}
|
||||
16
src/db/payment.js
Normal file
16
src/db/payment.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import { getStore } from './store.js';
|
||||
|
||||
export async function listByManifestId(googleAuthId, manifestId) {
|
||||
const store = await getStore();
|
||||
return store.payment.listByManifestId(googleAuthId, manifestId);
|
||||
}
|
||||
|
||||
export async function create(googleAuthId, data) {
|
||||
const store = await getStore();
|
||||
return store.payment.create(googleAuthId, data);
|
||||
}
|
||||
|
||||
export async function remove(googleAuthId, id) {
|
||||
const store = await getStore();
|
||||
return store.payment.delete(googleAuthId, id);
|
||||
}
|
||||
16
src/db/shipping.js
Normal file
16
src/db/shipping.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import { getStore } from './store.js';
|
||||
|
||||
export async function listByManifestId(googleAuthId, manifestId) {
|
||||
const store = await getStore();
|
||||
return store.shipping.listByManifestId(googleAuthId, manifestId);
|
||||
}
|
||||
|
||||
export async function create(googleAuthId, data) {
|
||||
const store = await getStore();
|
||||
return store.shipping.create(googleAuthId, data);
|
||||
}
|
||||
|
||||
export async function remove(googleAuthId, id) {
|
||||
const store = await getStore();
|
||||
return store.shipping.delete(googleAuthId, id);
|
||||
}
|
||||
@@ -48,6 +48,10 @@ const STORE_NAMESPACES = [
|
||||
'categoryattributevalue',
|
||||
'modelconversation',
|
||||
'modelmessage',
|
||||
'account',
|
||||
'payment',
|
||||
'shipping',
|
||||
'package',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user