Update order-diagram to be closer to prototype

This commit is contained in:
Mathis Kral 2023-11-08 19:48:38 +01:00 committed by Simon Bruder
parent de64a048bc
commit 5e896fc980
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 12 additions and 16 deletions

View file

@ -1,7 +1,4 @@
@startuml @startuml
'maybe for mathis kral since he did videoshop:order-limit'
'maybe for eren since he did videoshop:clickable-cart-item'
'maybe for erik since he did videoshop:cart-remove'
skinparam linetype ortho skinparam linetype ortho
skinparam groupInheritance 2 skinparam groupInheritance 2
@ -10,7 +7,7 @@ package Spring {
} }
package Salespoint { package Salespoint {
interface OrderManager <<"T > Order">> interface OrderManager <T extends Order>
class Cart class Cart
class Cash class Cash
class Order class Order
@ -42,27 +39,26 @@ package catering.order {
class OrderController { class OrderController {
+ OrderController() + OrderController()
+ initializeCart() : Cart + initializeCart() : Cart
+ addProductToCart(product : Product, amount : int, cart: Cart) + planEvent(model : Model) : String
+ addProductToOrder(product : Product, order : Order, amount : int) + addProduct(productForm : ProductForm, model : Model) : String
+ removeProductFromOrder(product : Product, order : Order, amount : int) + removeProduct(product : Product, model : Model) : String
+ complete(cart : Cart, userAccount : UserAccount) : String + checkout(userAccount : UserAccount, model : Model) : String
+ getOrders(model : Model) : String + getOrders(model : Model) : String
+ cancelOrder(order : Order) : boolean + removeOrder(order : Order) : boolean
+ getWorkingHours(employee : Employee) : Map<Day, Hours>
+ getRents(rentable : Rentable) : List<Tuple<DayTime>>
+ TODOOO()
} }
class ProductForm
OrderController ---> OrderManager : "-orderManager" OrderController ---> OrderManager : "-orderManager"
OrderController ---> Cart : "-cart"
OrderController ..> Model OrderController ..> Model
OrderController ...> UserAccount OrderController ...> UserAccount
OrderController ...> Order
OrderController ...> OrderStatus OrderController ...> OrderStatus
OrderController ...> Cash OrderController ...> Cash
OrderController ...> Quantity OrderController ...> Quantity
OrderController ...> Cart
OrderController ...> CustomOrder OrderController ...> CustomOrder
CustomOrder o--- "1" OrderType : -orderType CustomOrder o--- "1" OrderType : -orderType
OrderController ...> ProductForm
N1 ..> OrderType N1 ..> OrderType
} }

BIN
src/main/asciidoc/models/design/order.svg (Stored with Git LFS)

Binary file not shown.