A military officer acting as secretary to a general is called this "de-camp"
In 
modern day, the ADC is an officer of the armed forces who serves as a ... 
personal assistance and acting as confidential secretaries to their commanders.