dashboard.go 858 B

12345678910111213141516171819202122232425262728293031
  1. package ut
  2. import (
  3. "go-common/library/time"
  4. )
  5. // PCurveReq is
  6. type PCurveReq struct {
  7. User string `form:"user"`
  8. Path string `form:"path"`
  9. StartTime int64 `form:"start_time"`
  10. EndTime int64 `form:"end_time"`
  11. }
  12. // PCurveResp .
  13. type PCurveResp struct {
  14. Pkg string `gorm:"column:pkg" json:"pkg,omitempty"`
  15. Coverage float64 `gorm:"column:coverage" json:"coverage"`
  16. Assertions int64 `gorm:"column:assertions" json:"assertions"`
  17. Failures int64 `gorm:"column:failures" json:"failures"`
  18. Panics int64 `gorm:"column:panics" json:"panics"`
  19. Passed int64 `gorm:"column:passed" json:"passed"`
  20. PassRate float64 `gorm:"-" json:"pass_rate"`
  21. MTime time.Time `gorm:"column:mtime" json:"mtime"`
  22. }
  23. // PCurveDetailResp .
  24. type PCurveDetailResp struct {
  25. PCurveResp
  26. Username string `json:"username"`
  27. }