互动
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.

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