service

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MGService

type MGService interface {
	CreateModelGroup(ctx context.Context, req domain.ModelGroup) (int64, error)
	ListModelGroups(ctx context.Context, offset, limit int64) ([]domain.ModelGroup, int64, error)
	DeleteModelGroup(ctx context.Context, id int64) (int64, error)
}

func NewMGService

func NewMGService(repo repository.MGRepository) MGService

type Service

type Service interface {
	CreateModel(ctx context.Context, req domain.Model) (int64, error)
	FindModelById(ctx context.Context, id int64) (domain.Model, error)
	ListModels(ctx context.Context, offset, limit int64) ([]domain.Model, int64, error)
	ListModelByGroupIds(ctx context.Context, mgids []int64) ([]domain.Model, error)

	DeleteModelById(ctx context.Context, id int64) (int64, error)
	DeleteModelByUid(ctx context.Context, modelUid string) (int64, error)
}

func NewModelService

func NewModelService(repo repository.ModelRepository) Service

Jump to

Keyboard shortcuts

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