Molecular docking were used to determine the interaction of potential gene targets and to identify the principle compounds and the mechanism of GYS activity in mastitis. Here, GYS1 is linked to mastitis.