The mayor shall receive such compensation as the city council may direct by ordinance.