requestargs.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. package datamodel
  2. type commonArg struct {
  3. Mid int64 `form:"mid"`
  4. }
  5. //GetFansSummaryArg arg to get fans
  6. type GetFansSummaryArg struct {
  7. Mid int64 `form:"mid"`
  8. }
  9. //FansSummaryResult result for fans result
  10. type FansSummaryResult struct {
  11. FanSummary FanSummaryData `json:"fan_summary"`
  12. }
  13. const (
  14. //DataType30Day 30 day
  15. DataType30Day = 1
  16. //DataTypeMonth by month
  17. DataTypeMonth = 2
  18. )
  19. //GetRelationFansHistoryArg arg
  20. type GetRelationFansHistoryArg struct {
  21. Mid int64 `form:"mid"`
  22. DataType int `form:"data_type"`
  23. }
  24. //GetRelationFansHistoryResult relation fan history
  25. type GetRelationFansHistoryResult struct {
  26. RelationFanHistoryData
  27. }
  28. // GetRelationFansMonthArg arg
  29. type GetRelationFansMonthArg = GetFansSummaryArg
  30. // GetRelationFansMonthResult relation fan history
  31. type GetRelationFansMonthResult struct {
  32. RelationFanHistoryData
  33. }
  34. //GetUpArchiveInfoArg arg
  35. type GetUpArchiveInfoArg struct {
  36. Mids string `form:"mids" validate:"required"`
  37. DataType int `form:"data_type"`
  38. }
  39. //GetUpArchiveInfoResult result, key = mid, value = data
  40. type GetUpArchiveInfoResult = map[int64]*UpArchiveData
  41. //GetUpArchiveTagInfoArg tag info
  42. type GetUpArchiveTagInfoArg = commonArg
  43. //GetUpArchiveTagInfoResult resutl
  44. type GetUpArchiveTagInfoResult = []*ViewerTagData
  45. //GetUpArchiveTypeInfoArg arg to get type
  46. type GetUpArchiveTypeInfoArg = commonArg
  47. //GetUpViewInfoArg get up view info data
  48. type GetUpViewInfoArg = commonArg