Skip to content

Instantly share code, notes, and snippets.

@royib
Last active Oct 16, 2019
Embed
What would you like to do?
Node Clean Architecture – StudentRepository Contract
module.exports = class StudentRepository {
constructor() { }
add(studentInstance) {
return new Promise((resolve, reject) => {
reject(new Error('not implemented'));
});
}
update(studentInstance) {
return new Promise((resolve, reject) => {
reject(new Error('not implemented'));
});
}
delete(studentInstance) {
return new Promise((resolve, reject) => {
reject(new Error('not implemented'));
});
}
getById(StudentId) {
return new Promise((resolve, reject) => {
reject(new Error('not implemented'));
});
}
getByEmail(StudentId) {
return new Promise((resolve, reject) => {
reject(new Error('not implemented'));
});
}
getAll() {
return new Promise((resolve, reject) => {
reject(new Error('not implemented'));
});
}
addEnrollment(studentInstance, enrollment) {
return new Promise((resolve, reject) => {
reject(new Error('not implemented'));
});
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment