withdraw.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. package controller
  2. import (
  3. "net/http"
  4. "bet24.com/log"
  5. "bet24.com/servers/adminserver/dao"
  6. "github.com/gin-gonic/gin"
  7. )
  8. // 提现日志
  9. func WithdrawLog(c *gin.Context) {
  10. obj := dao.NewWithdrawLog()
  11. if err := c.ShouldBind(&obj.In); err != nil {
  12. log.Debug("%s shouldBind err %v", "WithdrawLog", err)
  13. return
  14. }
  15. obj.DoAction(nil)
  16. c.JSON(http.StatusOK, obj.Out)
  17. return
  18. }
  19. // 提现统计
  20. func WithdrawStatList(c *gin.Context) {
  21. obj := dao.NewWithdrawStatList()
  22. if err := c.ShouldBind(&obj.In); err != nil {
  23. log.Debug("%s shouldBind err %v", "WithdrawStatList", err)
  24. return
  25. }
  26. obj.DoAction(nil)
  27. c.JSON(http.StatusOK, obj.Out)
  28. return
  29. }
  30. // 提现排行
  31. func WithdrawRank(c *gin.Context) {
  32. obj := dao.NewWithdrawRank()
  33. if err := c.ShouldBind(&obj.In); err != nil {
  34. log.Debug("%s shouldBind err %v", "WithdrawRank", err)
  35. return
  36. }
  37. obj.DoAction(nil)
  38. c.JSON(http.StatusOK, obj.Out)
  39. return
  40. }
  41. // 提现审核列表
  42. func WithdrawAuditList(c *gin.Context) {
  43. obj := dao.NewWithdrawAuditList()
  44. if err := c.ShouldBind(&obj.In); err != nil {
  45. log.Debug("%s shouldBind err %v", "WithdrawAuditList", err)
  46. return
  47. }
  48. obj.DoAction(nil)
  49. c.JSON(http.StatusOK, obj.Out)
  50. return
  51. }
  52. // 提现日志
  53. func WithdrawFlashLog(c *gin.Context) {
  54. obj := dao.NewWithdrawFlashLog()
  55. if err := c.ShouldBind(&obj.In); err != nil {
  56. log.Debug("%s shouldBind err %v", "WithdrawFlashLog", err)
  57. return
  58. }
  59. obj.DoAction(nil)
  60. c.JSON(http.StatusOK, obj.Out)
  61. return
  62. }