repository

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 5 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL