Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProjectIssueStatusNew = iota + 1 ProjectIssueStatusAssigned ProjectIssueStatusProcessing ProjectIssueStatusVerifying ProjectIssueStatusResolved ProjectIssueStatusClosed = 9 ProjectIssueStatusReject = -1 )
View Source
const ( ProjectModuleStatusPendingReview = 1 ProjectModuleStatusPendingDev = 2 ProjectModuleStatusCompleted = 9 ProjectModuleStatusRejected = -1 )
View Source
const ( ProjectPlanStatusAbandoned = -1 ProjectPlanStatusNotStart = 1 ProjectPlanStatusStarted = 2 ProjectPlanStatusFinished = 3 )
View Source
const ( ProjectRequirementStatusPendingDesign = 1 // 待评审 ProjectRequirementStatusPendingReview = 2 // 待评审 ProjectRequirementStatusReviewed = 3 // 评审通过 ProjectRequirementStatusCompleted = 9 // 已完成 ProjectRequirementStatusRejected = -1 // 评审未通过 )
View Source
const ( ProjectRiskStatusIdentified = 1 ProjectRiskStatusResponded = 2 ProjectRiskStatusOccurred = 3 ProjectRiskStatusSolved = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Project ¶
type Project struct { ID uint64 `json:"id,omitempty,string" gorm:"primaryKey;autoIncrement:false"` ParentID uint64 `json:"parentId,omitempty,string" gorm:"index;comment:父项目ID"` Name string `json:"name,omitempty" gorm:"size:50;comment:项目名称"` Code string `json:"code,omitempty" gorm:"size:50;comment:项目编码"` Description string `json:"description,omitempty" gorm:"size:500;comment:项目描述"` OwnerID uint64 `json:"ownerId,omitempty,string" gorm:"index;comment:项目负责人ID"` StageID uint64 `json:"stageId,omitempty,string" gorm:"index;comment:项目阶段ID"` ChildCount uint64 `json:"childCount,omitempty,string" gorm:"comment:子项目数量"` CreateTime int64 `json:"createTime" gorm:"autoCreateTime:milli"` UpdateTime int64 `json:"updateTime" gorm:"autoUpdateTime:milli"` DeleteTime gorm.DeletedAt `json:"deleteTime" gorm:"index"` }
func (*Project) TableComment ¶
func (*Project) UnmarshalJSON ¶
type ProjectAsset ¶
type ProjectAsset struct { ID uint64 `json:"id,omitempty,string" gorm:"primaryKey;autoIncrement:false"` ProjectID uint64 `json:"projectId,omitempty,string" gorm:"index;comment:项目ID"` Name string `json:"name,omitempty" gorm:"size:50;comment:资产名称"` Type int `json:"type,omitempty" gorm:"comment:资产类型 1-需求 2-设计 3-代码 4-测试 9-其他"` Version string `json:"version,omitempty" gorm:"size:50;comment:版本号"` FileID uint64 `json:"fileId,omitempty,string" gorm:"index;comment:文件ID"` CreatorID uint64 `json:"creatorId,omitempty,string" gorm:"index;comment:创建人ID"` Remark string `json:"remark,omitempty" gorm:"size:500;comment:备注"` Status int `json:"status,omitempty" gorm:"comment:状态 1-草稿 2-已审核 3-已发布 9-已归档"` VerifyUserID uint64 `json:"verifyUserId,omitempty,string" gorm:"index;comment:审核人ID"` VerifyTime int64 `json:"verifyTime,omitempty" gorm:"comment:审核时间"` ReleaseTime int64 `json:"releaseTime,omitempty" gorm:"comment:发布时间"` ArchiveTime int64 `json:"archiveTime,omitempty" gorm:"comment:归档时间"` CreateTime int64 `json:"createTime" gorm:"autoCreateTime:milli"` UpdateTime int64 `json:"updateTime" gorm:"autoUpdateTime:milli"` DeleteTime gorm.DeletedAt `json:"deleteTime" gorm:"index"` }
func (*ProjectAsset) TableComment ¶
func (_ *ProjectAsset) TableComment() string
func (*ProjectAsset) UnmarshalJSON ¶
func (p *ProjectAsset) UnmarshalJSON(b []byte) error
type ProjectChange ¶
type ProjectChange struct { ID uint64 `json:"id,omitempty,string" gorm:"primaryKey;autoIncrement:false"` ProjectID uint64 `json:"projectId,omitempty,string" gorm:"index;comment:项目ID"` Title string `json:"title,omitempty" gorm:"comment:变化名称"` Type int `json:"type,omitempty" gorm:"comment:变化类型 1-时间节点调整 2-需求变更 3-资源变动 9-其他变更"` Level int `json:"level,omitempty" gorm:"comment:变化级别 1-一般 2-重大"` Reason string `json:"reason,omitempty" gorm:"comment:变更原因"` Plan string `json:"plan,omitempty" gorm:"comment:变更方案"` Review string `json:"review,omitempty" gorm:"comment:变更评审结果"` Risk string `json:"risk,omitempty" gorm:"comment:变更风险"` Status int `json:"status,omitempty" gorm:"comment:状态 1-待评审 2-已批准 -1-已拒绝 9-关闭"` ApplyUserID uint64 `json:"applyUserId,omitempty,string" gorm:"comment:申请人ID"` ReviewerIDList string `json:"reviewerIdList,omitempty" gorm:"comment:评审人ID列表 以,分割"` Result string `json:"result,omitempty" gorm:"comment:结果说明"` ReviewTime int64 `json:"reviewTime" gorm:"comment:评审时间"` CreatorID uint64 `json:"creatorId,omitempty,string" gorm:"comment:创建人ID"` CreateTime int64 `json:"createTime" gorm:"autoCreateTime:milli"` UpdateTime int64 `json:"updateTime" gorm:"autoUpdateTime:milli"` DeleteTime gorm.DeletedAt `json:"deleteTime" gorm:"index"` }
func (*ProjectChange) TableComment ¶
func (_ *ProjectChange) TableComment() string
func (*ProjectChange) UnmarshalJSON ¶
func (p *ProjectChange) UnmarshalJSON(b []byte) error
type ProjectIssue ¶
type ProjectIssue 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"` Title string `json:"title,omitempty" gorm:"type:varchar(255);comment:问题标题"` Type uint8 `` /* 154-byte string literal not displayed */ Level uint8 `json:"level,omitempty" gorm:"comment:问题级别 1-一般 2-重要 3-紧急"` Content string `json:"content,omitempty" gorm:"comment:问题内容"` Status int8 `` /* 133-byte string literal not displayed */ CreatorID uint64 `json:"creatorId,omitempty,string" gorm:"index;comment:创建人ID"` AssigneeID uint64 `json:"assigneeId,omitempty,string" gorm:"index;comment:指派人ID"` StartTime int64 `json:"startTime,omitempty" gorm:"comment:开始解决时间"` EndTime int64 `json:"endTime,omitempty" gorm:"comment:解决完成时间"` ResolvedTime int64 `json:"resolvedTime,omitempty" gorm:"comment:确认解决时间"` SolveDuration int64 `json:"solveDuration,omitempty" gorm:"comment:解决耗时"` RejectedReason string `json:"rejectedReason,omitempty" gorm:"size:500;comment:拒绝原因"` IssueCause string `json:"issueCause,omitempty" gorm:"size:500;comment:问题原因"` SolveMethod string `json:"solveMethod,omitempty" gorm:"size:500;comment:解决方法"` CreateTime int64 `json:"createTime,omitempty" gorm:"autoCreateTime:milli"` UpdateTime int64 `json:"updateTime,omitempty" gorm:"autoUpdateTime:milli"` DeleteTime gorm.DeletedAt `json:"deleteTime,omitempty" gorm:"index"` }
func (*ProjectIssue) TableComment ¶
func (*ProjectIssue) TableComment() string
func (*ProjectIssue) UnmarshalJSON ¶
func (pi *ProjectIssue) UnmarshalJSON(b []byte) error
type ProjectMember ¶
type ProjectMember struct { ID uint64 `json:"id,omitempty,string" gorm:"primaryKey;autoIncrement:false"` ProjectID uint64 `json:"projectId,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"` CreateTime int64 `json:"createTime" gorm:"autoCreateTime:milli"` }
func (*ProjectMember) TableComment ¶
func (_ *ProjectMember) TableComment() string
func (*ProjectMember) UnmarshalJSON ¶
func (p *ProjectMember) UnmarshalJSON(b []byte) error
type ProjectModule ¶
type ProjectModule struct { ID uint64 `json:"id,omitempty,string" gorm:"primaryKey;autoIncrement:false"` ProjectID uint64 `json:"projectId,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:模块名称"` Alias string `json:"alias,omitempty" gorm:"size:50;comment:模块别名"` Remark string `json:"remark,omitempty" gorm:"size:200;comment:备注"` ChildrenCount int `json:"childrenCount,omitempty" gorm:"comment:子模块数量"` FullPath string `json:"fullPath,omitempty" gorm:"size:1000;comment:全路径"` CreatorID uint64 `json:"creatorId,omitempty,string" gorm:"comment:创建人ID"` Status int `json:"status,omitempty" gorm:"comment:状态 1-待评审 2-评审通过待开发 9-已完成 -1-评审不通过"` CreateTime int64 `json:"createTime" gorm:"autoCreateTime:milli"` UpdateTime int64 `json:"updateTime" gorm:"autoUpdateTime:milli"` DeleteTime gorm.DeletedAt `json:"deleteTime" gorm:"index"` }
func (*ProjectModule) TableComment ¶
func (_ *ProjectModule) TableComment() string
func (*ProjectModule) UnmarshalJSON ¶
func (pm *ProjectModule) UnmarshalJSON(b []byte) error
type ProjectPlan ¶
type ProjectPlan struct { ID uint64 `json:"id,omitempty,string" gorm:"primaryKey;autoIncrement:false"` ProjectID uint64 `json:"projectId,omitempty,string" gorm:"index;comment:项目ID"` StageID uint64 `json:"stageId,omitempty,string" gorm:"index;comment:阶段ID"` PlanName string `json:"planName,omitempty" gorm:"size:50;comment:计划名称"` PlanDesc string `json:"planDesc,omitempty" gorm:"size:500;comment:计划描述"` StartTime int64 `json:"startTime" gorm:"comment:计划开始时间"` EndTime int64 `json:"endTime" gorm:"comment:计划结束时间"` Target string `json:"target,omitempty" gorm:"size:500;comment:计划目标"` Scope string `json:"scope,omitempty" gorm:"size:500;comment:计划范围"` Schedule string `json:"schedule,omitempty" gorm:"size:500;comment:计划进度"` Resource string `json:"resource,omitempty" gorm:"size:500;comment:计划资源"` Budget decimal.Decimal `json:"budget,omitempty" gorm:"type:decimal(10,2);comment:计划预算"` CreateUserID uint64 `json:"createUserId,omitempty,string" gorm:"index;comment:创建人ID"` Status int `json:"status,omitempty" gorm:"comment:状态 -1-已废弃 1-未开始 2-进行中 3-已完成"` ActualStartTime int64 `json:"actualStartTime" gorm:"comment:实际开始时间"` ActualEndTime int64 `json:"actualEndTime" gorm:"comment:实际结束时间"` CreateTime int64 `json:"createTime" gorm:"autoCreateTime:milli"` UpdateTime int64 `json:"updateTime" gorm:"autoUpdateTime:milli"` DeleteTime gorm.DeletedAt `json:"deleteTime" gorm:"index"` }
func (*ProjectPlan) TableComment ¶
func (_ *ProjectPlan) TableComment() string
func (*ProjectPlan) UnmarshalJSON ¶
func (pp *ProjectPlan) UnmarshalJSON(b []byte) error
type ProjectRequirement ¶
type ProjectRequirement struct { ID uint64 `json:"id,omitempty,string" gorm:"primaryKey;autoIncrement:false"` ProjectID uint64 `json:"projectId,omitempty,string" gorm:"index;comment:项目ID"` ModuleID uint64 `json:"moduleId,omitempty,string" gorm:"index;comment:模块ID"` Name string `json:"name,omitempty" gorm:"size:50;comment:需求名称"` Detail string `json:"detail,omitempty" gorm:"comment:需求详情"` Type int `json:"type,omitempty" gorm:"comment:需求类型 1-功能 2-接口 3-性能 4-安全 5-体验 6-改进 7-其他"` Priority int `json:"priority,omitempty" gorm:"comment:优先级 1-低 2-中 3-高"` StageID uint64 `json:"stageId,omitempty,string" gorm:"index;comment:阶段ID"` Source int `json:"source,omitempty" gorm:"comment:来源 1-客户 2-内部"` OwnerID uint64 `json:"ownerId,omitempty,string" gorm:"index;comment:需求负责人ID"` Feasibility int `json:"feasibility,omitempty" gorm:"comment:可行性 -1-不可行 1-低 2-中 3-高"` Status int `json:"status,omitempty" gorm:"comment:状态 1-待设计 2-待评审 3-评审通过 9-已完成 -1-评审未通过"` 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 (*ProjectRequirement) TableComment ¶
func (_ *ProjectRequirement) TableComment() string
func (*ProjectRequirement) UnmarshalJSON ¶
func (pr *ProjectRequirement) UnmarshalJSON(b []byte) error
type ProjectRisk ¶
type ProjectRisk struct { ID uint64 `json:"id,omitempty,string" gorm:"primaryKey;autoIncrement:false"` ProjectID uint64 `json:"projectId,omitempty,string" gorm:"index;comment:项目ID"` StageID uint64 `json:"stageId,omitempty,string" gorm:"index;comment:阶段ID"` RiskName string `json:"riskName,omitempty" gorm:"size:50;comment:风险名称"` RiskDesc string `json:"riskDesc,omitempty" gorm:"comment:风险描述"` RiskProbability int `json:"riskProbability,omitempty" gorm:"comment:风险概率 1-低 2-中 3-高"` RiskImpact int `json:"riskImpact,omitempty" gorm:"comment:风险影响 1-低 2-中 3-高"` RiskLevel int `json:"riskLevel,omitempty" gorm:"comment:风险等级 1-低 2-中 3-高"` Status int `json:"status,omitempty" gorm:"comment:风险状态 1-已识别 2-已应对 3-已发生 4-已解决"` Response string `json:"response,omitempty" gorm:"comment:应对措施"` StartTime int64 `json:"startTime,omitempty" gorm:"comment:开始时间"` EndTime int64 `json:"endTime,omitempty" gorm:"comment:结束时间"` Result string `json:"result,omitempty" gorm:"comment:应对结果总结"` CreatorID uint64 `json:"creatorId,omitempty,string" gorm:"index;comment:创建人ID"` CreateTime int64 `json:"createTime" gorm:"autoCreateTime:milli"` UpdateTime int64 `json:"updateTime" gorm:"autoUpdateTime:milli"` DeleteTime gorm.DeletedAt `json:"deleteTime" gorm:"index"` }
func (*ProjectRisk) TableComment ¶
func (_ *ProjectRisk) TableComment() string
func (*ProjectRisk) UnmarshalJSON ¶
func (pr *ProjectRisk) UnmarshalJSON(b []byte) error
type Stage ¶
type Stage struct { ID uint64 `json:"id,omitempty,string" gorm:"primaryKey;autoIncrement:false"` Name string `json:"name,omitempty" gorm:"size:50;comment:阶段名称"` // 立项阶段、计划阶段、执行阶段、验收阶段、结项阶段... OrderNum int `json:"orderNum,omitempty" gorm:"comment:排序号"` Status int `json:"status,omitempty" gorm:"comment:状态 1-正常 2-禁用"` CreateTime int64 `json:"createTime" gorm:"autoCreateTime:milli"` UpdateTime int64 `json:"updateTime" gorm:"autoUpdateTime:milli"` DeleteTime gorm.DeletedAt `json:"deleteTime" gorm:"index"` }
func (*Stage) TableComment ¶
func (*Stage) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.