gantt

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OpChangePageNo apistructs.OperationKey = "changePageNo"
)

Functions

This section is empty.

Types

type CommonGantt

type CommonGantt struct {
	Version    string                                           `json:"version,omitempty"`
	Name       string                                           `json:"name,omitempty"`
	Type       string                                           `json:"type,omitempty"`
	Props      Props                                            `json:"props,omitempty"`
	State      State                                            `json:"state,omitempty"`
	Operations map[apistructs.OperationKey]apistructs.Operation `json:"operations,omitempty"`
	Data       Data                                             `json:"data,omitempty"`
}

type Data

type Data struct {
	List []DataItem `json:"list,omitempty"`
}

type DataItem

type DataItem struct {
	// 此ID全局唯一: autoID + issueID
	ID        uint64    `json:"id,omitempty"`
	DateRange DateRange `json:"dateRange,omitempty"`
	Tasks     DataTask  `json:"issues,omitempty"`
	User      User      `json:"user,omitempty"`
}

type DataTask

type DataTask struct {
	RenderType RenderType      `json:"renderType,omitempty"`
	Value      []DataTaskValue `json:"value,omitempty"`
}

type DataTaskValue

type DataTaskValue struct {
	Text        string               `json:"text,omitempty"`
	ID          int64                `json:"id,omitempty"`
	Type        apistructs.IssueType `json:"type,omitempty"`
	IterationID int64                `json:"iterationID,omitempty"` // TODO not in common
	LinkStyle   bool                 `json:"linkStyle,omitempty"`
}

type DateRange

type DateRange struct {
	RenderType RenderType       `json:"renderType,omitempty"`
	Value      []DateRangeValue `json:"value,omitempty"`
}

type DateRangeValue

type DateRangeValue struct {
	Tooltip string `json:"tooltip"`
	// 单位天
	RestTime   float64 `json:"restTime"`
	Offset     float64 `json:"offset"`
	Delay      float64 `json:"delay"`
	ActualTime float64 `json:"actualTime"`
}

type PropColumn

type PropColumn struct {
	Title           string           `json:"title,omitempty"`
	TitleRenderType string           `json:"titleRenderType,omitempty"`
	DataIndex       string           `json:"dataIndex,omitempty"`
	Width           uint64           `json:"width,omitempty"`
	Data            []PropColumnData `json:"data,omitempty"`
	TitleTip        []string         `json:"titleTip,omitempty"`
}

type PropColumnData

type PropColumnData struct {
	Month uint64   `json:"month,omitempty"`
	Date  []uint64 `json:"date,omitempty"`
}

type Props

type Props struct {
	Visible   bool         `json:"visible"`
	RowKey    string       `json:"rowKey,omitempty"`
	ClassName string       `json:"className,omitempty"`
	Columns   []PropColumn `json:"columns,omitempty"`
}

type RenderType

type RenderType string
var (
	RenderTypeGantt        RenderType = "gantt"
	RenderTypeStringList   RenderType = "string-list"
	RenderTypeMemberAvatar RenderType = "userAvatar"

	DefaultPageNo   = uint64(1)
	DefaultPageSize = uint64(200)
)

type State

type State struct {
	// set after render
	Total               uint64 `json:"total,omitempty"`
	PageNo              uint64 `json:"pageNo,omitempty"`
	PageSize            uint64 `json:"pageSize,omitempty"`
	IssueViewGroupValue string `json:"issueViewGroupValue,omitempty"`
	IssueType           string
}

type User

type User struct {
	Avatar     string     `json:"avatar,omitempty"`
	Value      uint64     `json:"value,omitempty"`
	Name       string     `json:"name,omitempty"`
	Nick       string     `json:"nick,omitempty"`
	RenderType RenderType `json:"renderType,omitempty"`
}

Jump to

Keyboard shortcuts

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