Novak Djokovic moved into the third round of the Australian Open after a routine victory over Leonardo Mayer.