sceneset

package
v1.3.0-rc.0...-12c9840 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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