advance.go 996 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package model
  2. // all variable used in advance dm
  3. const (
  4. // mode
  5. AdvSpeMode = "sp" // mode 7
  6. AdvMode = "advance" // mode8 mode9
  7. AdvModeAll = "all"
  8. // type
  9. AdvTypeRequest = "request"
  10. AdvTypeAccept = "accept"
  11. AdvTypeDeny = "deny"
  12. AdvTypeAll = "all"
  13. )
  14. // Advance advance dm list
  15. type Advance struct {
  16. ID int64 `json:"id"` //高级弹幕ID
  17. Type string `json:"bType"` //处理结果
  18. Mode string `json:"mode"` //"sp" or 'advance"
  19. Mid int64 `json:"mid"` //申请人ID
  20. Timestamp int64 `json:"timestamp"` //申请时间
  21. Name string `json:"name"` //申请人昵称
  22. }
  23. // AdvanceRes advance dm list result including page info
  24. type AdvanceRes struct {
  25. Result []*Advance `json:"result"`
  26. Page *PageInfo `json:"page"`
  27. }
  28. // PageInfo page info
  29. type PageInfo struct {
  30. Num int64 `json:"num"`
  31. Size int64 `json:"size"`
  32. Total int64 `json:"total"`
  33. }
  34. // ArgMids advance dm mids
  35. type ArgMids struct {
  36. Mids []int64
  37. }