16 lines
454 B
TypeScript
16 lines
454 B
TypeScript
import UserShareBaseModel from './userShareBase'
|
|
import type { IList } from './list'
|
|
|
|
export interface IUserList extends UserShareBaseModel {
|
|
listId: IList['id']
|
|
}
|
|
|
|
// This class extends the user share model with a 'rights' parameter which is used in sharing
|
|
export default class UserListModel extends UserShareBaseModel implements IUserList {
|
|
listId: IList['id'] = 0
|
|
|
|
constructor(data: Partial<IUserList>) {
|
|
super(data)
|
|
this.assignData(data)
|
|
}
|
|
} |