互动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
3.5 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. package main
  2. import (
  3. "github.com/ouxuanserver/osmanthuswine"
  4. "github.com/ouxuanserver/osmanthuswine/src/core"
  5. "hudongzhuanjia/controllers/client"
  6. "hudongzhuanjia/controllers/common"
  7. "hudongzhuanjia/controllers/pc"
  8. "hudongzhuanjia/utils/define"
  9. //_ "net/http/pprof"
  10. )
  11. func main() {
  12. define.SetDebug(true)
  13. // pc
  14. core.GetInstanceRouterManage().Registered(new(pc.WsCtl)) // 用户
  15. core.GetInstanceRouterManage().Registered(new(pc.UserCtl)) // 用户
  16. core.GetInstanceRouterManage().Registered(new(pc.ActivityCtl)) // 活动
  17. core.GetInstanceRouterManage().Registered(new(pc.VoteCtl)) // 投票
  18. core.GetInstanceRouterManage().Registered(new(pc.AuctionCtl)) // 竞拍
  19. core.GetInstanceRouterManage().Registered(new(pc.ShakeRedEnvelopeCtl)) // 摇红包
  20. core.GetInstanceRouterManage().Registered(new(pc.AreaStoreCtl)) // 地区
  21. core.GetInstanceRouterManage().Registered(new(pc.LotteryDrawCtl)) // 抽奖
  22. core.GetInstanceRouterManage().Registered(new(pc.SignCtl)) // 签到
  23. core.GetInstanceRouterManage().Registered(new(pc.BullyScreenCtl)) // 霸屏
  24. core.GetInstanceRouterManage().Registered(new(pc.RewardCtl)) // 打赏
  25. core.GetInstanceRouterManage().Registered(new(pc.BarrageCtl)) // 弹幕
  26. core.GetInstanceRouterManage().Registered(new(pc.UpperWallCtl)) // 上墙
  27. core.GetInstanceRouterManage().Registered(new(pc.TugOfWarCtl)) // 拔河
  28. core.GetInstanceRouterManage().Registered(new(pc.OrderDrawCtl)) // 订单抽奖
  29. core.GetInstanceRouterManage().Registered(new(pc.CalorieCtl)) // 卡路里
  30. core.GetInstanceRouterManage().Registered(new(pc.OrderDrawSpecialCtl)) //
  31. // client
  32. core.GetInstanceRouterManage().Registered(new(client.ActivityCtl)) // 互动
  33. core.GetInstanceRouterManage().Registered(new(client.InvitationLetterCtl)) // 邀请函
  34. core.GetInstanceRouterManage().Registered(new(client.VoteCtl)) // 投票
  35. core.GetInstanceRouterManage().Registered(new(client.UserCtl)) // 用户
  36. core.GetInstanceRouterManage().Registered(new(client.UserAuthCtl)) // 登录信息校验
  37. core.GetInstanceRouterManage().Registered(new(client.SignCtl)) // 签到
  38. core.GetInstanceRouterManage().Registered(new(client.BullyScreenCtl)) // 霸屏
  39. core.GetInstanceRouterManage().Registered(new(client.RewardCtl)) // 打赏
  40. core.GetInstanceRouterManage().Registered(new(client.BarrageCtl)) // 弹幕
  41. core.GetInstanceRouterManage().Registered(new(client.UpperWallCtl)) // 上墙
  42. core.GetInstanceRouterManage().Registered(new(client.ShakeRedEnvelopeCtl)) // 摇红包
  43. core.GetInstanceRouterManage().Registered(new(client.TugOfWarCtl)) // 拔河
  44. core.GetInstanceRouterManage().Registered(new(client.AuctionCtl)) // 竞拍
  45. core.GetInstanceRouterManage().Registered(new(client.WxCtl)) // 微信设置
  46. core.GetInstanceRouterManage().Registered(new(client.OrderEntryCtl)) // 订单
  47. core.GetInstanceRouterManage().Registered(new(client.LotteryCtl)) // 奖品
  48. core.GetInstanceRouterManage().Registered(new(client.CalorieCtl)) // 卡路里
  49. core.GetInstanceRouterManage().Registered(new(client.LiveCtl)) // 直播
  50. core.GetInstanceRouterManage().Registered(new(client.GoodCtl)) // 商品
  51. // common
  52. core.GetInstanceRouterManage().Registered(new(common.AnnexCtl))
  53. core.GetInstanceRouterManage().Registered(new(common.WeChatOauthCtl))
  54. core.GetInstanceRouterManage().Registered(new(common.ImTestCtl))
  55. osmanthuswine.Run()
  56. }