data.go 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. package http
  2. import (
  3. "context"
  4. "go-common/app/interface/main/mcn/model/mcnmodel"
  5. "go-common/library/net/http/blademaster"
  6. )
  7. func mcnGetMcnGetIndexInc(c *blademaster.Context) {
  8. oarg := new(mcnmodel.McnGetIndexIncReq)
  9. httpGetFunc(
  10. oarg,
  11. func(context context.Context, arg interface{}) (res interface{}, err error) {
  12. return srv.GetMcnGetIndexInc(context, arg.(*mcnmodel.McnGetIndexIncReq))
  13. },
  14. "GetMcnGetIndexInc",
  15. []preBindFuncType{getCookieMid(c, oarg)},
  16. []preHandleFuncType{cheatReq},
  17. )(c)
  18. }
  19. func mcnGetMcnGetIndexSource(c *blademaster.Context) {
  20. oarg := new(mcnmodel.McnGetIndexSourceReq)
  21. httpGetFunc(
  22. oarg,
  23. func(context context.Context, arg interface{}) (res interface{}, err error) {
  24. return srv.GetMcnGetIndexSource(context, arg.(*mcnmodel.McnGetIndexSourceReq))
  25. },
  26. "GetMcnGetIndexSource",
  27. []preBindFuncType{getCookieMid(c, oarg)},
  28. []preHandleFuncType{cheatReq},
  29. )(c)
  30. }
  31. func mcnGetPlaySource(c *blademaster.Context) {
  32. oarg := new(mcnmodel.McnGetPlaySourceReq)
  33. httpGetFunc(
  34. oarg,
  35. func(context context.Context, arg interface{}) (res interface{}, err error) {
  36. return srv.GetPlaySource(context, arg.(*mcnmodel.McnGetPlaySourceReq))
  37. },
  38. "GetPlaySource",
  39. []preBindFuncType{getCookieMid(c, oarg)},
  40. []preHandleFuncType{cheatReq},
  41. )(c)
  42. }
  43. func mcnGetMcnFans(c *blademaster.Context) {
  44. oarg := new(mcnmodel.McnGetMcnFansReq)
  45. httpGetFunc(
  46. oarg,
  47. func(context context.Context, arg interface{}) (res interface{}, err error) {
  48. return srv.GetMcnFans(context, arg.(*mcnmodel.McnGetMcnFansReq))
  49. },
  50. "GetMcnFans",
  51. []preBindFuncType{getCookieMid(c, oarg)},
  52. []preHandleFuncType{cheatReq},
  53. )(c)
  54. }
  55. func mcnGetMcnFansInc(c *blademaster.Context) {
  56. oarg := new(mcnmodel.McnGetMcnFansIncReq)
  57. httpGetFunc(
  58. oarg,
  59. func(context context.Context, arg interface{}) (res interface{}, err error) {
  60. return srv.GetMcnFansInc(context, arg.(*mcnmodel.McnGetMcnFansIncReq))
  61. },
  62. "GetMcnFansInc",
  63. []preBindFuncType{getCookieMid(c, oarg)},
  64. []preHandleFuncType{cheatReq},
  65. )(c)
  66. }
  67. func mcnGetMcnFansDec(c *blademaster.Context) {
  68. oarg := new(mcnmodel.McnGetMcnFansDecReq)
  69. httpGetFunc(
  70. oarg,
  71. func(context context.Context, arg interface{}) (res interface{}, err error) {
  72. return srv.GetMcnFansDec(context, arg.(*mcnmodel.McnGetMcnFansDecReq))
  73. },
  74. "GetMcnFansDec",
  75. []preBindFuncType{getCookieMid(c, oarg)},
  76. []preHandleFuncType{cheatReq},
  77. )(c)
  78. }
  79. func mcnGetMcnFansAttentionWay(c *blademaster.Context) {
  80. oarg := new(mcnmodel.McnGetMcnFansAttentionWayReq)
  81. httpGetFunc(
  82. oarg,
  83. func(context context.Context, arg interface{}) (res interface{}, err error) {
  84. return srv.GetMcnFansAttentionWay(context, arg.(*mcnmodel.McnGetMcnFansAttentionWayReq))
  85. },
  86. "GetMcnFansAttentionWay",
  87. []preBindFuncType{getCookieMid(c, oarg)},
  88. []preHandleFuncType{cheatReq},
  89. )(c)
  90. }
  91. func mcnGetBaseFansAttrReq(c *blademaster.Context) {
  92. oarg := new(mcnmodel.McnGetBaseFansAttrReq)
  93. httpGetFunc(
  94. oarg,
  95. func(context context.Context, arg interface{}) (res interface{}, err error) {
  96. return srv.GetBaseFansAttrReq(context, arg.(*mcnmodel.McnGetBaseFansAttrReq))
  97. },
  98. "GetBaseFansAttrReq",
  99. []preBindFuncType{getCookieMid(c, oarg)},
  100. []preHandleFuncType{cheatReq},
  101. )(c)
  102. }
  103. func mcnGetFansArea(c *blademaster.Context) {
  104. oarg := new(mcnmodel.McnGetFansAreaReq)
  105. httpGetFunc(
  106. oarg,
  107. func(context context.Context, arg interface{}) (res interface{}, err error) {
  108. return srv.GetFansArea(context, arg.(*mcnmodel.McnGetFansAreaReq))
  109. },
  110. "GetFansArea",
  111. []preBindFuncType{getCookieMid(c, oarg)},
  112. []preHandleFuncType{cheatReq},
  113. )(c)
  114. }
  115. func mcnGetFansType(c *blademaster.Context) {
  116. oarg := new(mcnmodel.McnGetFansTypeReq)
  117. httpGetFunc(
  118. oarg,
  119. func(context context.Context, arg interface{}) (res interface{}, err error) {
  120. return srv.GetFansType(context, arg.(*mcnmodel.McnGetFansTypeReq))
  121. },
  122. "GetFansType",
  123. []preBindFuncType{getCookieMid(c, oarg)},
  124. []preHandleFuncType{cheatReq},
  125. )(c)
  126. }
  127. func mcnGetFansTag(c *blademaster.Context) {
  128. oarg := new(mcnmodel.McnGetFansTagReq)
  129. httpGetFunc(
  130. oarg,
  131. func(context context.Context, arg interface{}) (res interface{}, err error) {
  132. return srv.GetFansTag(context, arg.(*mcnmodel.McnGetFansTagReq))
  133. },
  134. "GetFansTag",
  135. []preBindFuncType{getCookieMid(c, oarg)},
  136. []preHandleFuncType{cheatReq},
  137. )(c)
  138. }