本站源代码
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

40 lines
1.1KB

  1. // Copyright 2016 The Gogs 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. // Milestone milestone is a collection of issues on one repository
  9. type Milestone struct {
  10. ID int64 `json:"id"`
  11. Title string `json:"title"`
  12. Description string `json:"description"`
  13. State StateType `json:"state"`
  14. OpenIssues int `json:"open_issues"`
  15. ClosedIssues int `json:"closed_issues"`
  16. // swagger:strfmt date-time
  17. Closed *time.Time `json:"closed_at"`
  18. // swagger:strfmt date-time
  19. Deadline *time.Time `json:"due_on"`
  20. }
  21. // CreateMilestoneOption options for creating a milestone
  22. type CreateMilestoneOption struct {
  23. Title string `json:"title"`
  24. Description string `json:"description"`
  25. // swagger:strfmt date-time
  26. Deadline *time.Time `json:"due_on"`
  27. }
  28. // EditMilestoneOption options for editing a milestone
  29. type EditMilestoneOption struct {
  30. Title string `json:"title"`
  31. Description *string `json:"description"`
  32. State *string `json:"state"`
  33. Deadline *time.Time `json:"due_on"`
  34. }
上海开阖软件有限公司 沪ICP备12045867号-1