@startuml actor user participant client participant server database database as db #gray
user -> client : client -> server : request alt validate fail case client <-- server : validate fail ! else server -[#blue]> db : crud server <-[#blue]- db note right notes end note server -> server : deal data client <-- server :response client --> user : tips end @enduml
@startuml actor user as user rectangle usecase { usecase login as uc1 usecase logout as uc2 usecase "query user info" as uc3 usecase "view info" as uc3 usecase (guest view) as uc4 uc3 <|-- uc4 } package guest { actor guest1 as guest1 actor guest2 as guest2 } user <|-- guest1 user <|-- guest2
left to right direction user --> uc1: operate user --> uc2 user --> uc3 guest1 --> uc4 guest2 --> uc4 @enduml
@startuml abstract Abstract annotation Annotation class ClassB enum enum interface interface class ClassA { {static} String id -- - List<ClassB> classBList == # enum enum ~ interface interface .. method .. + void init() + {abstract} void method() .. setter .. + void set() } note right of ClassA::method This member is notes for method or field end note