A military officer acting as secretary to a general is called this "de-camp"
[DOC] [TLE] Aide-de-camp - Wikipedia [PAR] An aide-de-camp is a personal assistant or secretary to a person of high rank, 
usually a senior ... is called a "flag lieutenant" (as senior naval officers are "flag 
officers").