A military officer acting as secretary to a general is called this "de-camp"
... adjutant general - a general's adjutant; chief 
administrative officer ... and how she laughed at the stories of the Scotch aides-
de-camp, and called Mr. [DOC] [TLE] Aides-de-Camp - Istana [PAR] May 19, 2016 ...