sceneset

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: AGPL-3.0 Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Service)

Option 实例对象配置选项

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

WithDBClient 配置 db client

type Service

type Service struct {
	GetScenes func(req apistructs.AutotestSceneRequest) (uint64, []apistructs.AutoTestScene, error)
	CopyScene func(req apistructs.AutotestSceneCopyRequest, isSpaceCopy bool, preSceneMap map[uint64]uint64) (uint64, error)
	// contains filtered or unexported fields
}

Service 实例对象封装

func New

func New(options ...Option) *Service

New 新建 service

func (*Service) CopySceneSet

func (svc *Service) CopySceneSet(req apistructs.SceneSetRequest, isSpaceCopy bool) (uint64, error)

func (*Service) CreateSceneSet

func (svc *Service) CreateSceneSet(req apistructs.SceneSetRequest) (uint64, error)

func (*Service) DeleteSceneSet

func (svc *Service) DeleteSceneSet(req apistructs.SceneSetRequest) error

func (*Service) DragSceneSet

func (svc *Service) DragSceneSet(req apistructs.SceneSetRequest) error

func (*Service) GetSceneSet

func (svc *Service) GetSceneSet(setID uint64) (*apistructs.SceneSet, error)

func (*Service) GetSceneSetsBySpaceID

func (svc *Service) GetSceneSetsBySpaceID(spaceID uint64) ([]apistructs.SceneSet, error)

func (*Service) UpdateSceneSet

func (svc *Service) UpdateSceneSet(setID uint64, req apistructs.SceneSetRequest) (*apistructs.SceneSet, error)

Jump to

Keyboard shortcuts

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