You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

issue_stopwatch.go 616B

1234567891011121314151617181920212223
  1. // Copyright 2019 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package structs
  4. import (
  5. "time"
  6. )
  7. // StopWatch represent a running stopwatch
  8. type StopWatch struct {
  9. // swagger:strfmt date-time
  10. Created time.Time `json:"created"`
  11. Seconds int64 `json:"seconds"`
  12. Duration string `json:"duration"`
  13. IssueIndex int64 `json:"issue_index"`
  14. IssueTitle string `json:"issue_title"`
  15. RepoOwnerName string `json:"repo_owner_name"`
  16. RepoName string `json:"repo_name"`
  17. }
  18. // StopWatches represent a list of stopwatches
  19. type StopWatches []StopWatch