talent_auth_post_api.go 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. package talentapi
  2. import (
  3. "github.com/gogf/gf/net/ghttp"
  4. "youngmini_server/app/service/talent_service"
  5. )
  6. var TalentAuthPostApi = talentAuthPostApi{}
  7. type talentAuthPostApi struct {}
  8. // TalentDetailInfo 提交达人详细信息
  9. func (*talentAuthPostApi)TalentDetailInfo(r *ghttp.Request) {
  10. res := talent_service.OnPostTalentDetailInfo(r)
  11. err := r.Response.WriteJson(res)
  12. if err != nil {
  13. panic("write response error")
  14. }
  15. }
  16. // PlatformDetail 提交平台信息
  17. func (*talentAuthPostApi)PlatformDetail(r *ghttp.Request) {
  18. res := talent_service.OnPostPlatformDetailInfo(r)
  19. err := r.Response.WriteJson(res)
  20. if err != nil {
  21. panic("write response error")
  22. }
  23. }
  24. // AddDeliveryAddr 添加收货地址
  25. func (*talentAuthPostApi)AddDeliveryAddr(r *ghttp.Request) {
  26. res := talent_service.OnAddDeliveryAddr(r)
  27. err := r.Response.WriteJson(res)
  28. if err != nil {
  29. panic("write response error")
  30. }
  31. }
  32. // DelDeliveryAddr 删除收货地址
  33. func (*talentAuthPostApi)DelDeliveryAddr(r *ghttp.Request) {
  34. res := talent_service.OnDeleteDeliveryAddress(r)
  35. err := r.Response.WriteJson(res)
  36. if err != nil {
  37. panic("write response error")
  38. }
  39. }
  40. // ModifyDeliveryAddr 修改收货地址信息
  41. func (*talentAuthPostApi)ModifyDeliveryAddr(r *ghttp.Request) {
  42. res := talent_service.ModifyDeliveryAddr(r)
  43. err := r.Response.WriteJson(res)
  44. if err != nil {
  45. panic("write response error")
  46. }
  47. }
  48. // ChangeDefaultDeliveryAddr 修改默认收货地址
  49. func (*talentAuthPostApi)ChangeDefaultDeliveryAddr(r *ghttp.Request) {
  50. res := talent_service.SetDefaultDeliveryAddr(r)
  51. err := r.Response.WriteJson(res)
  52. if err != nil {
  53. panic("write response error")
  54. }
  55. }
  56. // WithdrawalAccountInfo 绑定提现账户信息
  57. func (*talentAuthPostApi)WithdrawalAccountInfo(r *ghttp.Request) {
  58. res := talent_service.BindWithdrawalAccount(r)
  59. err := r.Response.WriteJson(res)
  60. if err != nil {
  61. panic("write response error")
  62. }
  63. }
  64. // BoBoCoinWithdrawalReq 提现申请
  65. func (*talentAuthPostApi)BoBoCoinWithdrawalReq(r *ghttp.Request) {
  66. res := talent_service.BoBoCoinWithdrawalReq(r)
  67. err := r.Response.WriteJson(res)
  68. if err != nil {
  69. panic("write response error")
  70. }
  71. }
  72. func (*talentAuthPostApi)SignupTask(r *ghttp.Request) {
  73. res := talent_service.SignupTask(r)
  74. err := r.Response.WriteJson(res)
  75. if err != nil {
  76. panic("write response error")
  77. }
  78. }
  79. func (*talentAuthPostApi)ConfirmExpress(r *ghttp.Request) {
  80. res := talent_service.OnConfirmReceiveExpress(r)
  81. err := r.Response.WriteJson(res)
  82. if err != nil {
  83. panic("write response error")
  84. }
  85. }
  86. func (*talentAuthPostApi)UploadDraft(r *ghttp.Request) {
  87. res := talent_service.OnUploadDraft(r)
  88. err := r.Response.WriteJson(res)
  89. if err != nil {
  90. panic("write response error")
  91. }
  92. }
  93. func (*talentAuthPostApi)UploadArticle(r *ghttp.Request) {
  94. res := talent_service.OnUploadArticle(r)
  95. err := r.Response.WriteJson(res)
  96. if err != nil {
  97. panic("write response error")
  98. }
  99. }
  100. func (*talentAuthPostApi)UploadLinkInfo(r *ghttp.Request) {
  101. res := talent_service.OnUploadLink(r)
  102. err := r.Response.WriteJson(res)
  103. if err != nil {
  104. panic("write response error")
  105. }
  106. }
  107. func (*talentAuthPostApi)UploadDataInfo(r *ghttp.Request) {
  108. res := talent_service.OnUploadData(r)
  109. err := r.Response.WriteJson(res)
  110. if err != nil {
  111. panic("write response error")
  112. }
  113. }
  114. func (*talentAuthPostApi)CancelOrder(r *ghttp.Request) {
  115. res := talent_service.CancelOrder(r)
  116. err := r.Response.WriteJson(res)
  117. if err != nil {
  118. panic("write response error")
  119. }
  120. }
  121. func (*talentAuthPostApi)WxPrepay(r *ghttp.Request) {
  122. res := talent_service.WxPayOnTalentRequestPay(r)
  123. err := r.Response.WriteJson(res)
  124. if err != nil {
  125. panic("write response error")
  126. }
  127. }
  128. func (*talentAuthPostApi)QueryWxPayResultById(r *ghttp.Request) {
  129. res := talent_service.WxPayQueryOrderById(r)
  130. err := r.Response.WriteJson(res)
  131. if err != nil {
  132. panic("write response error")
  133. }
  134. }
  135. func (*talentAuthPostApi)QueryWxPayResultByTradeNo(r *ghttp.Request) {
  136. res := talent_service.QueryOrderByOutTradeNo(r)
  137. err := r.Response.WriteJson(res)
  138. if err != nil {
  139. panic("write response error")
  140. }
  141. }