Flavia Mancini and I have just published an introduction to computational models of the pain system in Neuroimage, including perceptual (Bayesian) and motivational (Reinforcement Learning) models and how they fit together. It's open access and you can read it here.
Seymour, B., & Mancini, F. (2020). Hierarchical models of pain: Inference, information-seeking, and adaptive control. NeuroImage, 117212.