issuestate

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package issuestate is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IssueState

type IssueState struct {
	// contains filtered or unexported fields
}

IssueState issue state service 对象

func New

func New(options ...Option) *IssueState

New 新建 issue state 对象

func (*IssueState) CreateIssueState

func (is *IssueState) CreateIssueState(req *apistructs.IssueStateCreateRequest) (*dao.IssueState, error)

CreateIssueState 创建事件状态请求

func (*IssueState) DeleteIssueState

func (is *IssueState) DeleteIssueState(stateID int64) error

DeleteIssueState 删除事件状态请求

func (*IssueState) GetIssueStateIDs added in v1.3.0

func (is *IssueState) GetIssueStateIDs(req *apistructs.IssueStatesGetRequest) ([]int64, error)

func (*IssueState) GetIssueStates

GetIssueStates 获取状态列表请求

func (*IssueState) GetIssueStatesBelong

func (*IssueState) GetIssueStatesMap added in v1.3.0

func (*IssueState) GetIssueStatesRelations

GetIssueStatesRelations 获取工作流

func (*IssueState) GetIssuesStatesByID

func (is *IssueState) GetIssuesStatesByID(id int64) (*apistructs.IssueStatus, error)

func (*IssueState) GetIssuesStatesNameByID

func (is *IssueState) GetIssuesStatesNameByID(id []int64) ([]apistructs.IssueStatus, error)

func (*IssueState) InitProjectState

func (is *IssueState) InitProjectState(projectID int64) error

func (*IssueState) UpdateIssueStates

func (is *IssueState) UpdateIssueStates(updateReq *apistructs.IssueStateUpdateRequest) (apistructs.IssueType, error)

UpdateIssueStates 更新工作流

type IssueStater added in v1.4.0

type IssueStater interface {
	UpdateIssueStateRelations(projectID int64, issueType apistructs.IssueType, StateRelations []dao.IssueStateRelation) error
	CreateIssuesState(state *dao.IssueState) error
	GetIssuesStatesByProjectID(projectID uint64, issueType apistructs.IssueType) ([]dao.IssueState, error)
	GetIssueStateByIDs(ID []int64) ([]dao.IssueState, error)
	GetIssueStateByID(ID int64) (*dao.IssueState, error)
	GetIssuesStates(req *apistructs.IssueStatesGetRequest) ([]dao.IssueState, error)
	GetIssueByState(state int64) (*dao.Issue, error)
	DeleteIssuesStateRelationByStartID(id int64) error
	DeleteIssuesState(id int64) error
	GetIssuesStateRelations(projectID uint64, issueType apistructs.IssueType) ([]dao.IssueStateJoinSQL, error)
	UpdateIssueState(state *dao.IssueState) error
}

type MockIssueStater added in v1.4.0

type MockIssueStater struct {
	// contains filtered or unexported fields
}

MockIssueStater is a mock of IssueStater interface.

func NewMockIssueStater added in v1.4.0

func NewMockIssueStater(ctrl *gomock.Controller) *MockIssueStater

NewMockIssueStater creates a new mock instance.

func (*MockIssueStater) CreateIssuesState added in v1.4.0

func (m *MockIssueStater) CreateIssuesState(state *dao.IssueState) error

CreateIssuesState mocks base method.

func (*MockIssueStater) DeleteIssuesState added in v1.4.0

func (m *MockIssueStater) DeleteIssuesState(id int64) error

DeleteIssuesState mocks base method.

func (*MockIssueStater) DeleteIssuesStateRelationByStartID added in v1.4.0

func (m *MockIssueStater) DeleteIssuesStateRelationByStartID(id int64) error

DeleteIssuesStateRelationByStartID mocks base method.

func (*MockIssueStater) EXPECT added in v1.4.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIssueStater) GetIssueByState added in v1.4.0

func (m *MockIssueStater) GetIssueByState(state int64) (*dao.Issue, error)

GetIssueByState mocks base method.

func (*MockIssueStater) GetIssueStateByID added in v1.4.0

func (m *MockIssueStater) GetIssueStateByID(ID int64) (*dao.IssueState, error)

GetIssueStateByID mocks base method.

func (*MockIssueStater) GetIssueStateByIDs added in v1.4.0

func (m *MockIssueStater) GetIssueStateByIDs(ID []int64) ([]dao.IssueState, error)

GetIssueStateByIDs mocks base method.

func (*MockIssueStater) GetIssuesStateRelations added in v1.4.0

func (m *MockIssueStater) GetIssuesStateRelations(projectID uint64, issueType apistructs.IssueType) ([]dao.IssueStateJoinSQL, error)

GetIssuesStateRelations mocks base method.

func (*MockIssueStater) GetIssuesStates added in v1.4.0

func (m *MockIssueStater) GetIssuesStates(req *apistructs.IssueStatesGetRequest) ([]dao.IssueState, error)

GetIssuesStates mocks base method.

func (*MockIssueStater) GetIssuesStatesByProjectID added in v1.4.0

func (m *MockIssueStater) GetIssuesStatesByProjectID(projectID uint64, issueType apistructs.IssueType) ([]dao.IssueState, error)

GetIssuesStatesByProjectID mocks base method.

func (*MockIssueStater) UpdateIssueState added in v1.4.0

func (m *MockIssueStater) UpdateIssueState(state *dao.IssueState) error

UpdateIssueState mocks base method.

func (*MockIssueStater) UpdateIssueStateRelations added in v1.4.0

func (m *MockIssueStater) UpdateIssueStateRelations(projectID int64, issueType apistructs.IssueType, StateRelations []dao.IssueStateRelation) error

UpdateIssueStateRelations mocks base method.

type MockIssueStaterMockRecorder added in v1.4.0

type MockIssueStaterMockRecorder struct {
	// contains filtered or unexported fields
}

MockIssueStaterMockRecorder is the mock recorder for MockIssueStater.

func (*MockIssueStaterMockRecorder) CreateIssuesState added in v1.4.0

func (mr *MockIssueStaterMockRecorder) CreateIssuesState(state interface{}) *gomock.Call

CreateIssuesState indicates an expected call of CreateIssuesState.

func (*MockIssueStaterMockRecorder) DeleteIssuesState added in v1.4.0

func (mr *MockIssueStaterMockRecorder) DeleteIssuesState(id interface{}) *gomock.Call

DeleteIssuesState indicates an expected call of DeleteIssuesState.

func (*MockIssueStaterMockRecorder) DeleteIssuesStateRelationByStartID added in v1.4.0

func (mr *MockIssueStaterMockRecorder) DeleteIssuesStateRelationByStartID(id interface{}) *gomock.Call

DeleteIssuesStateRelationByStartID indicates an expected call of DeleteIssuesStateRelationByStartID.

func (*MockIssueStaterMockRecorder) GetIssueByState added in v1.4.0

func (mr *MockIssueStaterMockRecorder) GetIssueByState(state interface{}) *gomock.Call

GetIssueByState indicates an expected call of GetIssueByState.

func (*MockIssueStaterMockRecorder) GetIssueStateByID added in v1.4.0

func (mr *MockIssueStaterMockRecorder) GetIssueStateByID(ID interface{}) *gomock.Call

GetIssueStateByID indicates an expected call of GetIssueStateByID.

func (*MockIssueStaterMockRecorder) GetIssueStateByIDs added in v1.4.0

func (mr *MockIssueStaterMockRecorder) GetIssueStateByIDs(ID interface{}) *gomock.Call

GetIssueStateByIDs indicates an expected call of GetIssueStateByIDs.

func (*MockIssueStaterMockRecorder) GetIssuesStateRelations added in v1.4.0

func (mr *MockIssueStaterMockRecorder) GetIssuesStateRelations(projectID, issueType interface{}) *gomock.Call

GetIssuesStateRelations indicates an expected call of GetIssuesStateRelations.

func (*MockIssueStaterMockRecorder) GetIssuesStates added in v1.4.0

func (mr *MockIssueStaterMockRecorder) GetIssuesStates(req interface{}) *gomock.Call

GetIssuesStates indicates an expected call of GetIssuesStates.

func (*MockIssueStaterMockRecorder) GetIssuesStatesByProjectID added in v1.4.0

func (mr *MockIssueStaterMockRecorder) GetIssuesStatesByProjectID(projectID, issueType interface{}) *gomock.Call

GetIssuesStatesByProjectID indicates an expected call of GetIssuesStatesByProjectID.

func (*MockIssueStaterMockRecorder) UpdateIssueState added in v1.4.0

func (mr *MockIssueStaterMockRecorder) UpdateIssueState(state interface{}) *gomock.Call

UpdateIssueState indicates an expected call of UpdateIssueState.

func (*MockIssueStaterMockRecorder) UpdateIssueStateRelations added in v1.4.0

func (mr *MockIssueStaterMockRecorder) UpdateIssueStateRelations(projectID, issueType, StateRelations interface{}) *gomock.Call

UpdateIssueStateRelations indicates an expected call of UpdateIssueStateRelations.

type Option

type Option func(*IssueState)

Option 定义 IssueState 对象配置选项

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

WithBundle 配置 bundle

func WithDBClient

func WithDBClient(db IssueStater) Option

WithDBClient 配置 db client

Jump to

Keyboard shortcuts

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