The results showed that GP affected T2DM by mediating the insulin resistance signaling pathway, PI3K/Akt signaling pathway and FoxO1 signaling pathway, which had a close relationship with T2DM. Here, FOXO1 is linked to type 2 diabetes mellitus.