You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I read your article
Entity: The business objects of the application, they are the least likely to change when external things change
Model: Inherit and extend Domain layer Entity, realize json conversion and more needs
Generally speaking, business requirements have some additional fields, such as isSelected and isComplete, which are related to UI state
I don't know whether these attributes are placed in the Domain layer or in the Presentation layer to create a new model
I am very confused and hope to wait for your reply
Thanks
Domain:
classQuestionEntitie {
finalint id;
finalString category;
finalString question;
/// Should it be declared here?finalbool isSelected;
finalbool isComplete;
}
OR Presentation:
classQuestionItem {
finalQuestionEntitie item
/// or declare here ?finalbool isSelected;
finalbool isComplete;
}
I read your article
Entity: The business objects of the application, they are the least likely to change when external things change
Model: Inherit and extend Domain layer Entity, realize json conversion and more needs
Generally speaking, business requirements have some additional fields, such as isSelected and isComplete, which are related to UI state
I don't know whether these attributes are placed in the Domain layer or in the Presentation layer to create a new model
I am very confused and hope to wait for your reply
Thanks
Domain:
OR Presentation:
Data:
The text was updated successfully, but these errors were encountered: