issuestate

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

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) GetIssueStates

GetIssueStates 获取状态列表请求

func (*IssueState) GetIssueStatesBelong

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) UpdateIssueStates

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

UpdateIssueStates 更新工作流

type Option

type Option func(*IssueState)

Option 定义 IssueState 对象配置选项

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

WithBundle 配置 bundle

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

WithDBClient 配置 db client

Jump to

Keyboard shortcuts

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