我跟随the tutorial。在Asynchronous hooks
中,有一个这样的代码段:
todoService.before({
find(hook) {
return this.find().then(data => {
hook.params.message = 'Ran through promise hook';
hook.data.result = data;
// Always return the hook object
return hook;
});
}
});
请您告诉我this.find()
应该做什么?