Documentation ¶
Overview ¶
Package iteration 封装 迭代 相关操作
Index ¶
- type Iteration
- func (itr *Iteration) Create(req *apistructs.IterationCreateRequest) (*dao.Iteration, error)
- func (itr *Iteration) Delete(id uint64) error
- func (itr *Iteration) Get(id uint64) (*dao.Iteration, error)
- func (itr *Iteration) GetByTitle(projectID uint64, title string) (*dao.Iteration, error)
- func (itr *Iteration) GetIterationSummary(projectID uint64, iterationID uint64) (*apistructs.ISummary, error)
- func (itr *Iteration) Paging(req apistructs.IterationPagingRequest) ([]dao.Iteration, uint64, error)
- func (itr *Iteration) SetIssueSummaries(projectID uint64, iterationMap map[int64]*apistructs.Iteration) error
- func (itr *Iteration) Update(id uint64, req apistructs.IterationUpdateRequest) error
- type Option
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 (*Iteration) Create ¶
func (itr *Iteration) Create(req *apistructs.IterationCreateRequest) (*dao.Iteration, error)
Create 创建迭代
func (*Iteration) GetByTitle ¶
GetByTitle 根据 title 获取 iteration 详情
func (*Iteration) GetIterationSummary ¶
func (*Iteration) Paging ¶
func (itr *Iteration) Paging(req apistructs.IterationPagingRequest) ([]dao.Iteration, uint64, error)
func (*Iteration) SetIssueSummaries ¶
func (*Iteration) Update ¶
func (itr *Iteration) Update(id uint64, req apistructs.IterationUpdateRequest) error
Update 更新 iteration
type Option ¶
type Option func(*Iteration)
Option 定义 Iteration 配置选项
func WithIssueDBClient ¶
func WithIssueQuery ¶
Click to show internal directories.
Click to hide internal directories.