advise sb to do sth这里的to do sth做什么成分啊

问题描述:

advise sb to do sth这里的to do sth做什么成分啊
那spend time in doing sth里的in doing sth呢
appoint sb mayor 里面的mayor呢 做什么成分?

spend time in doing sth 里面,in doing sth做状语
appoint sb mayor里,appoint后跟双宾语,major是直接宾语