The present invention relates to an indole derivative, a preparation method and an application thereof in medicine. In particular, the present invention relates to an indole derivative represented by the general formula (I), a preparation method and salts thereof used in medicine, and their uses as a therapeutic agent, in particular the use as a FGFR inhibitor, wherein the definition of each substitute in the general formula (I) is the same as the definition in the specification.本發明涉及吲哚類衍生物及其製備方法和醫藥用途。具體而言,本發明涉及一種通式(I)所示的吲哚類衍生物、其製備方法及其可藥用的鹽,以及它們作為治療劑,特別是作為FGFR抑制劑的用途,其中通式(I)中的各取代基的定義與說明書中的定義相同。