Documentation ¶
Index ¶
- Constants
- func Check(irc *pb.AddIssueRelationRequest) error
- func GetArb(i *pb.IssuePropertyInstance) string
- func GetComplexity(zh string) pb.IssueComplexityEnum_Complextity
- func GetProperty(zh string) pb.IssuePriorityEnum_Priority
- func GetSeverity(zh string) pb.IssueSeverityEnum_Severity
- func GetType(s string) pb.IssueTypeEnum_Type
- func IsCanChange(pt, newpt string) bool
- func IssueResource(ctx context.Context, req interface{}) (string, error)
- func ScopeID(ctx context.Context, req interface{}) (string, error)
- func SetRelatedIssueIDs(s *pb.Issue, ids string) error
- type IssuePermRequestWithInt64ProjectID
- type IssuePermRequestWithUint64ProjectID
- type IssuePermType
- type IssueService
- func (i *IssueService) AddIssueRelation(ctx context.Context, req *pb.AddIssueRelationRequest) (*pb.AddIssueRelationResponse, error)
- func (i *IssueService) BatchDeleteIssueByIterationID(ctx context.Context, iterationID uint64) (err error)
- func (i *IssueService) BatchDeleteIssues(ctx context.Context, req *pb.BatchDeleteIssueRequest) (*pb.BatchDeleteIssueResponse, error)
- func (i *IssueService) BatchUpdateIssue(ctx context.Context, req *pb.BatchUpdateIssueRequest) (*pb.BatchUpdateIssueResponse, error)
- func (i *IssueService) BatchUpdateIssueIterationIDByIterationID(ctx context.Context, iterationID uint64, ID int64) (err error)
- func (i *IssueService) BatchUpdateIssueSubscriber(ctx context.Context, req *pb.BatchUpdateIssueSubscriberRequest) (*pb.BatchUpdateIssueSubscriberResponse, error)
- func (i *IssueService) CreateIssue(ctx context.Context, req *pb.IssueCreateRequest) (*pb.IssueCreateResponse, error)
- func (i *IssueService) CreateIssueProperty(ctx context.Context, req *pb.CreateIssuePropertyRequest) (*pb.CreateIssuePropertyResponse, error)
- func (i *IssueService) CreateIssuePropertyInstance(ctx context.Context, req *pb.CreateIssuePropertyInstanceRequest) (*pb.CreateIssuePropertyInstanceResponse, error)
- func (i *IssueService) CreateIssueState(ctx context.Context, req *pb.CreateIssueStateRequest) (*pb.CreateIssueStateResponse, error)
- func (i *IssueService) DBClient() *dao.DBClient
- func (i *IssueService) DeleteIssue(ctx context.Context, req *pb.DeleteIssueRequest) (*pb.DeleteIssueResponse, error)
- func (i *IssueService) DeleteIssueProperty(ctx context.Context, req *pb.DeleteIssuePropertyRequest) (*pb.DeleteIssuePropertyResponse, error)
- func (i *IssueService) DeleteIssueRelation(ctx context.Context, req *pb.DeleteIssueRelationRequest) (*pb.DeleteIssueRelationResponse, error)
- func (i *IssueService) DeleteIssueState(ctx context.Context, req *pb.DeleteIssueStateRequest) (*pb.DeleteIssueStateResponse, error)
- func (i *IssueService) Export(req *pb.ExportExcelIssueRequest) (uint64, error)
- func (i *IssueService) ExportExcel2(data [][]string, sheetName string) (string, error)
- func (i *IssueService) ExportExcelAsync(record *legacydao.TestFileRecord)
- func (i *IssueService) ExportExcelIssue(ctx context.Context, req *pb.ExportExcelIssueRequest) (*pb.ExportExcelIssueResponse, error)
- func (i *IssueService) ExportFailedExcel(data *vars.DataForFulfill) (string, error)
- func (i *IssueService) GetByName(orgID int64, name string, propertyIssueType string, scopeType string, ...) (*dao.IssueProperty, error)
- func (i *IssueService) GetByRelation(id int64) (*dao.IssueProperty, error)
- func (i *IssueService) GetIssue(ctx context.Context, req *pb.GetIssueRequest) (*pb.GetIssueResponse, error)
- func (i *IssueService) GetIssueProperty(ctx context.Context, req *pb.GetIssuePropertyRequest) (*pb.GetIssuePropertyResponse, error)
- func (i *IssueService) GetIssuePropertyInstance(ctx context.Context, req *pb.GetIssuePropertyInstanceRequest) (*pb.GetIssuePropertyInstanceResponse, error)
- func (i *IssueService) GetIssuePropertyUpdateTime(ctx context.Context, req *pb.GetIssuePropertyUpdateTimeRequest) (*pb.GetIssuePropertyUpdateTimeResponse, error)
- func (is *IssueService) GetIssueRelations(ctx context.Context, req *pb.GetIssueRelationsRequest) (*pb.GetIssueRelationsResponse, error)
- func (i *IssueService) GetIssueStage(ctx context.Context, req *pb.IssueStageRequest) (*pb.GetIssueStageResponse, error)
- func (i *IssueService) GetIssueStateRelation(ctx context.Context, req *pb.GetIssueStateRelationRequest) (*pb.GetIssueStateRelationResponse, error)
- func (i *IssueService) GetIssueStates(ctx context.Context, req *pb.GetIssueStatesRequest) (*pb.GetIssueStatesResponse, error)
- func (i *IssueService) GetIssueStatesRelations(req *pb.GetIssueStateRelationRequest) ([]*pb.IssueStateRelation, error)
- func (i *IssueService) GetIssuesByRelation(r *issueRelationRetriever) ([]*pb.Issue, error)
- func (i *IssueService) GetTestPlanCaseRels(issueID uint64) ([]*pb.TestPlanCaseRel, error)
- func (i *IssueService) Import(req *pb.ImportExcelIssueRequest) (uint64, error)
- func (i *IssueService) ImportExcel(record *legacydao.TestFileRecord) (err error)
- func (i *IssueService) ImportExcelIssue(ctx context.Context, req *pb.ImportExcelIssueRequest) (*pb.ImportExcelIssueResponse, error)
- func (i *IssueService) MigrateOrgCustomFileds(ctx context.Context, req *pb.MigrateOrgCustomFiledsRequest) error
- func (i *IssueService) PagingIssue(ctx context.Context, req *pb.PagingIssueRequest) (*pb.PagingIssueResponse, error)
- func (i *IssueService) SubscribeIssue(ctx context.Context, req *pb.SubscribeIssueRequest) (*pb.SubscribeIssueResponse, error)
- func (i *IssueService) UnsubscribeIssue(ctx context.Context, req *pb.UnsubscribeIssueRequest) (*pb.UnsubscribeIssueResponse, error)
- func (i *IssueService) UpdateIssue(ctx context.Context, req *pb.UpdateIssueRequest) (*pb.UpdateIssueResponse, error)
- func (i *IssueService) UpdateIssuePropertiesIndex(ctx context.Context, req *pb.UpdateIssuePropertiesIndexRequest) (*pb.UpdateIssuePropertiesIndexResponse, error)
- func (i *IssueService) UpdateIssueProperty(ctx context.Context, req *pb.UpdateIssuePropertyRequest) (*pb.UpdateIssuePropertyResponse, error)
- func (i *IssueService) UpdateIssueStage(ctx context.Context, req *pb.IssueStageRequest) (*pb.UpdateIssueStageResponse, error)
- func (i *IssueService) UpdateIssueStateRelation(ctx context.Context, req *pb.UpdateIssueStateRelationRequest) (*pb.UpdateIssueStateRelationResponse, error)
- func (i *IssueService) UpdateIssueType(ctx context.Context, req *pb.UpdateIssueTypeRequest) (*pb.UpdateIssueTypeResponse, error)
- func (i *IssueService) ValidIssueRelationType(id uint64, issueType string) error
- func (i *IssueService) ValidIssueRelationTypes(ids []uint64, issueTypes []string) error
- func (i *IssueService) WithChannel(export, im chan uint64)
- func (i *IssueService) WithTestcase(testcase *testcase.Service)
- func (i *IssueService) WithTestplan(testPlan *mttestplan.TestPlan)
- func (i *IssueService) WithTranslator(tran i18n.I18n)
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 GetArb ¶
func GetArb(i *pb.IssuePropertyInstance) string
func GetComplexity ¶
func GetComplexity(zh string) pb.IssueComplexityEnum_Complextity
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
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 (i *IssueService) AddIssueRelation(ctx context.Context, req *pb.AddIssueRelationRequest) (*pb.AddIssueRelationResponse, error)
func (*IssueService) BatchDeleteIssueByIterationID ¶
func (i *IssueService) BatchDeleteIssueByIterationID(ctx context.Context, iterationID uint64) (err error)
BatchDeleteIssueByIterationID 根据迭代 id 批量删除 issue
func (*IssueService) BatchDeleteIssues ¶
func (i *IssueService) BatchDeleteIssues(ctx context.Context, req *pb.BatchDeleteIssueRequest) (*pb.BatchDeleteIssueResponse, error)
BatchDeleteIssues 批量删除
func (*IssueService) BatchUpdateIssue ¶
func (i *IssueService) BatchUpdateIssue(ctx context.Context, req *pb.BatchUpdateIssueRequest) (*pb.BatchUpdateIssueResponse, error)
func (*IssueService) BatchUpdateIssueIterationIDByIterationID ¶
func (i *IssueService) BatchUpdateIssueIterationIDByIterationID(ctx context.Context, iterationID uint64, ID int64) (err error)
BatchUpdateIssueIterationIDByIterationID 根据迭代 id 批量更新 issue 的 iteration_id
func (*IssueService) BatchUpdateIssueSubscriber ¶
func (i *IssueService) BatchUpdateIssueSubscriber(ctx context.Context, req *pb.BatchUpdateIssueSubscriberRequest) (*pb.BatchUpdateIssueSubscriberResponse, error)
func (*IssueService) CreateIssue ¶
func (i *IssueService) CreateIssue(ctx context.Context, req *pb.IssueCreateRequest) (*pb.IssueCreateResponse, error)
func (*IssueService) CreateIssueProperty ¶
func (i *IssueService) CreateIssueProperty(ctx context.Context, req *pb.CreateIssuePropertyRequest) (*pb.CreateIssuePropertyResponse, error)
func (*IssueService) CreateIssuePropertyInstance ¶
func (i *IssueService) CreateIssuePropertyInstance(ctx context.Context, req *pb.CreateIssuePropertyInstanceRequest) (*pb.CreateIssuePropertyInstanceResponse, error)
func (*IssueService) CreateIssueState ¶
func (i *IssueService) CreateIssueState(ctx context.Context, req *pb.CreateIssueStateRequest) (*pb.CreateIssueStateResponse, error)
func (*IssueService) DBClient ¶
func (i *IssueService) DBClient() *dao.DBClient
func (*IssueService) DeleteIssue ¶
func (i *IssueService) DeleteIssue(ctx context.Context, req *pb.DeleteIssueRequest) (*pb.DeleteIssueResponse, error)
func (*IssueService) DeleteIssueProperty ¶
func (i *IssueService) DeleteIssueProperty(ctx context.Context, req *pb.DeleteIssuePropertyRequest) (*pb.DeleteIssuePropertyResponse, error)
func (*IssueService) DeleteIssueRelation ¶
func (i *IssueService) DeleteIssueRelation(ctx context.Context, req *pb.DeleteIssueRelationRequest) (*pb.DeleteIssueRelationResponse, error)
func (*IssueService) DeleteIssueState ¶
func (i *IssueService) DeleteIssueState(ctx context.Context, req *pb.DeleteIssueStateRequest) (*pb.DeleteIssueStateResponse, error)
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 (i *IssueService) ExportExcelIssue(ctx context.Context, req *pb.ExportExcelIssueRequest) (*pb.ExportExcelIssueResponse, error)
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 (i *IssueService) GetIssue(ctx context.Context, req *pb.GetIssueRequest) (*pb.GetIssueResponse, error)
func (*IssueService) GetIssueProperty ¶
func (i *IssueService) GetIssueProperty(ctx context.Context, req *pb.GetIssuePropertyRequest) (*pb.GetIssuePropertyResponse, error)
func (*IssueService) GetIssuePropertyInstance ¶
func (i *IssueService) GetIssuePropertyInstance(ctx context.Context, req *pb.GetIssuePropertyInstanceRequest) (*pb.GetIssuePropertyInstanceResponse, error)
func (*IssueService) GetIssuePropertyUpdateTime ¶
func (i *IssueService) GetIssuePropertyUpdateTime(ctx context.Context, req *pb.GetIssuePropertyUpdateTimeRequest) (*pb.GetIssuePropertyUpdateTimeResponse, error)
func (*IssueService) GetIssueRelations ¶
func (is *IssueService) GetIssueRelations(ctx context.Context, req *pb.GetIssueRelationsRequest) (*pb.GetIssueRelationsResponse, error)
func (*IssueService) GetIssueStage ¶
func (i *IssueService) GetIssueStage(ctx context.Context, req *pb.IssueStageRequest) (*pb.GetIssueStageResponse, error)
func (*IssueService) GetIssueStateRelation ¶
func (i *IssueService) GetIssueStateRelation(ctx context.Context, req *pb.GetIssueStateRelationRequest) (*pb.GetIssueStateRelationResponse, error)
func (*IssueService) GetIssueStates ¶
func (i *IssueService) GetIssueStates(ctx context.Context, req *pb.GetIssueStatesRequest) (*pb.GetIssueStatesResponse, error)
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 (i *IssueService) ImportExcelIssue(ctx context.Context, req *pb.ImportExcelIssueRequest) (*pb.ImportExcelIssueResponse, error)
func (*IssueService) MigrateOrgCustomFileds ¶
func (i *IssueService) MigrateOrgCustomFileds(ctx context.Context, req *pb.MigrateOrgCustomFiledsRequest) error
func (*IssueService) PagingIssue ¶
func (i *IssueService) PagingIssue(ctx context.Context, req *pb.PagingIssueRequest) (*pb.PagingIssueResponse, error)
func (*IssueService) SubscribeIssue ¶
func (i *IssueService) SubscribeIssue(ctx context.Context, req *pb.SubscribeIssueRequest) (*pb.SubscribeIssueResponse, error)
func (*IssueService) UnsubscribeIssue ¶
func (i *IssueService) UnsubscribeIssue(ctx context.Context, req *pb.UnsubscribeIssueRequest) (*pb.UnsubscribeIssueResponse, error)
func (*IssueService) UpdateIssue ¶
func (i *IssueService) UpdateIssue(ctx context.Context, req *pb.UpdateIssueRequest) (*pb.UpdateIssueResponse, error)
func (*IssueService) UpdateIssuePropertiesIndex ¶
func (i *IssueService) UpdateIssuePropertiesIndex(ctx context.Context, req *pb.UpdateIssuePropertiesIndexRequest) (*pb.UpdateIssuePropertiesIndexResponse, error)
func (*IssueService) UpdateIssueProperty ¶
func (i *IssueService) UpdateIssueProperty(ctx context.Context, req *pb.UpdateIssuePropertyRequest) (*pb.UpdateIssuePropertyResponse, error)
func (*IssueService) UpdateIssueStage ¶
func (i *IssueService) UpdateIssueStage(ctx context.Context, req *pb.IssueStageRequest) (*pb.UpdateIssueStageResponse, error)
func (*IssueService) UpdateIssueStateRelation ¶
func (i *IssueService) UpdateIssueStateRelation(ctx context.Context, req *pb.UpdateIssueStateRelationRequest) (*pb.UpdateIssueStateRelationResponse, error)
func (*IssueService) UpdateIssueType ¶
func (i *IssueService) UpdateIssueType(ctx context.Context, req *pb.UpdateIssueTypeRequest) (*pb.UpdateIssueTypeResponse, error)
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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.