share.go 624 B

123456789101112131415161718192021222324252627282930313233
  1. package v1
  2. // Tuple .
  3. type Tuple struct {
  4. Key string
  5. Val string
  6. }
  7. // ShareRequest .
  8. type ShareRequest struct {
  9. Svid int64 `form:"svid"`
  10. Channel int32 `form:"share_channel"`
  11. }
  12. // ShareResponse .
  13. type ShareResponse struct {
  14. URL []*Tuple `json:"url"`
  15. Params []*Tuple `json:"params"`
  16. }
  17. // ShareCallbackRequest .
  18. type ShareCallbackRequest struct {
  19. Svid int64 `form:"svid"`
  20. URL string `form:"url"`
  21. Type string `form:"type"`
  22. Ctime int64 `form:"ctime"`
  23. Channel int32 `form:"share_channel"`
  24. }
  25. // ShareCallbackResponse struct
  26. type ShareCallbackResponse struct {
  27. ShareCount int32 `json:"share"`
  28. }