Documentation
¶
Index ¶
- type BaseRepository
- func (b BaseRepository) Query(ctx context.Context, cq common.Query, collection string, list interface{}) (page *common.Pagination, err error)
- func (b BaseRepository) ReadById(ctx context.Context, collection string, id, bean interface{}) error
- func (b *BaseRepository) Save(ctx context.Context, collection string, bean interface{}) (interface{}, error)
- func (b BaseRepository) Update(ctx context.Context, collection string, id, update interface{}) (int64, error)
- type IBaseRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseRepository ¶
type BaseRepository struct {
// contains filtered or unexported fields
}
func NewBaseRepository ¶
func (BaseRepository) Query ¶
func (b BaseRepository) Query(ctx context.Context, cq common.Query, collection string, list interface{}) (page *common.Pagination, err error)
func (BaseRepository) ReadById ¶
func (b BaseRepository) ReadById(ctx context.Context, collection string, id, bean interface{}) error
type IBaseRepository ¶
type IBaseRepository interface { Save(ctx context.Context, collection string, bean interface{}) (interface{}, error) Update(ctx context.Context, collection string, id, update interface{}) (int64, error) ReadById(ctx context.Context, collection string, id, bean interface{}) error Query(ctx context.Context, cq common.Query, collection string, list interface{}) (page *common.Pagination, err error) }
Click to show internal directories.
Click to hide internal directories.