model.go 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. package model
  2. import "time"
  3. // IssueRecord Issue Record.
  4. type IssueRecord struct {
  5. ID int64 `json:"id" gorm:"column:id"`
  6. IssueNo string `json:"issue_no" gorm:"column:issue_no"`
  7. Title string `json:"title" gorm:"column:title"`
  8. ExceptionMsg string `json:"exception_msg" gorm:"column:exception_msg"`
  9. KeyStack string `json:"key_stack" gorm:"column:key_stack"`
  10. Detail string `json:"detail" gorm:"column:detail"`
  11. Tags string `json:"tags" gorm:"column:tags"`
  12. LastTime time.Time `json:"last_time" gorm:"column:last_time"`
  13. HappenTimes int64 `json:"happen_times" gorm:"column:happen_times"`
  14. UserTimes int64 `json:"user_times" gorm:"column:user_times"`
  15. Version string `json:"version" gorm:"column:version"`
  16. ProjectID string `json:"project_id" gorm:"column:project_id"`
  17. IssueLink string `json:"issue_link" gorm:"column:issue_link"`
  18. TapdBugID string `json:"tapd_bug_id" gorm:"column:tapd_bug_id"`
  19. }
  20. // IssueLastTime Issue Last Time.
  21. type IssueLastTime struct {
  22. ID int64 `json:"id" gorm:"column:id"`
  23. LastTime time.Time `json:"last_time" gorm:"column:last_time"`
  24. Version string `json:"version" gorm:"column:version"`
  25. //1-正在执行中,0未执行或已执行完
  26. TaskStatus int `json:"task_status" gorm:"column:task_status"`
  27. LastIssue string `json:"last_issue" gorm:"column:last_issue"`
  28. }
  29. // BugTemplate BugTemplate.
  30. type BugTemplate struct {
  31. ID int64 `json:"id" gorm:"column:id"`
  32. WorkspaceID string `json:"workspace_id" gorm:"column:workspace_id"`
  33. ProjectID string `json:"project_id" gorm:"column:project_id"`
  34. PlatformID string `json:"platform_id" gorm:"column:platform_id"`
  35. Title string `json:"title" gorm:"column:title"`
  36. Description string `json:"description" gorm:"column:description"`
  37. CurrentOwner string `json:"current_owner" gorm:"column:current_owner"`
  38. Platform string `json:"platform" gorm:"column:platform"`
  39. Module string `json:"module" gorm:"column:module"`
  40. ReleaseID string `json:"release_id" gorm:"column:release_id"`
  41. Priority string `json:"priority" gorm:"column:priority"`
  42. Severity string `json:"severity" gorm:"column:severity"`
  43. Source string `json:"source" gorm:"column:source"`
  44. CustomFieldFour string `json:"custom_field_four" gorm:"column:custom_field_four"`
  45. BugType string `json:"bugtype" gorm:"column:bugtype"`
  46. OriginPhase string `json:"originphase" gorm:"column:originphase"`
  47. CustomFieldThree string `json:"custom_field_three" gorm:"column:custom_field_three"`
  48. Reporter string `json:"reporter" gorm:"column:reporter"`
  49. Status string `json:"status" gorm:"column:status"`
  50. IssueFilterSQL string `json:"issue_filter_sql" gorm:"column:issue_filter_sql"`
  51. SeverityKey string `json:"severity_key" gorm:"column:severity_key"`
  52. }
  53. // StoryWallTimeModel Story Wall Time Model.
  54. type StoryWallTimeModel struct {
  55. StepStartTime time.Time
  56. StepEndTime time.Time
  57. }