Documentation
¶
Overview ¶
Package models contains application-owned database entities and API types. Keep feature-specific persistence models in descriptive files such as invoice_models.go.
A basic GORM model looks like this:
type Invoice struct {
gorm.Model
Name string `gorm:"size:120;not null"`
}
Keep request DTOs in *_inputs.go and response DTOs in *_outputs.go. Do not expose a persistence model directly when the API needs a stable shape.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthResponse ¶
type HelloInput ¶
type HelloInput struct {
Name string `json:"name" query:"name" validate:"omitempty,max=60"`
}
type HelloMessage ¶
Click to show internal directories.
Click to hide internal directories.