Ejemplo n.º 1
0
        /// <summary>
        /// 修改管理员的角色权限
        /// </summary>
        public static void UpdateManagerRights(DataResultBlock resultBlock, Int32 roleId, int rightType, string rights)
        {
            //权限类型,增删改查 1-5

            CSRoleRights.Builder rolerights = new CSRoleRights.Builder();
            rolerights.SetRoleid(roleId);
            rolerights.SetRighttype(rightType);
            rolerights.SetRights(rights);
            MessageContent.Builder content = new MessageContent.Builder();
            content.SetMessageType(1);
            content.SetCsRoleRights(rolerights.Build());

            SendModel send = new SendModel()
            {
                cmd     = Cmd.CMD_ROLE_RIGHTS,
                content = content.Build()
            };

            NetMessageManage.SendMsg(send, resultBlock);
        }