controller.go 630 B

123456789101112131415161718192021222324252627282930313233
  1. package privateroom
  2. import (
  3. "net/http"
  4. "bet24.com/log"
  5. "github.com/gin-gonic/gin"
  6. )
  7. // 历史房间
  8. func RoomHistory(c *gin.Context) {
  9. var req roomHistory_req
  10. if err := c.ShouldBind(&req); err != nil {
  11. log.Debug("%s shouldBind err %v", "privateRoom.RoomHistory", err)
  12. return
  13. }
  14. resp := mgr.roomHistory(&req)
  15. c.JSON(http.StatusOK, resp)
  16. return
  17. }
  18. // 历史椅子
  19. func ChairHistory(c *gin.Context) {
  20. var req chairHistory_req
  21. if err := c.ShouldBind(&req); err != nil {
  22. log.Debug("%s shouldBind err %v", "privateRoom.ChairHistory", err)
  23. return
  24. }
  25. resp := mgr.chairHistory(&req)
  26. c.JSON(http.StatusOK, resp)
  27. }