mirror of
				https://github.com/3ybactuk/marketplace-go-service-project.git
				synced 2025-10-31 06:23:44 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			315 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			315 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| @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
 | 
