Vision-note-cart.uml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. @startuml
  2. title "Vision Note Cart to WebCat Cart in Dabory ERP"
  3. boundary UserView as userpage
  4. participant WP_Page as frontend
  5. database User_Meta as storage
  6. participant ERP_APP_API as backend
  7. participant ERPBackAPI as backapi
  8. database ERP_DB as db
  9. autonumber
  10. userpage->frontend: input App Guest Info
  11. note over frontend
  12. <b>App Guest Info</b>
  13. <b>[in User Profile Page]</b>
  14. <b>1. AppUri</b>
  15. Target ERP App URI
  16. <b>2. AppBase64</b>
  17. AppKey provided
  18. by daborysso member
  19. end note
  20. frontend->storage: Save 'App Guest Info' in WP_DB
  21. userpage->frontend: choose product and option
  22. note over frontend #73EDFC
  23. <b>[Product Page]</b>
  24. <b>1. Product/Option </b>
  25. <b>2. Discount Rate</b>
  26. end note
  27. userpage->frontend: push product info to cart
  28. storage->frontend: Get App Guest Info
  29. frontend->frontend: proceed to cart page
  30. note over frontend #FCC873
  31. <b>[Cart Page]</b>
  32. <b>1. Product/Option </b>
  33. <b>2. Discount Rate</b>
  34. end note
  35. frontend->backend: Request /gate-token-get
  36. backend->frontend: Response GateToken & BackAPIUri
  37. note over frontend #99FF99
  38. <b>[Cart Page Request]</b>
  39. <b>1.GateToken in HTTP Header</b>
  40. <b>2.BackAPIUri in Host</b>
  41. <b>3. Product-ID / Price in Json</b>
  42. !! GateToken and BackAPIUri
  43. shoud be saved in Session !!
  44. end note
  45. frontend->backapi: request /webcat-cart
  46. backapi->db: add a cart
  47. db->backapi: OK
  48. backapi->frontend: respose OK
  49. frontend->userpage: WebCatCart Added successfully
  50. @enduml