mirror of
https://github.com/3ybactuk/marketplace-go-service-project.git
synced 2025-10-30 14:03:45 +03:00
[hw-3] loms service
This commit is contained in:
18
docs/homework-3/img/cart-cart-checkout.plantuml
Normal file
18
docs/homework-3/img/cart-cart-checkout.plantuml
Normal file
@@ -0,0 +1,18 @@
|
||||
@startuml
|
||||
|
||||
actor User as u
|
||||
collections Cart as c
|
||||
database CartStorage as cs
|
||||
collections Order as o
|
||||
|
||||
u -> c : POST /checkout/<user_id>
|
||||
activate c
|
||||
c -> cs : cart.GetItemsByUserID
|
||||
c -> o : gRPC Loms.OrderCreate\n\t- user\n\t- []item
|
||||
c -> cs : cart.DeleteItemsByUserID
|
||||
|
||||
c -> u : Response: 200 OK
|
||||
|
||||
deactivate c
|
||||
|
||||
@enduml
|
||||
Reference in New Issue
Block a user