iteration

package
v1.0.0-RC 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

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

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

func (*Iteration) Paging

func (*Iteration) Update

Update 更新 iteration

type Option

type Option func(*Iteration)

Option 定义 Iteration 配置选项

func WithDBClient

func WithDBClient(db *dao.DBClient) Option

WithDBClient 配置 Iteration 数据库选项

func WithIssue

func WithIssue(is *issue.Issue) Option

WithIssue 配置 issue service

Jump to

Keyboard shortcuts

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