In summary, both antimicrobial peptide S100A7 and estrogen abundance were detected in dairy goat milk; their abundances had a limited significance in healthy and mastitis goat milk, and their relationship was positive; the regression equation was y = 0.3206x + 23.459. The gene discussed is S100A7; the disease is mastitis.