structured the logic.js

This commit is contained in:
Mohammed Ashab Uddin
2020-07-30 11:27:37 +04:00
parent e936c4d312
commit d0655737f1
4 changed files with 276 additions and 202 deletions

View File

@@ -34,6 +34,9 @@ class User{
return this.websites.selectData(companyName);
}
/**
* @returns {Website}
*/
getSelectedWebsite(){
return this.websites.selectedData;
}

View File

@@ -39,7 +39,7 @@ class Website {
/**
*
* @returns {[]}
* returns all the products in the website
*/
getAllProduct(){
return this.products.getAllData().values();
@@ -58,6 +58,9 @@ class Website {
return this.products.selectData(productId);
}
/**
* @returns {Product}
*/
getSelectedProduct()
{
return this.products.selectedData;