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_tracked_time.go 726B

123456789101112131415161718192021222324252627282930
  1. // Copyright 2017 The Gitea Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package structs
  5. import (
  6. "time"
  7. )
  8. // TrackedTime worked time for an issue / pr
  9. type TrackedTime struct {
  10. ID int64 `json:"id"`
  11. // swagger:strfmt date-time
  12. Created time.Time `json:"created"`
  13. // Time in seconds
  14. Time int64 `json:"time"`
  15. UserID int64 `json:"user_id"`
  16. IssueID int64 `json:"issue_id"`
  17. }
  18. // TrackedTimes represent a list of tracked times
  19. type TrackedTimes []*TrackedTime
  20. // AddTimeOption options for adding time to an issue
  21. type AddTimeOption struct {
  22. // time in seconds
  23. // required: true
  24. Time int64 `json:"time" binding:"Required"`
  25. }