Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MGRepository ¶
type MGRepository interface { CreateModelGroup(ctx context.Context, req domain.ModelGroup) (int64, error) List(ctx context.Context, offset, limit int64) ([]domain.ModelGroup, error) Total(ctx context.Context) (int64, error) DeleteModelGroup(ctx context.Context, id int64) (int64, error) }
func NewMGRepository ¶
func NewMGRepository(dao dao.ModelGroupDAO) MGRepository
type ModelRepository ¶
type ModelRepository interface { Create(ctx context.Context, req domain.Model) (int64, error) FindById(ctx context.Context, id int64) (domain.Model, error) List(ctx context.Context, offset, limit int64) ([]domain.Model, error) ListAll(ctx context.Context) ([]domain.Model, error) Total(ctx context.Context) (int64, error) ListByGroupIds(ctx context.Context, mgids []int64) ([]domain.Model, error) DeleteById(ctx context.Context, id int64) (int64, error) DeleteByUid(ctx context.Context, modelUid string) (int64, error) }
func NewModelRepository ¶
func NewModelRepository(dao dao.ModelDAO) ModelRepository
Click to show internal directories.
Click to hide internal directories.