Documentation ¶
Index ¶
- type ApiAccessTokenRequest
- type ApiAccessTokenResponse
- type ApiUserResponse
- type Hours
- type PM
- type TestConnectionRequest
- type Whitelist
- type ZentaoBug
- type ZentaoBugRes
- type ZentaoConnection
- type ZentaoExecution
- type ZentaoExecutionRes
- type ZentaoProduct
- type ZentaoProductRes
- type ZentaoProject
- type ZentaoResponse
- type ZentaoStory
- type ZentaoStoryRes
- type ZentaoTask
- type ZentaoTaskRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiAccessTokenRequest ¶
type ApiAccessTokenResponse ¶
type ApiAccessTokenResponse struct {
Token string `json:"token"`
}
type ApiUserResponse ¶
Using User because it requires authentication.
type TestConnectionRequest ¶
type ZentaoBug ¶
type ZentaoBug struct { common.NoPKModel ConnectionId uint64 `gorm:"primaryKey;type:BIGINT NOT NULL"` ID uint64 `json:"id" gorm:"primaryKey;type:BIGINT NOT NULL"` Project uint64 `json:"project"` Product uint64 `json:"product"` Injection int `json:"injection"` Identify int `json:"identify"` Branch int `json:"branch"` Module int `json:"module"` Execution uint64 `json:"execution"` Plan int `json:"plan"` Story uint64 `json:"story"` StoryVersion int `json:"storyVersion"` Task int `json:"task"` ToTask int `json:"toTask"` ToStory uint64 `json:"toStory"` Title string `json:"title"` Keywords string `json:"keywords"` Severity int `json:"severity"` Pri int `json:"pri"` Type string `json:"type"` Os string `json:"os"` Browser string `json:"browser"` Hardware string `json:"hardware"` Found string `json:"found"` Steps string `json:"steps"` Status string `json:"status"` SubStatus string `json:"subStatus"` Color string `json:"color"` Confirmed int `json:"confirmed"` ActivatedCount int `json:"activatedCount"` ActivatedDate *time.Time `json:"activatedDate"` FeedbackBy string `json:"feedbackBy"` NotifyEmail string `json:"notifyEmail"` OpenedById uint64 OpenedByName string OpenedDate *time.Time `json:"openedDate"` OpenedBuild string `json:"openedBuild"` AssignedToId uint64 AssignedToName string AssignedDate *time.Time `json:"assignedDate"` Deadline string `json:"deadline"` ResolvedById uint64 Resolution string `json:"resolution"` ResolvedBuild string `json:"resolvedBuild"` ResolvedDate *time.Time `json:"resolvedDate"` ClosedById uint64 ClosedDate *time.Time `json:"closedDate"` DuplicateBug int `json:"duplicateBug"` LinkBug string `json:"linkBug"` Feedback int `json:"feedback"` Result int `json:"result"` Repo int `json:"repo"` Mr int `json:"mr"` Entry string `json:"entry"` NumOfLine string `json:"lines"` V1 string `json:"v1"` V2 string `json:"v2"` RepoType string `json:"repoType"` IssueKey string `json:"issueKey"` Testtask int `json:"testtask"` LastEditedById uint64 LastEditedDate *time.Time `json:"lastEditedDate"` Deleted bool `json:"deleted"` PriOrder string `json:"priOrder"` SeverityOrder int `json:"severityOrder"` Needconfirm bool `json:"needconfirm"` StatusName string `json:"statusName"` ProductStatus string `json:"productStatus"` }
type ZentaoBugRes ¶
type ZentaoBugRes struct { ID uint64 `json:"id"` Project uint64 `json:"project"` Product uint64 `json:"product"` Injection int `json:"injection"` Identify int `json:"identify"` Branch int `json:"branch"` Module int `json:"module"` Execution uint64 `json:"execution"` Plan int `json:"plan"` Story uint64 `json:"story"` StoryVersion int `json:"storyVersion"` Task int `json:"task"` ToTask int `json:"toTask"` ToStory uint64 `json:"toStory"` Title string `json:"title"` Keywords string `json:"keywords"` Severity int `json:"severity"` Pri int `json:"pri"` Type string `json:"type"` Os string `json:"os"` Browser string `json:"browser"` Hardware string `json:"hardware"` Found string `json:"found"` Steps string `json:"steps"` Status string `json:"status"` SubStatus string `json:"subStatus"` Color string `json:"color"` Confirmed int `json:"confirmed"` ActivatedCount int `json:"activatedCount"` ActivatedDate *time.Time `json:"activatedDate"` FeedbackBy string `json:"feedbackBy"` NotifyEmail string `json:"notifyEmail"` OpenedBy struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"openedBy"` OpenedDate *time.Time `json:"openedDate"` OpenedBuild string `json:"openedBuild"` AssignedTo struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"assignedTo"` AssignedDate *time.Time `json:"assignedDate"` Deadline string `json:"deadline"` ResolvedBy struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"resolvedBy"` Resolution string `json:"resolution"` ResolvedBuild string `json:"resolvedBuild"` ResolvedDate *time.Time `json:"resolvedDate"` ClosedBy struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"closedBy"` ClosedDate *time.Time `json:"closedDate"` DuplicateBug int `json:"duplicateBug"` LinkBug string `json:"linkBug"` Feedback int `json:"feedback"` Result int `json:"result"` Repo int `json:"repo"` Mr int `json:"mr"` Entry string `json:"entry"` NumOfLine string `json:"lines"` V1 string `json:"v1"` V2 string `json:"v2"` RepoType string `json:"repoType"` IssueKey string `json:"issueKey"` Testtask int `json:"testtask"` LastEditedBy struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"lastEditedBy"` LastEditedDate *time.Time `json:"lastEditedDate"` Deleted bool `json:"deleted"` PriOrder string `json:"priOrder"` SeverityOrder int `json:"severityOrder"` Needconfirm bool `json:"needconfirm"` StatusName string `json:"statusName"` ProductStatus string `json:"productStatus"` }
type ZentaoConnection ¶
type ZentaoConnection struct { helper.RestConnection `mapstructure:",squash"` //TODO you may need to use helper.BasicAuth instead of helper.AccessToken helper.BasicAuth `mapstructure:",squash"` }
TODO Please modify the following code to fit your needs This object conforms to what the frontend currently sends.
func (ZentaoConnection) TableName ¶
func (ZentaoConnection) TableName() string
type ZentaoExecution ¶
type ZentaoExecution struct { ConnectionId uint64 `gorm:"primaryKey;type:BIGINT NOT NULL"` Id uint64 `json:"id" gorm:"primaryKey;type:BIGINT NOT NULL"` Project uint64 `json:"project"` Model string `json:"model"` Type string `json:"type"` Lifetime string `json:"lifetime"` Budget string `json:"budget"` BudgetUnit string `json:"budgetUnit"` Attribute string `json:"attribute"` Percent int `json:"percent"` Milestone string `json:"milestone"` Output string `json:"output"` Auth string `json:"auth"` Parent uint64 `json:"parent"` Path string `json:"path"` Grade int `json:"grade"` Name string `json:"name"` Code string `json:"code"` PlanBegin string `json:"begin"` PlanEnd string `json:"end"` RealBegan *time.Time `json:"realBegan"` RealEnd *time.Time `json:"realEnd"` Days int `json:"days"` Status string `json:"status"` SubStatus string `json:"subStatus"` Pri string `json:"pri"` Description string `json:"desc"` Version int `json:"version"` ParentVersion int `json:"parentVersion"` PlanDuration int `json:"planDuration"` RealDuration int `json:"realDuration"` OpenedById uint64 OpenedDate *time.Time `json:"openedDate"` OpenedVersion string `json:"openedVersion"` LastEditedById uint64 LastEditedDate *time.Time `json:"lastEditedDate"` ClosedById uint64 ClosedDate *time.Time `json:"closedDate"` CanceledById uint64 CanceledDate *time.Time `json:"canceledDate"` SuspendedDate string `json:"suspendedDate"` POId uint64 PMId uint64 QDId uint64 RDId uint64 Team string `json:"team"` Acl string `json:"acl"` OrderIn int `json:"order"` Vision string `json:"vision"` DisplayCards int `json:"displayCards"` FluidBoard string `json:"fluidBoard"` Deleted bool `json:"deleted"` TotalHours int `json:"totalHours"` TotalEstimate int `json:"totalEstimate"` TotalConsumed int `json:"totalConsumed"` TotalLeft int `json:"totalLeft"` ProjectId uint64 Progress float64 `json:"progress"` CaseReview bool `json:"caseReview"` common.NoPKModel }
func (ZentaoExecution) TableName ¶
func (ZentaoExecution) TableName() string
type ZentaoExecutionRes ¶
type ZentaoExecutionRes struct { ID uint64 `json:"id"` Project uint64 `json:"project"` Model string `json:"model"` Type string `json:"type"` Lifetime string `json:"lifetime"` Budget string `json:"budget"` BudgetUnit string `json:"budgetUnit"` Attribute string `json:"attribute"` Percent int `json:"percent"` Milestone string `json:"milestone"` Output string `json:"output"` Auth string `json:"auth"` Parent uint64 `json:"parent"` Path string `json:"path"` Grade int `json:"grade"` Name string `json:"name"` Code string `json:"code"` PlanBegin string `json:"begin"` PlanEnd string `json:"end"` RealBegan *time.Time `json:"realBegan"` RealEnd *time.Time `json:"realEnd"` Days int `json:"days"` Status string `json:"status"` SubStatus string `json:"subStatus"` Pri string `json:"pri"` Description string `json:"desc"` Version int `json:"version"` ParentVersion int `json:"parentVersion"` PlanDuration int `json:"planDuration"` RealDuration int `json:"realDuration"` OpenedBy struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"openedBy"` OpenedDate *time.Time `json:"openedDate"` OpenedVersion string `json:"openedVersion"` LastEditedBy struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"lastEditedBy"` LastEditedDate *time.Time `json:"lastEditedDate"` ClosedBy struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"closedBy"` ClosedDate *time.Time `json:"closedDate"` CanceledBy struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"canceledBy"` CanceledDate *time.Time `json:"canceledDate"` SuspendedDate string `json:"suspendedDate"` PO struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"PO"` PM struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"PM"` QD struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"QD"` RD struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"RD"` Team string `json:"team"` Acl string `json:"acl"` Whitelist []struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"whitelist"` OrderIn int `json:"order"` Vision string `json:"vision"` DisplayCards int `json:"displayCards"` FluidBoard string `json:"fluidBoard"` Deleted bool `json:"deleted"` TotalHours int `json:"totalHours"` TotalEstimate int `json:"totalEstimate"` TotalConsumed int `json:"totalConsumed"` TotalLeft int `json:"totalLeft"` ProjectInfo struct { ID uint64 `json:"id"` Project uint64 `json:"project"` Model string `json:"model"` Type string `json:"type"` Lifetime string `json:"lifetime"` Budget string `json:"budget"` BudgetUnit string `json:"budgetUnit"` Attribute string `json:"attribute"` Percent int `json:"percent"` Milestone string `json:"milestone"` Output string `json:"output"` Auth string `json:"auth"` Parent uint64 `json:"parent"` Path string `json:"path"` Grade int `json:"grade"` Name string `json:"name"` Code string `json:"code"` PlanBegin string `json:"begin"` PlanEnd string `json:"end"` RealBegan string `json:"realBegan"` RealEnd string `json:"realEnd"` Days int `json:"days"` Status string `json:"status"` SubStatus string `json:"subStatus"` Pri string `json:"pri"` Description string `json:"desc"` Version int `json:"version"` ParentVersion int `json:"parentVersion"` PlanDuration int `json:"planDuration"` RealDuration int `json:"realDuration"` OpenedBy string `json:"openedBy"` OpenedDate string `json:"openedDate"` OpenedVersion string `json:"openedVersion"` LastEditedBy string `json:"lastEditedBy"` LastEditedDate string `json:"lastEditedDate"` ClosedBy string `json:"closedBy"` ClosedDate string `json:"closedDate"` CanceledBy string `json:"canceledBy"` CanceledDate string `json:"canceledDate"` SuspendedDate string `json:"suspendedDate"` PO string `json:"PO"` PM string `json:"PM"` QD string `json:"QD"` RD string `json:"RD"` Team string `json:"team"` Acl string `json:"acl"` Whitelist string `json:"whitelist"` OrderIn int `json:"order"` Vision string `json:"vision"` DisplayCards int `json:"displayCards"` FluidBoard string `json:"fluidBoard"` Deleted string `json:"deleted"` } `json:"projectInfo"` Progress float64 `json:"progress"` TeamMembers []struct { ID uint64 `json:"id"` Root int `json:"root"` Type string `json:"type"` Account string `json:"account"` Role string `json:"role"` Position string `json:"position"` Limited string `json:"limited"` Join string `json:"join"` Days int `json:"days"` Hours int `json:"hours"` Estimate string `json:"estimate"` Consumed string `json:"consumed"` Left string `json:"left"` OrderIn int `json:"order"` TotalHours int `json:"totalHours"` UserID uint64 `json:"userID"` Realname string `json:"realname"` } `json:"teamMembers"` Products []struct { ID uint64 `json:"id"` Name string `json:"name"` Plans []interface{} `json:"plans"` } `json:"products"` CaseReview bool `json:"caseReview"` }
type ZentaoProduct ¶
type ZentaoProduct struct { ConnectionId uint64 `gorm:"primaryKey;type:BIGINT NOT NULL"` Id uint64 `json:"id" gorm:"primaryKey;type:BIGINT NOT NULL"` Program int `json:"program"` Name string `json:"name"` Code string `json:"code"` Bind string `json:"bind"` Line int `json:"line"` Type string `json:"type"` Status string `json:"status"` SubStatus string `json:"subStatus"` Description string `json:"desc"` POId uint64 QDId uint64 RDId uint64 Acl string `json:"acl"` Reviewer string `json:"reviewer"` CreatedById uint64 CreatedDate *time.Time `json:"createdDate"` CreatedVersion string `json:"createdVersion"` OrderIn int `json:"order"` Deleted string `json:"deleted"` Plans int `json:"plans"` Releases int `json:"releases"` Builds int `json:"builds"` Cases int `json:"cases"` Projects int `json:"projects"` Executions int `json:"executions"` Bugs int `json:"bugs"` Docs int `json:"docs"` Progress float64 `json:"progress"` CaseReview bool `json:"caseReview"` common.NoPKModel }
func (ZentaoProduct) TableName ¶
func (ZentaoProduct) TableName() string
type ZentaoProductRes ¶
type ZentaoProductRes struct { ID uint64 `json:"id"` Program int `json:"program"` Name string `json:"name"` Code string `json:"code"` Bind string `json:"bind"` Line int `json:"line"` Type string `json:"type"` Status string `json:"status"` SubStatus string `json:"subStatus"` Description string `json:"desc"` PO struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"PO"` QD struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"QD"` RD struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"RD"` Feedback interface{} `json:"feedback"` Acl string `json:"acl"` Whitelist []interface{} `json:"whitelist"` Reviewer string `json:"reviewer"` CreatedBy struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"createdBy"` CreatedDate *time.Time `json:"createdDate"` CreatedVersion string `json:"createdVersion"` OrderIn int `json:"order"` Vision string `json:"vision"` Deleted string `json:"deleted"` Stories struct { Active int `json:"active"` Reviewing int `json:"reviewing"` Draft int `json:"draft"` Closed int `json:"closed"` Changing int `json:"changing"` // contains filtered or unexported fields } `json:"stories"` Plans int `json:"plans"` Releases int `json:"releases"` Builds int `json:"builds"` Cases int `json:"cases"` Projects int `json:"projects"` Executions int `json:"executions"` Bugs int `json:"bugs"` Docs int `json:"docs"` Progress float64 `json:"progress"` CaseReview bool `json:"caseReview"` }
type ZentaoProject ¶
type ZentaoProject struct { common.NoPKModel ConnectionId uint64 `gorm:"primaryKey;type:BIGINT NOT NULL"` ID uint64 `json:"id" gorm:"primaryKey;type:BIGINT NOT NULL"` Project uint64 `json:"project"` Model string `json:"model"` Type string `json:"type"` Lifetime string `json:"lifetime"` Budget string `json:"budget"` BudgetUnit string `json:"budgetUnit"` Attribute string `json:"attribute"` Percent int `json:"percent"` Milestone string `json:"milestone"` Output string `json:"output"` Auth string `json:"auth"` Parent uint64 `json:"parent"` Path string `json:"path"` Grade int `json:"grade"` Name string `json:"name"` Code string `json:"code"` PlanBegin string `json:"begin"` PlanEnd string `json:"end"` RealBegan string `json:"realBegan"` RealEnd string `json:"realEnd"` Days int `json:"days"` Status string `json:"status"` SubStatus string `json:"subStatus"` Pri string `json:"pri"` Description string `json:"desc"` Version int `json:"version"` ParentVersion int `json:"parentVersion"` PlanDuration int `json:"planDuration"` RealDuration int `json:"realDuration"` //OpenedBy string `json:"openedBy"` OpenedDate *time.Time `json:"openedDate"` OpenedVersion string `json:"openedVersion"` LastEditedBy string `json:"lastEditedBy"` LastEditedDate **time.Time `json:"lastEditedDate"` ClosedBy string `json:"closedBy"` ClosedDate **time.Time `json:"closedDate"` CanceledBy string `json:"canceledBy"` CanceledDate **time.Time `json:"canceledDate"` SuspendedDate string `json:"suspendedDate"` PO string `json:"PO"` PM `json:"PM"` QD string `json:"QD"` RD string `json:"RD"` Team string `json:"team"` Acl string `json:"acl"` Whitelist `json:"whitelist" gorm:"-"` OrderIn int `json:"order"` Vision string `json:"vision"` DisplayCards int `json:"displayCards"` FluidBoard string `json:"fluidBoard"` Deleted bool `json:"deleted"` Delay int `json:"delay"` Hours `json:"hours"` TeamCount int `json:"teamCount"` LeftTasks string `json:"leftTasks"` //TeamMembers []interface{} `json:"teamMembers" gorm:"-"` TotalEstimate int `json:"totalEstimate"` TotalConsumed int `json:"totalConsumed"` TotalLeft int `json:"totalLeft"` Progress float64 `json:"progress"` TotalReal int `json:"totalReal"` }
func (ZentaoProject) TableName ¶
func (ZentaoProject) TableName() string
type ZentaoResponse ¶
type ZentaoResponse struct { Name string `json:"name"` ID uint64 `json:"id"` ZentaoConnection }
This object conforms to what the frontend currently expects.
type ZentaoStory ¶
type ZentaoStory struct { common.NoPKModel ConnectionId uint64 `gorm:"primaryKey;type:BIGINT NOT NULL"` ID uint64 `json:"id" gorm:"primaryKey;type:BIGINT NOT NULL" ` Product uint64 `json:"product"` Branch int `json:"branch"` Version int `json:"version"` OrderIn int `json:"order"` Vision string `json:"vision"` Parent uint64 `json:"parent"` Module int `json:"module"` Plan string `json:"plan"` Source string `json:"source"` SourceNote string `json:"sourceNote"` FromBug int `json:"fromBug"` Feedback int `json:"feedback"` Title string `json:"title"` Keywords string `json:"keywords"` Type string `json:"type"` Category string `json:"category"` Pri int `json:"pri"` Estimate int `json:"estimate"` Status string `json:"status"` SubStatus string `json:"subStatus"` Color string `json:"color"` Stage string `json:"stage"` //Mailto []interface{} `json:"mailto"` Lib int `json:"lib"` FromStory uint64 `json:"fromStory"` FromVersion int `json:"fromVersion"` OpenedById uint64 OpenedByName string OpenedDate *time.Time `json:"openedDate"` AssignedToId uint64 AssignedToName string AssignedDate *time.Time `json:"assignedDate"` ApprovedDate string `json:"approvedDate"` LastEditedId uint64 LastEditedDate *time.Time `json:"lastEditedDate"` ChangedDate string `json:"changedDate"` ReviewedById uint64 `json:"reviewedBy"` ReviewedDate *time.Time `json:"reviewedDate"` ClosedId uint64 ClosedDate *time.Time `json:"closedDate"` ClosedReason string `json:"closedReason"` ActivatedDate string `json:"activatedDate"` ToBug int `json:"toBug"` ChildStories string `json:"childStories"` LinkStories string `json:"linkStories"` LinkRequirements string `json:"linkRequirements"` DuplicateStory uint64 `json:"duplicateStory"` StoryChanged string `json:"storyChanged"` FeedbackBy string `json:"feedbackBy"` NotifyEmail string `json:"notifyEmail"` URChanged string `json:"URChanged"` Deleted bool `json:"deleted"` PriOrder string `json:"priOrder"` PlanTitle string `json:"planTitle"` }
func (ZentaoStory) TableName ¶
func (ZentaoStory) TableName() string
type ZentaoStoryRes ¶
type ZentaoStoryRes struct { ID uint64 `json:"id"` Vision string `json:"vision"` Parent uint64 `json:"parent"` Product uint64 `json:"product"` Branch int `json:"branch"` Module int `json:"module"` Plan string `json:"plan"` Source string `json:"source"` SourceNote string `json:"sourceNote"` FromBug int `json:"fromBug"` Feedback int `json:"feedback"` Title string `json:"title"` Keywords string `json:"keywords"` Type string `json:"type"` Category string `json:"category"` Pri int `json:"pri"` Estimate int `json:"estimate"` Status string `json:"status"` SubStatus string `json:"subStatus"` Color string `json:"color"` Stage string `json:"stage"` Mailto []interface{} `json:"mailto"` Lib int `json:"lib"` FromStory uint64 `json:"fromStory"` FromVersion int `json:"fromVersion"` OpenedBy struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"openedBy"` OpenedDate *time.Time `json:"openedDate"` AssignedTo struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"assignedTo"` AssignedDate *time.Time `json:"assignedDate"` ApprovedDate string `json:"approvedDate"` LastEditedBy struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"lastEditedBy"` LastEditedDate *time.Time `json:"lastEditedDate"` ChangedBy string `json:"changedBy"` ChangedDate string `json:"changedDate"` ReviewedBy struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"reviewedBy"` ReviewedDate *time.Time `json:"reviewedDate"` ClosedBy struct { ID uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"closedBy"` ClosedDate *time.Time `json:"closedDate"` ClosedReason string `json:"closedReason"` ActivatedDate string `json:"activatedDate"` ToBug int `json:"toBug"` ChildStories string `json:"childStories"` LinkStories string `json:"linkStories"` LinkRequirements string `json:"linkRequirements"` DuplicateStory uint64 `json:"duplicateStory"` Version int `json:"version"` StoryChanged string `json:"storyChanged"` FeedbackBy string `json:"feedbackBy"` NotifyEmail string `json:"notifyEmail"` URChanged string `json:"URChanged"` Deleted bool `json:"deleted"` PriOrder string `json:"priOrder"` PlanTitle string `json:"planTitle"` ProductStatus string `json:"productStatus"` }
type ZentaoTask ¶
type ZentaoTask struct { common.NoPKModel ConnectionId uint64 `gorm:"primaryKey;type:BIGINT NOT NULL"` ExecutionId uint64 `json:"execution_id"` ID uint64 `json:"id" gorm:"primaryKey;type:BIGINT NOT NULL"` Project uint64 `json:"project"` Parent uint64 `json:"parent"` Execution uint64 `json:"execution"` Module int `json:"module"` Design int `json:"design"` Story uint64 `json:"story"` StoryVersion int `json:"storyVersion"` DesignVersion int `json:"designVersion"` FromBug int `json:"fromBug"` Feedback int `json:"feedback"` FromIssue int `json:"fromIssue"` Name string `json:"name"` Type string `json:"type"` Mode string `json:"mode"` Pri int `json:"pri"` Estimate int `json:"estimate"` Consumed int `json:"consumed"` Deadline string `json:"deadline"` Status string `json:"status"` SubStatus string `json:"subStatus"` Color string `json:"color"` //Mailto interface{} `json:"mailto"` Description string `json:"desc"` Version int `json:"version"` OpenedById uint64 OpenedByName string OpenedDate *time.Time `json:"openedDate"` AssignedToId uint64 AssignedToName string AssignedDate *time.Time `json:"assignedDate"` EstStarted string `json:"estStarted"` RealStarted *time.Time `json:"realStarted"` FinishedId uint64 FinishedDate *time.Time `json:"finishedDate"` FinishedList string `json:"finishedList"` CanceledId uint64 CanceledDate *time.Time `json:"canceledDate"` ClosedById uint64 ClosedDate *time.Time `json:"closedDate"` PlanDuration int `json:"planDuration"` RealDuration int `json:"realDuration"` ClosedReason string `json:"closedReason"` LastEditedId uint64 LastEditedDate *time.Time `json:"lastEditedDate"` ActivatedDate string `json:"activatedDate"` OrderIn int `json:"order"` Repo int `json:"repo"` Mr int `json:"mr"` Entry string `json:"entry"` NumOfLine string `json:"lines"` V1 string `json:"v1"` V2 string `json:"v2"` Deleted bool `json:"deleted"` Vision string `json:"vision"` StoryID uint64 `json:"storyID"` StoryTitle string `json:"storyTitle"` Branch int `json:"branch"` LatestStoryVersion int `json:"latestStoryVersion"` StoryStatus string `json:"storyStatus"` AssignedToRealName string `json:"assignedToRealName"` PriOrder string `json:"priOrder"` NeedConfirm bool `json:"needConfirm"` Progress float64 `json:"progress"` }
func (ZentaoTask) TableName ¶
func (ZentaoTask) TableName() string
type ZentaoTaskRes ¶
type ZentaoTaskRes struct { Id uint64 `json:"id"` Project uint64 `json:"project"` Parent uint64 `json:"parent"` Execution uint64 `json:"execution"` Module int `json:"module"` Design int `json:"design"` Story uint64 `json:"story"` StoryVersion int `json:"storyVersion"` DesignVersion int `json:"designVersion"` FromBug int `json:"fromBug"` Feedback int `json:"feedback"` FromIssue int `json:"fromIssue"` Name string `json:"name"` Type string `json:"type"` Mode string `json:"mode"` Pri int `json:"pri"` Estimate int `json:"estimate"` Consumed int `json:"consumed"` Deadline string `json:"deadline"` Status string `json:"status"` SubStatus string `json:"subStatus"` Color string `json:"color"` Mailto []struct { Id uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"mailto"` Description string `json:"desc"` Version int `json:"version"` OpenedBy struct { Id uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"openedBy"` OpenedDate *time.Time `json:"openedDate"` AssignedTo struct { Id uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"assignedTo"` AssignedDate *time.Time `json:"assignedDate"` EstStarted string `json:"estStarted"` RealStarted *time.Time `json:"realStarted"` FinishedBy struct { Id uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"finishedBy"` FinishedDate *time.Time `json:"finishedDate"` FinishedList string `json:"finishedList"` CanceledBy struct { Id uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"canceledBy"` CanceledDate *time.Time `json:"canceledDate"` ClosedBy struct { Id uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"closedBy"` ClosedDate *time.Time `json:"closedDate"` PlanDuration int `json:"planDuration"` RealDuration int `json:"realDuration"` ClosedReason string `json:"closedReason"` LastEditedBy struct { Id uint64 `json:"id"` Account string `json:"account"` Avatar string `json:"avatar"` Realname string `json:"realname"` } `json:"lastEditedBy"` LastEditedDate *time.Time `json:"lastEditedDate"` ActivatedDate string `json:"activatedDate"` OrderIn int `json:"order"` Repo int `json:"repo"` Mr int `json:"mr"` Entry string `json:"entry"` NumOfLine string `json:"lines"` V1 string `json:"v1"` V2 string `json:"v2"` Deleted bool `json:"deleted"` Vision string `json:"vision"` StoryID uint64 `json:"storyID"` StoryTitle string `json:"storyTitle"` Branch interface { } `json:"branch"` LatestStoryVersion interface { } `json:"latestStoryVersion"` StoryStatus interface { } `json:"storyStatus"` AssignedToRealName string `json:"assignedToRealName"` PriOrder string `json:"priOrder"` Delay int `json:"delay"` NeedConfirm bool `json:"needConfirm"` Progress float64 `json:"progress"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.