P2RX7 and depressive symptom measurement: In summary, our study suggests that the P2X7 receptor may be an effective target for both visceral pain and depression, and gallic acid could alleviate visceral pain and depressive behavior in rats by inhibiting the expression of the P2X7 receptor in the hippocampus, spinal cord, and DRG.