core

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 54 Imported by: 0

Documentation

Index

Constants

View Source
const IssueRelationConnection = "connection"
View Source
const IssueRelationInclusion = "inclusion"
View Source
const (
	// Template IterationName
	TemplateBacklogIteration = "Template.BacklogIteration"
)

Variables

This section is empty.

Functions

func Check

func Check(irc *pb.AddIssueRelationRequest) error

Check 检查请求参数是否合法

func GetArb

func GetArb(i *pb.IssuePropertyInstance) string

func GetProperty

func GetProperty(zh string) pb.IssuePriorityEnum_Priority

func GetSeverity

func GetSeverity(zh string) pb.IssueSeverityEnum_Severity

func GetType

func GetType(s string) pb.IssueTypeEnum_Type

func IsCanChange

func IsCanChange(pt, newpt string) bool

字段类型转换的校验

func IssueResource

func IssueResource(ctx context.Context, req interface{}) (string, error)

func ScopeID

func ScopeID(ctx context.Context, req interface{}) (string, error)

func SetRelatedIssueIDs

func SetRelatedIssueIDs(s *pb.Issue, ids string) error

SetRelatedIssueIDs set RelatedIssueIDs from excel

Types

type IssuePermRequestWithInt64ProjectID

type IssuePermRequestWithInt64ProjectID interface {
	GetProjectID() int64
}

type IssuePermRequestWithUint64ProjectID

type IssuePermRequestWithUint64ProjectID interface {
	GetProjectID() uint64
}

type IssuePermType

type IssuePermType interface {
	GetType() pb.IssueTypeEnum_Type
}

type IssueService

type IssueService struct {
	ExportChannel chan uint64
	ImportChannel chan uint64
	// contains filtered or unexported fields
}

func (*IssueService) AddIssueRelation

func (*IssueService) BatchDeleteIssueByIterationID

func (i *IssueService) BatchDeleteIssueByIterationID(ctx context.Context, iterationID uint64) (err error)

BatchDeleteIssueByIterationID 根据迭代 id 批量删除 issue

func (*IssueService) BatchDeleteIssues

BatchDeleteIssues 批量删除

func (*IssueService) BatchUpdateIssue

func (*IssueService) BatchUpdateIssueIterationIDByIterationID

func (i *IssueService) BatchUpdateIssueIterationIDByIterationID(ctx context.Context, iterationID uint64, ID int64) (err error)

BatchUpdateIssueIterationIDByIterationID 根据迭代 id 批量更新 issue 的 iteration_id

func (*IssueService) CreateIssue

func (*IssueService) CreateIssueProperty

func (*IssueService) CreateIssueState

func (*IssueService) DBClient

func (i *IssueService) DBClient() *dao.DBClient

func (*IssueService) DeleteIssue

func (*IssueService) DeleteIssueProperty

func (*IssueService) DeleteIssueRelation

func (*IssueService) DeleteIssueState

func (*IssueService) Export

func (i *IssueService) Export(req *pb.ExportExcelIssueRequest) (uint64, error)

func (*IssueService) ExportExcel2

func (i *IssueService) ExportExcel2(data [][]string, sheetName string) (string, error)

func (*IssueService) ExportExcelAsync

func (i *IssueService) ExportExcelAsync(record *legacydao.TestFileRecord)

func (*IssueService) ExportExcelIssue

func (*IssueService) ExportFailedExcel

func (i *IssueService) ExportFailedExcel(data *vars.DataForFulfill) (string, error)

func (*IssueService) GetByName

func (i *IssueService) GetByName(orgID int64, name string, propertyIssueType string, scopeType string, scopeID int64) (*dao.IssueProperty, error)

GetByName 根据 name 获取 property 详情

func (*IssueService) GetByRelation

func (i *IssueService) GetByRelation(id int64) (*dao.IssueProperty, error)

func (*IssueService) GetIssue

func (*IssueService) GetIssueProperty

func (*IssueService) GetIssueRelations

func (*IssueService) GetIssueStage

func (*IssueService) GetIssueStateRelation

func (*IssueService) GetIssueStates

func (*IssueService) GetIssueStatesRelations

func (i *IssueService) GetIssueStatesRelations(req *pb.GetIssueStateRelationRequest) ([]*pb.IssueStateRelation, error)

GetIssueStatesRelations 获取工作流

func (*IssueService) GetIssuesByRelation

func (i *IssueService) GetIssuesByRelation(r *issueRelationRetriever) ([]*pb.Issue, error)

func (*IssueService) GetTestPlanCaseRels

func (i *IssueService) GetTestPlanCaseRels(issueID uint64) ([]*pb.TestPlanCaseRel, error)

func (*IssueService) Import

func (i *IssueService) Import(req *pb.ImportExcelIssueRequest) (uint64, error)

func (*IssueService) ImportExcel

func (i *IssueService) ImportExcel(record *legacydao.TestFileRecord) (err error)

func (*IssueService) ImportExcelIssue

func (*IssueService) MigrateOrgCustomFileds

func (i *IssueService) MigrateOrgCustomFileds(ctx context.Context, req *pb.MigrateOrgCustomFiledsRequest) error

func (*IssueService) PagingIssue

func (*IssueService) SubscribeIssue

func (*IssueService) UnsubscribeIssue

func (*IssueService) UpdateIssue

func (*IssueService) UpdateIssueProperty

func (*IssueService) UpdateIssueStage

func (i *IssueService) UpdateIssueStage(ctx context.Context, req *pb.IssueStageRequest) (*pb.UpdateIssueStageResponse, error)

func (*IssueService) UpdateIssueType

func (*IssueService) ValidIssueRelationType

func (i *IssueService) ValidIssueRelationType(id uint64, issueType string) error

func (*IssueService) ValidIssueRelationTypes

func (i *IssueService) ValidIssueRelationTypes(ids []uint64, issueTypes []string) error

func (*IssueService) WithChannel

func (i *IssueService) WithChannel(export, im chan uint64)

func (*IssueService) WithTestcase

func (i *IssueService) WithTestcase(testcase *testcase.Service)

func (*IssueService) WithTestplan

func (i *IssueService) WithTestplan(testPlan *mttestplan.TestPlan)

func (*IssueService) WithTranslator

func (i *IssueService) WithTranslator(tran i18n.I18n)

Jump to

Keyboard shortcuts

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