A city of the primary class may regulate and prescribe the powers, duties, and compensation of officers of the city not otherwise provided by law.