This commit is contained in:
seb
2026-10-17 05:10:25 +02:00
parent 988b4848cf
commit 7197a6ddb7
28 changed files with 1172 additions and 166 deletions

31
src/db/carrier.js Normal file
View File

@@ -0,0 +1,31 @@
import { getStore } from './store.js';
export async function list(googleAuthId) {
const store = await getStore();
return store.carrier.list(googleAuthId);
}
export async function getById(googleAuthId, id) {
const store = await getStore();
return store.carrier.getById(googleAuthId, id);
}
export async function create(googleAuthId, data) {
const store = await getStore();
return store.carrier.create(googleAuthId, data);
}
export async function update(googleAuthId, id, data) {
const store = await getStore();
return store.carrier.update(googleAuthId, id, data);
}
export async function order(googleAuthId, data) {
const store = await getStore();
return store.carrier.order(googleAuthId, data);
}
export async function remove(googleAuthId, id) {
const store = await getStore();
return store.carrier.delete(googleAuthId, id);
}