like sb.to do sth.指的是宾语sb去做某事,to do sth.作宾补,翻译成“想要/喜欢某人去做某事”;要是见到like sb.doing可分为两种情况,一种就像你说的,doing作sb的后置定语,eg:I like fish swimming in the pool.我喜欢正在池子里游泳的鱼.另一种还可能是sb.doing一起作宾语,也可替换成sb's doing,eg:I like his/ him smiling at me.我喜欢他朝我微笑的样子.
That's all.