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

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