Move everything to models and services #17

Merged
konrad merged 82 commits from refactor/models into master 2019-03-02 10:25:10 +00:00
Showing only changes of commit 15395c3608 - Show all commits

15
src/models/userShare.js Normal file
View File

@ -0,0 +1,15 @@
import UserModel from "./user";
import {merge} from 'lodash'
// This class extends the user model with a 'rights' parameter which is used in sharing
export default class UserShareModel extends UserModel {
defaults() {
return merge(
super.defaults(),
{
right: 0,
}
)
}
}