entity.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package image
  2. type PosterJson struct {
  3. Id string `json:"id"`
  4. Name string `json:"name"`
  5. Width uint `json:"w"`
  6. Height uint `json:"h"`
  7. Use string `json:"use"`
  8. Background string `json:"bgc"`
  9. BackgroundUrl string `json:"bgUrl"`
  10. Type string `json:"type"`
  11. Quality int `json:"quality"`
  12. Scale float64 `json:"scale"`
  13. Key string `json:"key"`
  14. Items []Items `json:"items"`
  15. }
  16. type Items struct {
  17. Type string `json:"t"`
  18. Remark string `json:"name"`
  19. UUID string `json:"uuid"`
  20. X int `json:"x"`
  21. Y int `json:"y"`
  22. Width uint `json:"w"`
  23. Height uint `json:"h"`
  24. ZIndex int `json:"z"`
  25. Angle int `json:"angle"`
  26. Size int `json:"s"`
  27. Color string `json:"c"`
  28. Background string `json:"bgc"`
  29. Value string `json:"v"`
  30. Name string `json:"vd"`
  31. Font string `json:"fn"`
  32. St int `json:"st"`
  33. Active bool `json:"active"`
  34. Lock bool `json:"lock"`
  35. AspectRatio bool `json:"aspectRatio"`
  36. P int `json:"p,omitempty"`
  37. Align *string `json:"a,omitempty"`
  38. Wrap *bool `json:"wrap,omitempty"`
  39. Bius *string `json:"bius,omitempty"`
  40. }