iteration

package
v0.0.0-...-dfb7f3b Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateIterationReq

type CreateIterationReq struct {
	Action      string `json:"Action"`      // CreateIteration
	Name        string `json:"Name"`        // Title
	ProjectName string `json:"ProjectName"` // demo-project
}

type CreateIterationResp

type CreateIterationResp struct {
	Response struct {
		Iteration struct {
			Assignee         int64  `json:"Assignee"`         // 0
			Code             int64  `json:"Code"`             // 8
			CompletedCount   int64  `json:"CompletedCount"`   // 0
			CompletedPercent int64  `json:"CompletedPercent"` // 0
			Completer        int64  `json:"Completer"`        // 0
			CreatedAt        int64  `json:"CreatedAt"`        // 1.599027192347e+12
			Creator          int64  `json:"Creator"`          // 1
			Deleter          int64  `json:"Deleter"`          // 0
			EndAt            int64  `json:"EndAt"`            // -2.88e+07
			Goal             string `json:"Goal"`             //
			Name             string `json:"Name"`             // TT
			ProcessingCount  int64  `json:"ProcessingCount"`  // 0
			StartAt          int64  `json:"StartAt"`          // -2.88e+07
			Starter          int64  `json:"Starter"`          // 0
			Status           string `json:"Status"`           // WAIT_PROCESS
			UpdatedAt        int64  `json:"UpdatedAt"`        // 1.599027192347e+12
			WaitProcessCount int64  `json:"WaitProcessCount"` // 0
		} `json:"Iteration"`
		RequestID int64 `json:"RequestId,string"` // 1
	} `json:"Response"`
}

type DeleteIterationReq

type DeleteIterationReq struct {
	Action        string `json:"Action"`        // DeleteIteration
	IterationCode int64  `json:"IterationCode"` // 1
	ProjectName   string `json:"ProjectName"`   // demo-project
}

type DeleteIterationResp

type DeleteIterationResp struct {
	Response struct {
		RequestID string `json:"RequestId"` // ae8e2d5f-569b-443e-8c61-440ea3a7562a
	} `json:"Response"`
}

type DescribeIterationListReq

type DescribeIterationListReq struct {
	Action      string   `json:"Action"`      // DescribeIterationList
	ProjectName string   `json:"ProjectName"` // demo-project
	Status      []string `json:"Status"`      // WAIT_PROCESS
}

type DescribeIterationListResp

type DescribeIterationListResp struct {
	Response struct {
		RequestID int64 `json:"RequestId,string"` // 1
		Data      struct {
			List []struct {
				Assignee         int64  `json:"Assignee"`         // 0
				Code             int64  `json:"Code"`             // 8
				CompletedCount   int64  `json:"CompletedCount"`   // 0
				CompletedPercent int64  `json:"CompletedPercent"` // 0
				Completer        int64  `json:"Completer"`        // 0
				CreatedAt        int64  `json:"CreatedAt"`        // 1.599027192e+12
				Creator          int64  `json:"Creator"`          // 1
				Deleter          int64  `json:"Deleter"`          // 0
				EndAt            int64  `json:"EndAt"`            // -2.88e+07
				Goal             string `json:"Goal"`             //
				Name             string `json:"Name"`             // demo iteration
				ProcessingCount  int64  `json:"ProcessingCount"`  // 0
				StartAt          int64  `json:"StartAt"`          // -2.88e+07
				Starter          int64  `json:"Starter"`          // 0
				Status           string `json:"Status"`           // WAIT_PROCESS
				UpdatedAt        int64  `json:"UpdatedAt"`        // 1.599027192e+12
				WaitProcessCount int64  `json:"WaitProcessCount"` // 0
			} `json:"List"`
			Page      int64 `json:"Page"`      // 1
			PageSize  int64 `json:"PageSize"`  // 20
			TotalPage int64 `json:"TotalPage"` // 1
			TotalRow  int64 `json:"TotalRow"`  // 1
		} `json:"data"`
	} `json:"Response"`
}

type DescribeIterationReq

type DescribeIterationReq struct {
	Action        string `json:"Action"`        // DescribeIteration
	IterationCode int64  `json:"IterationCode"` // 1
	ProjectName   string `json:"ProjectName"`   // project-demo
}

type DescribeIterationResp

type DescribeIterationResp struct {
	Response struct {
		Iteration struct {
			Assignee         int64  `json:"Assignee"`         // 0
			Code             int64  `json:"Code"`             // 8
			CompletedCount   int64  `json:"CompletedCount"`   // 0
			CompletedPercent int64  `json:"CompletedPercent"` // 0
			Completer        int64  `json:"Completer"`        // 0
			CreatedAt        int64  `json:"CreatedAt"`        // 1.599027192347e+12
			Creator          int64  `json:"Creator"`          // 1
			Deleter          int64  `json:"Deleter"`          // 0
			EndAt            int64  `json:"EndAt"`            // -2.88e+07
			Goal             string `json:"Goal"`             //
			Name             string `json:"Name"`             // TT
			ProcessingCount  int64  `json:"ProcessingCount"`  // 0
			StartAt          int64  `json:"StartAt"`          // -2.88e+07
			Starter          int64  `json:"Starter"`          // 0
			Status           string `json:"Status"`           // WAIT_PROCESS
			UpdatedAt        int64  `json:"UpdatedAt"`        // 1.599027192347e+12
			WaitProcessCount int64  `json:"WaitProcessCount"` // 0
		} `json:"Iteration"`
		RequestID int64 `json:"RequestId,string"` // 1
	} `json:"Response"`
}

type Iteration

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

func New

func New(c *config.Basic) Iteration

New 新建迭代相关函数

func (*Iteration) CreateIteration

func (i *Iteration) CreateIteration(req *CreateIterationReq) (resp CreateIterationResp, err error)

CreateIteration 创建迭代

func (*Iteration) DeleteIteration

func (i *Iteration) DeleteIteration(req *DeleteIterationReq) (resp DeleteIterationResp, err error)

DeleteIteration 删除迭代

func (*Iteration) DescribeIteration

func (i *Iteration) DescribeIteration(req *DescribeIterationReq) (resp DescribeIterationResp, err error)

DescribeIteration 迭代详情

func (*Iteration) DescribeIterationList

func (i *Iteration) DescribeIterationList(req *DescribeIterationListReq) (resp DescribeIterationListResp, err error)

DescribeIterationList 迭代列表

func (*Iteration) ModifyIteration

func (i *Iteration) ModifyIteration(req *ModifyIterationReq) (resp ModifyIterationResp, err error)

ModifyIteration 修改迭代

func (*Iteration) PlanIterationIssue

func (i *Iteration) PlanIterationIssue(req *PlanIterationIssueReq) (resp PlanIterationIssueResp, err error)

PlanIterationIssue 批量规划迭代

type ModifyIterationReq

type ModifyIterationReq struct {
	Action        string `json:"Action"`        // ModifyIteration
	IterationCode int64  `json:"IterationCode"` // 1
	Name          string `json:"Name"`          // Title
	ProjectName   string `json:"ProjectName"`   // demo-project
}

type ModifyIterationResp

type ModifyIterationResp struct {
	Response struct {
		Iteration struct {
			Assignee         int64  `json:"Assignee"`         // 0
			Code             int64  `json:"Code"`             // 8
			CompletedCount   int64  `json:"CompletedCount"`   // 0
			CompletedPercent int64  `json:"CompletedPercent"` // 0
			Completer        int64  `json:"Completer"`        // 0
			CreatedAt        int64  `json:"CreatedAt"`        // 1.599027192347e+12
			Creator          int64  `json:"Creator"`          // 1
			Deleter          int64  `json:"Deleter"`          // 0
			EndAt            int64  `json:"EndAt"`            // -2.88e+07
			Goal             string `json:"Goal"`             //
			Name             string `json:"Name"`             // TT
			ProcessingCount  int64  `json:"ProcessingCount"`  // 0
			StartAt          int64  `json:"StartAt"`          // -2.88e+07
			Starter          int64  `json:"Starter"`          // 0
			Status           string `json:"Status"`           // WAIT_PROCESS
			UpdatedAt        int64  `json:"UpdatedAt"`        // 1.599027192347e+12
			WaitProcessCount int64  `json:"WaitProcessCount"` // 0
		} `json:"Iteration"`
		RequestID int64 `json:"RequestId,string"` // 1
	} `json:"Response"`
}

type PlanIterationIssueReq

type PlanIterationIssueReq struct {
	Action        string  `json:"Action"`        // PlanIterationIssue
	IssueCode     []int64 `json:"IssueCode"`     // 1
	IterationCode int64   `json:"IterationCode"` // 1
	ProjectName   string  `json:"ProjectName"`   // demo-project
}

type PlanIterationIssueResp

type PlanIterationIssueResp struct {
	Response struct {
		RequestID string `json:"RequestId"` // ae8e2d5f-569b-443e-8c61-440ea3a7562a
	} `json:"Response"`
}

Jump to

Keyboard shortcuts

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