package comm import "go_dreamfactory/lego/core" type LogHandleType string const ( LogHandleType_Insert LogHandleType = "insert" LogHandleType_Update LogHandleType = "update" LogHandleType_Delete LogHandleType = "delete" ) const ( SC_ServiceGateRouteComp core.S_Comps = "SC_GateRouteComp" //s_comps.ISC_GateRouteComp ) const ( Service_Gateway = "gateway" Service_Worker = "worker" Service_DB = "dbservice" ) //ERR const ( MainType_Notify = "notify" //通知 SubType_ErrorNotify = "errornotify" //错误通知 ) //模块名定义处 const ( SM_GateModule core.M_Modules = "gateway" //gate模块 网关服务模块 SM_WebModule core.M_Modules = "web" //web模块 SM_UserModule core.M_Modules = "user" //用户模块 SM_PackModule core.M_Modules = "pack" //背包模块 SM_MailModule core.M_Modules = "mail" //邮件模块 SM_FriendModule core.M_Modules = "friend" //好友模块 SM_LogModelModule core.M_Modules = "model" //日志模块 SM_EquipmentModule core.M_Modules = "equipment" //装备模块 SM_HeroModule core.M_Modules = "hero" //英雄模块 SM_ForumModule core.M_Modules = "forum" //论坛模块 SM_ItemsModule core.M_Modules = "item" ) //RPC服务接口定义处 const ( //Rpc Rpc_GatewayRoute core.Rpc_Key = "Rpc_GatewayRoute" //网关路由 Rpc_GatewayAgentBind core.Rpc_Key = "Rpc_GatewayAgentBind" //代理绑定 绑定用户Id Rpc_GatewayAgentUnBind core.Rpc_Key = "Rpc_GatewayAgentUnBind" //代理解绑 解绑用户Id Rpc_GatewayAgentSendMsg core.Rpc_Key = "Rpc_GatewayAgentSendMsg" //代理发送消息 向用户发送消息 Rpc_GatewaySendBatchMsg core.Rpc_Key = "Rpc_GatewaySendBatchMsg" //向多个用户发送消息 Rpc_GatewaySendRadioMsg core.Rpc_Key = "Rpc_GatewaySendRadioMsg" //广播消息 Rpc_GatewayAgentClose core.Rpc_Key = "Rpc_GatewayAgentClose" //代理关闭 关闭用户连接 Rpc_NoticeUserClose core.Rpc_Key = "Rpc_NoticeUserClose" //通知用户离线 ) //事件类型定义处 const ( Event_UserLogin core.Event_Key = "Event_UserLogin" //登录事件 Event_CreateUser core.Event_Key = "Event_CreateUser" //创建角色事件 Event_UserOffline core.Event_Key = "Event_UserOffline" //用户离线事件 ) const ( DBService_Status string = "DBService_status" ) const ( PropertyHp int32 = 1 //生命 PropertyAtk int32 = 2 //攻击 PropertyDef int32 = 3 //防御 ) const ( CardTypeHero int32 = 1 //英雄卡 CardTypeStar int32 = 2 //升星卡 CardTypeLevel int32 = 3 //升级卡 CardTypeSkill int32 = 4 //技能升级卡 CardTypeMonster int32 = 5 //怪物卡 )