Esempio n. 1
0
        /// <summary>
        /// 添加员工
        /// </summary>
        /// <param name="resultBlock"></param>
        /// <param name="account"></param>
        public static void AddStaff(DataResultBlock resultBlock, StructAccount account)
        {
            CSAccountAdd.Builder add = new CSAccountAdd.Builder();
            add.SetAccount(account);

            MessageContent.Builder content = new MessageContent.Builder();
            content.SetMessageType(1);
            content.SetCsAccountAdd(add.Build());

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

            NetMessageManage.SendMsg(send, resultBlock);
        }