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
59 lines
3.4 KiB
package main
|
|
|
|
import (
|
|
"github.com/ouxuanserver/osmanthuswine"
|
|
"github.com/ouxuanserver/osmanthuswine/src/core"
|
|
"hudongzhuanjia/controllers/client"
|
|
"hudongzhuanjia/controllers/common"
|
|
"hudongzhuanjia/controllers/pc"
|
|
//_ "net/http/pprof"
|
|
)
|
|
|
|
func main() {
|
|
|
|
// pc
|
|
core.GetInstanceRouterManage().Registered(new(pc.WsCtl)) // 用户
|
|
core.GetInstanceRouterManage().Registered(new(pc.UserCtl)) // 用户
|
|
core.GetInstanceRouterManage().Registered(new(pc.ActivityCtl)) // 活动
|
|
core.GetInstanceRouterManage().Registered(new(pc.VoteCtl)) // 投票
|
|
core.GetInstanceRouterManage().Registered(new(pc.AuctionCtl)) // 竞拍
|
|
core.GetInstanceRouterManage().Registered(new(pc.ShakeRedEnvelopeCtl)) // 摇红包
|
|
core.GetInstanceRouterManage().Registered(new(pc.AreaStoreCtl)) // 地区
|
|
core.GetInstanceRouterManage().Registered(new(pc.LotteryDrawCtl)) // 抽奖
|
|
core.GetInstanceRouterManage().Registered(new(pc.SignCtl)) // 签到
|
|
core.GetInstanceRouterManage().Registered(new(pc.BullyScreenCtl)) // 霸屏
|
|
core.GetInstanceRouterManage().Registered(new(pc.RewardCtl)) // 打赏
|
|
core.GetInstanceRouterManage().Registered(new(pc.BarrageCtl)) // 弹幕
|
|
core.GetInstanceRouterManage().Registered(new(pc.UpperWallCtl)) // 上墙
|
|
core.GetInstanceRouterManage().Registered(new(pc.TugOfWarCtl)) // 拔河
|
|
core.GetInstanceRouterManage().Registered(new(pc.OrderDrawCtl)) // 订单抽奖
|
|
core.GetInstanceRouterManage().Registered(new(pc.CalorieCtl)) // 卡路里
|
|
|
|
// client
|
|
core.GetInstanceRouterManage().Registered(new(client.ActivityCtl)) // 互动
|
|
core.GetInstanceRouterManage().Registered(new(client.InvitationLetterCtl)) // 邀请函
|
|
core.GetInstanceRouterManage().Registered(new(client.VoteCtl)) // 投票
|
|
core.GetInstanceRouterManage().Registered(new(client.UserCtl)) // 用户
|
|
core.GetInstanceRouterManage().Registered(new(client.UserAuthCtl)) // 登录信息校验
|
|
core.GetInstanceRouterManage().Registered(new(client.SignCtl)) // 签到
|
|
core.GetInstanceRouterManage().Registered(new(client.BullyScreenCtl)) // 霸屏
|
|
core.GetInstanceRouterManage().Registered(new(client.RewardCtl)) // 打赏
|
|
core.GetInstanceRouterManage().Registered(new(client.BarrageCtl)) // 弹幕
|
|
core.GetInstanceRouterManage().Registered(new(client.UpperWallCtl)) // 上墙
|
|
core.GetInstanceRouterManage().Registered(new(client.ShakeRedEnvelopeCtl)) // 摇红包
|
|
core.GetInstanceRouterManage().Registered(new(client.TugOfWarCtl)) // 拔河
|
|
core.GetInstanceRouterManage().Registered(new(client.AuctionCtl)) // 竞拍
|
|
core.GetInstanceRouterManage().Registered(new(client.WxCtl)) // 微信设置
|
|
core.GetInstanceRouterManage().Registered(new(client.OrderEntryCtl)) // 订单
|
|
core.GetInstanceRouterManage().Registered(new(client.LotteryCtl)) // 奖品
|
|
core.GetInstanceRouterManage().Registered(new(client.CalorieCtl)) // 卡路里
|
|
core.GetInstanceRouterManage().Registered(new(client.LiveCtl)) // 直播
|
|
core.GetInstanceRouterManage().Registered(new(client.GoodCtl)) // 商品
|
|
|
|
// common
|
|
core.GetInstanceRouterManage().Registered(new(common.AnnexCtl))
|
|
core.GetInstanceRouterManage().Registered(new(common.WeChatOauthCtl))
|
|
core.GetInstanceRouterManage().Registered(new(common.ImTestCtl))
|
|
|
|
osmanthuswine.Run()
|
|
}
|