1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-24 04:22:22 +00:00
advanced-go-programming-book/images/ch6-controller-logic-dao-storage.plantuml
2018-03-27 19:36:21 +08:00

25 lines
659 B
Plaintext

' Copyright 2018 <cao1988228{AT}163.com>. All rights reserved.
' Use of this source code is governed by a Apache
' license that can be found in the LICENSE file.
@startuml controller-logic-dao
scale 1366*768
activate Controller
Controller -> Controller: validate input
Controller -> Logic : build struct needed by logic, call function in logic
activate Logic
Logic -> Logic: logic check, use design patterns to work
Logic -> Dao: call save order func
activate Dao
Dao -> Storage: save order
Storage -> Dao: save order result
Dao -> Logic: return save result
deactivate Dao
Logic -> Controller: return result
deactivate Logic
deactivate Controller
@enduml