24 lines
489 B
JavaScript
24 lines
489 B
JavaScript
export default class IpcAdapter {
|
|
constructor() {}
|
|
|
|
async init() {
|
|
return await window.api.adapterCall('init')
|
|
}
|
|
|
|
async getAll() {
|
|
return await window.api.adapterCall('getAll')
|
|
}
|
|
|
|
async create(note) {
|
|
return await window.api.adapterCall('create', note)
|
|
}
|
|
|
|
async update(note) {
|
|
return await window.api.adapterCall('update', note)
|
|
}
|
|
|
|
async delete(id) {
|
|
return await window.api.adapterCall('delete', id)
|
|
}
|
|
}
|