CommonService.class.php 297 B

123456789101112131415161718192021
  1. <?php
  2. namespace Home\Service;
  3. abstract class CommonService {
  4. protected function getM() {
  5. return M($this->getModelName());
  6. }
  7. protected function getD() {
  8. return D($this->getModelName());
  9. }
  10. protected function isRelation() {
  11. return true;
  12. }
  13. }