Documentation ¶
Index ¶
- type Model
- func (m *Model[T]) Delete(id string) error
- func (m *Model[T]) Find(options *options.ListOptions) (ret []T, count int, err error)
- func (m *Model[T]) FindOne(id string) (T, error)
- func (m *Model[T]) Insert(data T) error
- func (m *Model[T]) Query(attr map[string]interface{}) (T, error)
- func (m *Model[T]) Update(attr map[string]interface{}, data T) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.