iteration

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: 6 Imported by: 0

Documentation

Overview

Package iteration 封装 迭代 相关操作

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Iteration

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

Iteration 迭代操作封装

func New

func New(options ...Option) *Iteration

New 新建 Iteration 实例

func (*Iteration) Create

Create 创建迭代

func (*Iteration) Delete

func (itr *Iteration) Delete(id uint64) error

Delete 删除 iteration

func (*Iteration) Get

func (itr *Iteration) Get(id uint64) (*dao.Iteration, error)

Get 获取 iteration 详情

func (*Iteration) GetByTitle

func (itr *Iteration) GetByTitle(projectID uint64, title string) (*dao.Iteration, error)

GetByTitle 根据 title 获取 iteration 详情

func (*Iteration) GetIterationSummary

func (itr *Iteration) GetIterationSummary(projectID uint64, iterationID uint64) (*apistructs.ISummary, error)

func (*Iteration) Paging

func (*Iteration) SetIssueSummaries

func (itr *Iteration) SetIssueSummaries(projectID uint64, iterationMap map[int64]*apistructs.Iteration) error

func (*Iteration) Update

Update 更新 iteration

type Option

type Option func(*Iteration)

Option 定义 Iteration 配置选项

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

WithDBClient 配置 Iteration 数据库选项

func WithIssueDBClient

func WithIssueDBClient(db *issuedao.DBClient) Option

func WithIssueQuery

func WithIssueQuery(q query.Interface) Option

Jump to

Keyboard shortcuts

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