added and used entity methods

This commit is contained in:
Mohammed Ashab Uddin
2020-07-22 10:51:29 +04:00
parent 596f56b708
commit 7b0779d552
3 changed files with 15 additions and 70 deletions

View File

@@ -8,43 +8,6 @@ class Product {
this.cost = cost;
this.image = image;
}
getId(){
return this.id;
}
setName(name){
this.name = name;
}
getName(){
return this.name;
}
setDesc(desc){
this.desc = desc;
}
getDesc(){
return this.desc;
}
setCost(cost){
this.cost = cost;
}
getCost(){
return this.cost;
}
setImage(image){
this.imageUrl = image;
}
getImage(){
return this.imageUrl;
}
}
module.exports.Product = Product;