Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProjectTaskStatusCancel = -1 ProjectTaskStatusNotStart = 1 ProjectTaskStatusConfirmed = 2 ProjectTaskStatusDoing = 3 ProjectTaskStatusDevDone = 4 ProjectTaskStatusTestReject = 5 ProjectTaskStatusTesting = 6 ProjectTaskStatusTestPass = 7 ProjectTaskStatusDone = 9 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProjectTask ¶
type ProjectTask struct { ID uint64 `json:"id,omitempty,string" gorm:"primaryKey;autoIncrement:false"` ProjectID uint64 `json:"projectId,omitempty,string" gorm:"index;comment:项目ID"` RequirementID uint64 `json:"requirementId,omitempty,string" gorm:"index;comment:关联的需求ID"` StageID uint64 `json:"stageId,omitempty,string" gorm:"index;comment:阶段ID"` ModuleID uint64 `json:"moduleId,omitempty,string" gorm:"index;comment:模块ID"` ParentID uint64 `json:"parentId,omitempty,string" gorm:"index;comment:父任务ID"` Name string `json:"name,omitempty" gorm:"size:50;comment:任务名称"` StartTime int64 `json:"startTime,omitempty" gorm:"comment:开始时间"` EndTime int64 `json:"endTime,omitempty" gorm:"comment:结束时间"` TaskDesc string `json:"taskDesc,omitempty" gorm:"comment:任务描述"` Priority int `json:"priority,omitempty" gorm:"comment:优先级 1-低 2-中 3-高"` OwnerID uint64 `json:"ownerId,omitempty,string" gorm:"index;comment:任务负责人ID"` ActualStartTime int64 `json:"actualStartTime,omitempty" gorm:"comment:实际开始时间"` ActualEndTime int64 `json:"actualEndTime,omitempty" gorm:"comment:实际结束时间"` EstimateDuration int64 `json:"estimateDuration,omitempty" gorm:"comment:预计工期,单位:秒"` ActualDuration int64 `json:"actualDuration,omitempty" gorm:"comment:实际工期,单位:秒"` ChildrenCount int `json:"childrenCount,omitempty" gorm:"comment:子任务数量"` Status int `` /* 175-byte string literal not displayed */ CreatorID uint64 `json:"creatorId,omitempty,string" gorm:"comment:创建人ID"` FullPath string `json:"fullPath,omitempty" gorm:"size:1000;comment:全路径, 需求全路径 + / + 任务名"` CreateTime int64 `json:"createTime" gorm:"autoCreateTime:milli"` UpdateTime int64 `json:"updateTime" gorm:"autoUpdateTime:milli"` DeleteTime gorm.DeletedAt `json:"deleteTime" gorm:"index"` }
func (*ProjectTask) TableComment ¶
func (_ *ProjectTask) TableComment() string
func (*ProjectTask) UnmarshalJSON ¶
func (pt *ProjectTask) UnmarshalJSON(b []byte) error
type ProjectTaskMember ¶
type ProjectTaskMember struct { ID uint64 `json:"id,omitempty,string" gorm:"primaryKey;autoIncrement:false"` ProjectID uint64 `json:"projectId,omitempty,string" gorm:"index;comment:项目ID"` TaskID uint64 `json:"taskId,omitempty,string" gorm:"index;comment:任务ID"` UserID uint64 `json:"userId,omitempty,string" gorm:"index;comment:用户ID"` RoleID uint64 `json:"roleId,omitempty,string" gorm:"index;comment:角色ID"` EstimateDuration int64 `json:"estimateDuration,omitempty" gorm:"comment:预计工期,单位:秒"` ActualDuration int64 `json:"actualDuration,omitempty" gorm:"comment:实际工期,单位:秒"` Status int `` /* 175-byte string literal not displayed */ CreateTime int64 `json:"createTime" gorm:"autoCreateTime:milli"` UpdateTime int64 `json:"updateTime" gorm:"autoUpdateTime:milli"` DeleteTime gorm.DeletedAt `json:"deleteTime" gorm:"index"` }
func (*ProjectTaskMember) TableComment ¶
func (_ *ProjectTaskMember) TableComment() string
func (*ProjectTaskMember) UnmarshalJSON ¶
func (ptm *ProjectTaskMember) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.