Documentation ¶
Index ¶
- type Option
- type 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service testSet 实例对象封装
func (*Service) CleanFromRecycleBin ¶
func (svc *Service) CleanFromRecycleBin(req apistructs.TestSetCleanFromRecycleBinRequest) error
func (*Service) Copy ¶
func (svc *Service) Copy(req apistructs.TestSetCopyRequest) (uint64, bool, error)
func (*Service) CopyTestSet ¶
func (svc *Service) CopyTestSet(record *dao.TestFileRecord)
func (*Service) Create ¶
func (svc *Service) Create(req apistructs.TestSetCreateRequest) (*apistructs.TestSet, error)
Create 创建测试集
func (*Service) FindAncestors ¶
func (svc *Service) FindAncestors(tsID uint64) ([]apistructs.TestSet, error)
FindAncestors find ancestors for testSet.
func (*Service) GenerateTestSetName ¶
func (svc *Service) GenerateTestSetName(projectID, parentTsID, testSetID uint64, requestName string) (string, error)
GenerateTestSetName 生成测试集名,追加 (N)
func (*Service) List ¶
func (svc *Service) List(req apistructs.TestSetListRequest) ([]apistructs.TestSet, error)
List 测试集列表返回
func (*Service) ListTestSetByLeafTestSetIDs ¶
func (svc *Service) ListTestSetByLeafTestSetIDs(parentID uint64, leafTestSetIDs []uint64) ([]apistructs.TestSet, error)
ListTestSetByLeafTestSetIDs 根据叶子测试集反查某一父测试集的下一级测试集列表 return: layer(by ParentID), error
func (*Service) RecoverFromRecycleBin ¶
func (svc *Service) RecoverFromRecycleBin(req apistructs.TestSetRecoverFromRecycleBinRequest) error
func (*Service) RecursiveFindParents ¶
func (*Service) Recycle ¶
func (svc *Service) Recycle(req apistructs.TestSetRecycleRequest) error
func (*Service) Update ¶
func (svc *Service) Update(req apistructs.TestSetUpdateRequest) error
Update 测试集更新
Click to show internal directories.
Click to hide internal directories.