'use strict' ; import BaseModel from '../bases/BaseModel' ; import { ILikeData } from 'teambition' ; class LikeModel extends BaseModel { public set ( _boundToObjectId , likeData ) { this . _set ( 'like' , _boundToObjectId , likeData ) ; return likeData ; } public get ( _boundToObjectId ) { return this . _get < ILikeData > ( 'like' , _boundToObjectId ) ; } public update ( _boundToObjectId , patch ) { this . _updateObj ( 'like' , _boundToObjectId , patch ) ; } } export default new LikeModel ( ) ;