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

models.go 864 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package pcmsdk
  2. type ParticipantID int64
  3. type Participant struct {
  4. ID ParticipantID `json:"id"`
  5. Name string `json:"name"`
  6. Type string `json:"type"`
  7. }
  8. type ImageID string
  9. type Image struct {
  10. ImageID ImageID `json:"imageID"`
  11. ImageName string `json:"imageName"`
  12. ImageStatus string `json:"imageStatus"`
  13. }
  14. type ResourceID string
  15. type Resource struct {
  16. ParticipantID ParticipantID `json:"participantID"`
  17. ParticipantName string `json:"participantName"`
  18. SpecName string `json:"specName"`
  19. SpecID ResourceID `json:"specId"`
  20. SpecPrice float64 `json:"specPrice"`
  21. }
  22. type TaskID string
  23. type TaskStatus string
  24. const (
  25. TaskStatusPending TaskStatus = "Pending"
  26. TaskStatusRunning TaskStatus = "Running"
  27. TaskStatusSuccess TaskStatus = "succeeded"
  28. TaskStatusFailed TaskStatus = "failed"
  29. )