Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + type Option func(*Service) + func WithBundle(bdl *bundle.Bundle) Option + func WithDBClient(db *dao.DBClient) Option + func WithTestCaseService(tcSvc *testcase.Service) Option + type Service struct + func New(options ...Option) *Service + func (svc *Service) Clean(userID, testsetID, projectID uint64) error + func (svc *Service) CleanFromRecycleBin(req apistructs.TestSetCleanFromRecycleBinRequest) error + func (svc *Service) Copy(req apistructs.TestSetCopyRequest) (uint64, bool, error) + func (svc *Service) CopyTestSet(record *dao.TestFileRecord) + func (svc *Service) Create(req apistructs.TestSetCreateRequest) (*apistructs.TestSet, error) + func (svc *Service) FindAncestors(tsID uint64) ([]apistructs.TestSet, error) + func (svc *Service) GenerateTestSetName(projectID, parentTsID, testSetID uint64, requestName string) (string, error) + func (svc *Service) Get(id uint64) (*apistructs.TestSet, error) + func (svc *Service) List(req apistructs.TestSetListRequest) ([]apistructs.TestSet, error) + func (svc *Service) ListTestSetByLeafTestSetIDs(parentID uint64, leafTestSetIDs []uint64) ([]apistructs.TestSet, error) + func (svc *Service) Recover(userID, testsetID, projectID, targetTestSetID uint64) error + func (svc *Service) RecoverFromRecycleBin(req apistructs.TestSetRecoverFromRecycleBinRequest) error + func (svc *Service) RecursiveFindParents(leafTestSetIDs []uint64, knownTestSets map[uint64]apistructs.TestSet) error + func (svc *Service) Recycle(req apistructs.TestSetRecycleRequest) error + func (svc *Service) Update(req apistructs.TestSetUpdateRequest) error