You can include repositories and services in a class diagram, and it's often very beneficial to do so, but it isn't strictly required in the most basic sense of a class diagram.