Versions in this module Expand all Collapse all v1 v1.0.0 Feb 16, 2023 Changes in this version + type BaseRepository struct + func NewBaseRepository(gmc *mongo.Database, column map[string]search.Filter) BaseRepository + func (b *BaseRepository) Save(ctx context.Context, collection string, bean interface{}) (interface{}, error) + 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) Update(ctx context.Context, collection string, id, update interface{}) (int64, error) + type IBaseRepository interface + Query func(ctx context.Context, cq common.Query, collection string, list interface{}) (page *common.Pagination, err error) + ReadById func(ctx context.Context, collection string, id, bean interface{}) error + Save func(ctx context.Context, collection string, bean interface{}) (interface{}, error) + Update func(ctx context.Context, collection string, id, update interface{}) (int64, error)