problem description
for example:
merchandise module is a separate service that exposes some rest api interfaces, providing product picture links, basic product information, etc.
shopping cart is a separate module (for example, the module contains a cart table that records product_id,num).
in this case, you have to get the product ID of the user"s shopping cart before you can get the product information. How can we better solve this problem by assembling these two modules and returning the data to
?
the environmental background of the problems and what methods you have tried
personal feeling is very bad solution: first, go to the shopping cart module to get the product_id, under the user"s shopping cart, and then send a http request inside the shopping cart module to request the information of the merchandise module ~
related codes
/ / Please paste the code text below (do not replace the code with pictures)
none
what result do you expect? What is the error message actually seen?
looking forward to a better solution, the solution I think of is too coupled ~