api.go 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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 mcnGetRankArchiveLikesAPI(c *blademaster.Context) {
  8. oarg := new(mcnmodel.McnGetRankAPIReq)
  9. httpGetFunc(
  10. oarg,
  11. func(context context.Context, arg interface{}) (res interface{}, err error) {
  12. return srv.McnGetRankArchiveLikesAPI(context, arg.(*mcnmodel.McnGetRankAPIReq))
  13. },
  14. "McnGetRankArchiveLikesAPI",
  15. nil,
  16. nil,
  17. )(c)
  18. }
  19. func getMcnSummaryAPI(c *blademaster.Context) {
  20. oarg := new(mcnmodel.McnGetDataSummaryReq)
  21. httpGetFunc(
  22. oarg,
  23. func(context context.Context, arg interface{}) (res interface{}, err error) {
  24. return srv.GetMcnSummaryAPI(context, arg.(*mcnmodel.McnGetDataSummaryReq))
  25. },
  26. "GetMcnSummaryAPI",
  27. nil,
  28. nil,
  29. )(c)
  30. }
  31. func getIndexIncAPI(c *blademaster.Context) {
  32. oarg := new(mcnmodel.McnGetIndexIncReq)
  33. httpGetFunc(
  34. oarg,
  35. func(context context.Context, arg interface{}) (res interface{}, err error) {
  36. return srv.GetIndexIncAPI(context, arg.(*mcnmodel.McnGetIndexIncReq))
  37. },
  38. "GetIndexIncAPI",
  39. nil,
  40. nil,
  41. )(c)
  42. }
  43. func getIndexSourceAPI(c *blademaster.Context) {
  44. oarg := new(mcnmodel.McnGetIndexSourceReq)
  45. httpGetFunc(
  46. oarg,
  47. func(context context.Context, arg interface{}) (res interface{}, err error) {
  48. return srv.GetIndexSourceAPI(context, arg.(*mcnmodel.McnGetIndexSourceReq))
  49. },
  50. "GetIndexSourceAPI",
  51. nil,
  52. nil,
  53. )(c)
  54. }
  55. func getPlaySourceAPI(c *blademaster.Context) {
  56. oarg := new(mcnmodel.McnGetPlaySourceReq)
  57. httpGetFunc(
  58. oarg,
  59. func(context context.Context, arg interface{}) (res interface{}, err error) {
  60. return srv.GetPlaySourceAPI(context, arg.(*mcnmodel.McnGetPlaySourceReq))
  61. },
  62. "GetPlaySourceAPI",
  63. nil,
  64. nil,
  65. )(c)
  66. }
  67. func getMcnFansAPI(c *blademaster.Context) {
  68. oarg := new(mcnmodel.McnGetMcnFansReq)
  69. httpGetFunc(
  70. oarg,
  71. func(context context.Context, arg interface{}) (res interface{}, err error) {
  72. return srv.GetMcnFansAPI(context, arg.(*mcnmodel.McnGetMcnFansReq))
  73. },
  74. "GetMcnFansAPI",
  75. nil,
  76. nil,
  77. )(c)
  78. }
  79. func getMcnFansIncAPI(c *blademaster.Context) {
  80. oarg := new(mcnmodel.McnGetMcnFansIncReq)
  81. httpGetFunc(
  82. oarg,
  83. func(context context.Context, arg interface{}) (res interface{}, err error) {
  84. return srv.GetMcnFansIncAPI(context, arg.(*mcnmodel.McnGetMcnFansIncReq))
  85. },
  86. "GetMcnFansIncAPI",
  87. nil,
  88. nil,
  89. )(c)
  90. }
  91. func getMcnFansDecAPI(c *blademaster.Context) {
  92. oarg := new(mcnmodel.McnGetMcnFansDecReq)
  93. httpGetFunc(
  94. oarg,
  95. func(context context.Context, arg interface{}) (res interface{}, err error) {
  96. return srv.GetMcnFansDecAPI(context, arg.(*mcnmodel.McnGetMcnFansDecReq))
  97. },
  98. "GetMcnFansDecAPI",
  99. nil,
  100. nil,
  101. )(c)
  102. }
  103. func getMcnFansAttentionWayAPI(c *blademaster.Context) {
  104. oarg := new(mcnmodel.McnGetMcnFansAttentionWayReq)
  105. httpGetFunc(
  106. oarg,
  107. func(context context.Context, arg interface{}) (res interface{}, err error) {
  108. return srv.GetMcnFansAttentionWayAPI(context, arg.(*mcnmodel.McnGetMcnFansAttentionWayReq))
  109. },
  110. "GetMcnFansAttentionWayAPI",
  111. nil,
  112. nil,
  113. )(c)
  114. }
  115. func getFansBaseFansAttrAPI(c *blademaster.Context) {
  116. oarg := new(mcnmodel.McnGetBaseFansAttrReq)
  117. httpGetFunc(
  118. oarg,
  119. func(context context.Context, arg interface{}) (res interface{}, err error) {
  120. return srv.GetFansBaseFansAttrAPI(context, arg.(*mcnmodel.McnGetBaseFansAttrReq))
  121. },
  122. "GetFansBaseFansAttrAPI",
  123. nil,
  124. nil,
  125. )(c)
  126. }
  127. func getFansAreaAPI(c *blademaster.Context) {
  128. oarg := new(mcnmodel.McnGetFansAreaReq)
  129. httpGetFunc(
  130. oarg,
  131. func(context context.Context, arg interface{}) (res interface{}, err error) {
  132. return srv.GetFansAreaAPI(context, arg.(*mcnmodel.McnGetFansAreaReq))
  133. },
  134. "GetFansAreaAPI",
  135. nil,
  136. nil,
  137. )(c)
  138. }
  139. func getFansTypeAPI(c *blademaster.Context) {
  140. oarg := new(mcnmodel.McnGetFansTypeReq)
  141. httpGetFunc(
  142. oarg,
  143. func(context context.Context, arg interface{}) (res interface{}, err error) {
  144. return srv.GetFansTypeAPI(context, arg.(*mcnmodel.McnGetFansTypeReq))
  145. },
  146. "GetFansTypeAPI",
  147. nil,
  148. nil,
  149. )(c)
  150. }
  151. func getFansTagAPI(c *blademaster.Context) {
  152. oarg := new(mcnmodel.McnGetFansTagReq)
  153. httpGetFunc(
  154. oarg,
  155. func(context context.Context, arg interface{}) (res interface{}, err error) {
  156. return srv.GetFansTagAPI(context, arg.(*mcnmodel.McnGetFansTagReq))
  157. },
  158. "GetFansTagAPI",
  159. nil,
  160. nil,
  161. )(c)
  162. }