我是feathersjs的新手,我尝试在feathers中进行本地身份验证,同时在users.class.js文件下创建服务。我不知道在那里实施什么所以请指导我
const { Service } = require('feathers-mongoose');
exports.Users = class Users extends Service {
create(Users, email, username, password, role ) {
Users.created_at = new Date();
return super.create(Users, email, username, password, role );
}
update(id, Users, users) {
Users.updated_at = new Date();
return super.update(id, Users, users);
}
};