1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- @startuml
- title "Vision Note Cart to WebCat Cart in Dabory ERP"
- boundary UserView as userpage
- participant WP_Page as frontend
- database User_Meta as storage
- participant ERP_APP_API as backend
- participant ERPBackAPI as backapi
- database ERP_DB as db
- autonumber
- userpage->frontend: input App Guest Info
- note over frontend
- <b>App Guest Info</b>
- <b>[in User Profile Page]</b>
- <b>1. AppUri</b>
- Target ERP App URI
- <b>2. AppBase64</b>
- AppKey provided
- by daborysso member
- end note
- frontend->storage: Save 'App Guest Info' in WP_DB
- userpage->frontend: choose product and option
- note over frontend #73EDFC
- <b>[Product Page]</b>
- <b>1. Product/Option </b>
- <b>2. Discount Rate</b>
- end note
- userpage->frontend: push product info to cart
- storage->frontend: Get App Guest Info
- frontend->frontend: proceed to cart page
- note over frontend #FCC873
- <b>[Cart Page]</b>
- <b>1. Product/Option </b>
- <b>2. Discount Rate</b>
- end note
- frontend->backend: Request /gate-token-get
- backend->frontend: Response GateToken & BackAPIUri
- note over frontend #99FF99
- <b>[Cart Page Request]</b>
- <b>1.GateToken in HTTP Header</b>
- <b>2.BackAPIUri in Host</b>
- <b>3. Product-ID / Price in Json</b>
- !! GateToken and BackAPIUri
- shoud be saved in Session !!
- end note
- frontend->backapi: request /webcat-cart
- backapi->db: add a cart
- db->backapi: OK
- backapi->frontend: respose OK
- frontend->userpage: WebCatCart Added successfully
- @enduml
|