Disclosed are a series of compounds having pyridine structures or pharmaceutically acceptable salts thereof, and an application thereof in the preparation of drugs for the treatment of related diseases. Specifically, disclosed is a compound represented by formula (I) or a pharmaceutically acceptable salt thereof.