21 lines
301 B
JavaScript
21 lines
301 B
JavaScript
function bin(o){
|
|
const b = {};
|
|
b.id = o.id;
|
|
b.name = o.name || b.id;
|
|
b.user_id = o.user_id || '';
|
|
return b;
|
|
}
|
|
|
|
function note(o){
|
|
const n = {};
|
|
n.id = o.id;
|
|
n.text = o.text || '';
|
|
n.modified = o.modified || 0;
|
|
n.bin_id = o.bin_id || '';
|
|
return n;
|
|
}
|
|
|
|
export {
|
|
bin,
|
|
note
|
|
} |