projects.go 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package types
  2. type Self struct{
  3. Href string `json:"href"`
  4. Title string `json:"title"`
  5. }
  6. type Links struct{
  7. Self Self `json:"self"`
  8. CreateWorkPackage CreateWorkPackage `json:"createWorkPackage"`
  9. CreateWorkPackageImmediate CreateWorkPackage `json:"createWorkPackageImmediate"`
  10. Categories Categories `json:"categories"`
  11. Versions Categories `json:"versions"`
  12. Projects Categories `json:"projects"`
  13. Status Self `json:"status"`
  14. }
  15. type CreateWorkPackage struct {
  16. Href string `json:"href"`
  17. Method string `json:"method"`
  18. }
  19. type Categories struct {
  20. Href string `json:"href"`
  21. }
  22. type StatusExplanation struct {
  23. Format string `json:"format"`
  24. Raw string `json:"raw"`
  25. Html string `json:"html"`
  26. }
  27. type Element struct {
  28. Type string `json:"_type"`
  29. Links Links `json:"_links"`
  30. Id int `json:"id"`
  31. Identifier string `json:"identifier"`
  32. Name string `json:"name"`
  33. Active string `json:"active"`
  34. StatusExplanation StatusExplanation `json:"statusExplanation"`
  35. Public bool `json:"public"`
  36. Description StatusExplanation `json:"description"`
  37. CreatedAt string `json:"createdAt"`
  38. UpdatedAt string `json:"updatedAt"`
  39. ProjectType string `json:"type"`
  40. Subject string `json:"subject"`
  41. }
  42. type Projects struct {
  43. Links Links `json:"_links"`
  44. Type string `json:"_type"`
  45. Total int64 `json:"total"`
  46. Count int64 `json:"count"`
  47. Embedded struct{
  48. Elements []Element `json:"elements"`
  49. } `json:"_embedded"`
  50. }