rpc.go 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. package model
  2. // ArgMid mid
  3. type ArgMid struct {
  4. Mid int64 `json:"mid" form:"mid" validate:"required" params:"mid;Required;Min(1)"`
  5. RealIP string
  6. }
  7. // ArgSameFollowing is
  8. type ArgSameFollowing struct {
  9. Mid1 int64 `json:"mid1" form:"mid1" validate:"required" params:"mid1;Required;Min(1)"`
  10. Mid2 int64 `json:"mid2" form:"mid2" validate:"required" params:"mid2;Required;Min(1)"`
  11. }
  12. // ArgMids mids
  13. type ArgMids struct {
  14. Mids []int64
  15. RealIP string
  16. }
  17. // ArgFollowing following
  18. type ArgFollowing struct {
  19. Mid int64
  20. Fid int64 `json:"fid" form:"fid" validate:"required" params:"fid;Required;Min(1)"`
  21. Source uint8
  22. RealIP string
  23. Action int8
  24. Infoc map[string]string
  25. }
  26. // ArgRelation relation
  27. type ArgRelation struct {
  28. Mid, Fid int64
  29. RealIP string
  30. }
  31. // ArgRelations relations
  32. type ArgRelations struct {
  33. Mid int64
  34. Fids []int64
  35. RealIP string
  36. }
  37. // ArgTag tag
  38. type ArgTag struct {
  39. Mid int64
  40. Tag string
  41. RealIP string
  42. }
  43. // ArgTagId tag id
  44. type ArgTagId struct {
  45. Mid int64
  46. TagId int64
  47. RealIP string
  48. }
  49. // ArgTagDel tag del
  50. type ArgTagDel struct {
  51. Mid int64
  52. TagId int64
  53. RealIP string
  54. }
  55. // ArgTagUpdate tag update
  56. type ArgTagUpdate struct {
  57. Mid int64
  58. TagId int64
  59. New string
  60. RealIP string
  61. }
  62. // ArgTagsMoveUsers tags move users
  63. type ArgTagsMoveUsers struct {
  64. Mid int64
  65. BeforeID int64
  66. AfterTagIds string
  67. Fids string
  68. RealIP string
  69. }
  70. // ArgPrompt rpc promt arg.
  71. type ArgPrompt struct {
  72. Mid int64 `form:"mid" params:"mid"`
  73. Fid int64 `form:"fid" validate:"required" params:"fid;Required;Min(1)"`
  74. Btype int8 `form:"btype" validate:"required,min=1" params:"btype;Required;Min(1)"`
  75. }
  76. // ArgAchieveGet is
  77. type ArgAchieveGet struct {
  78. Award string `form:"award" validate:"required"`
  79. Mid int64 `form:"mid" validate:"required"`
  80. }
  81. // ArgAchieve is
  82. type ArgAchieve struct {
  83. AwardToken string `form:"award_token" validate:"required"`
  84. }
  85. // FollowerNotifySetting show the follower-notify setting state
  86. type FollowerNotifySetting struct {
  87. Mid int64 `json:"mid"`
  88. Enabled bool `json:"enabled"`
  89. }