The city commission may regulate and license the erection and construction of buildings and all other structures in a manner that is consistent with general law, and may regulate all housing and building trades, except as otherwise provided by general law.