Documentation ¶
Index ¶
- func ApplyFilters(columnMapping map[string]string, filters map[string][]string, ...) func(db *gorm.DB) *gorm.DB
- func ComplementSearch(r *Repository, sortBy string, sortDirection string, limit int64, offset int64, ...) (query *gorm.DB, err error)
- func IsZeroValue(value any) bool
- func UpdateFilterKeys(filters map[string][]string, columnMapping map[string]string) map[string][]string
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyFilters ¶
func ComplementSearch ¶
func IsZeroValue ¶
Types ¶
type Repository ¶
Repository is a struct that contains the database implementation for user entity
Directories ¶
Path | Synopsis |
---|---|
Package config provides the database connection
|
Package config provides the database connection |
Package medicine contains the repository implementation for the medicine entity
|
Package medicine contains the repository implementation for the medicine entity |
Package user contains the business logic for the user entity
|
Package user contains the business logic for the user entity |
Click to show internal directories.
Click to hide internal directories.