Documentation
¶
Overview ¶
Package model contains the shared Petclinic domain building blocks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseEntity ¶
type BaseEntity struct {
ID ID `json:"id"`
}
BaseEntity gives persistent Petclinic entities a stable identity. A zero ID identifies an entity that has not been persisted.
func (BaseEntity) New ¶
func (entity BaseEntity) New() bool
New reports whether the entity has not yet been persisted.
type NamedEntity ¶
type NamedEntity struct {
BaseEntity
Name string `json:"name"`
}
NamedEntity is the shared shape for reference data such as pet types and veterinary specialties.
type Person ¶
type Person struct {
BaseEntity
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
}
Person is the shared name data for owners and veterinarians.
Click to show internal directories.
Click to hide internal directories.