Documentation ¶
Index ¶
- type Base
- func (b *Base[CType]) Create(item CType) (bool, *gerror.Error)
- func (b *Base[CType]) GetById(id *primitive.ObjectID) (*CType, *gerror.Error)
- func (b *Base[CType]) GetDetail(id *primitive.ObjectID) (*CType, *gerror.Error)
- func (b *Base[CType]) List(filter response.ListRequest) (*response.ListResponse[CType], *gerror.Error)
- func (b *Base[CType]) SetField(id primitive.ObjectID, key string, val any) (bool, *gerror.Error)
- func (b *Base[CType]) SetFields(id primitive.ObjectID, fields map[string]interface{}) (bool, *gerror.Error)
- type HttpService
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base[CType any] struct { Client HttpService }
func (*Base[CType]) List ¶
func (b *Base[CType]) List(filter response.ListRequest) (*response.ListResponse[CType], *gerror.Error)
type HttpService ¶
Click to show internal directories.
Click to hide internal directories.