Documentation ¶
Index ¶
- func EnsureKeys(requiredKeys []string, data map[string]any) error
- type IModel
- type Model
- func (s *Model) Delete(id string) (bool, error)
- func (s *Model) Filter(data map[string]interface{}) map[string]interface{}
- func (s *Model) GetAll() (any, error)
- func (s *Model) GetById(id string) (any, error)
- func (s *Model) Post(data map[string]any) (bool, string, error)
- func (s *Model) Put(id string, data map[string]any) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.