RepositoryServiceProvider.php 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?php
  2. namespace App\Providers;
  3. use Illuminate\Support\ServiceProvider;
  4. class RepositoryServiceProvider extends ServiceProvider
  5. {
  6. /**
  7. * Register services.
  8. *
  9. * @return void
  10. */
  11. public function register()
  12. {
  13. $this->app->singleton('ApiSignFacadeRepository', function ($app) {
  14. return new \App\Repositories\Eloquent\ApiSignFacadeRepository();
  15. });
  16. $this->app->singleton('SysConfigFacadeRepository', function ($app) {
  17. return new \App\Repositories\Eloquent\SysConfigFacadeRepository();
  18. });
  19. $this->app->singleton('WxUserFacadeRepository', function ($app) {
  20. return new \App\Repositories\Eloquent\WxUserFacadeRepository();
  21. });
  22. $this->app->singleton('WxServiceFacadeRepository', function ($app) {
  23. return new \App\Repositories\Eloquent\WxServiceFacadeRepository();
  24. });
  25. $this->app->singleton('WxNotificationFacadeRepository', function ($app) {
  26. return new \App\Repositories\Eloquent\WxNotificationFacadeRepository();
  27. });
  28. $this->app->singleton('WxDecryptFacadeRepository', function ($app) {
  29. return new \App\Repositories\Eloquent\WxDecryptFacadeRepository();
  30. });
  31. $this->app->singleton('WxServiceKfFacadeRepository', function ($app) {
  32. return new \App\Repositories\Eloquent\WxServiceKfFacadeRepository();
  33. });
  34. $this->app->singleton('UploadFacadeRepository', function ($app) {
  35. return new \App\Repositories\Eloquent\UploadFacadeRepository();
  36. });
  37. $this->app->singleton('ThirdWxFacadeRepository', function ($app) {
  38. return new \App\Repositories\Eloquent\ThirdWxFacadeRepository();
  39. });
  40. $this->app->singleton('UserFacadeRepository', function ($app) {
  41. return new \App\Repositories\Eloquent\UserFacadeRepository();
  42. });
  43. $this->app->singleton('SpecialistCloumnFacadeRepository', function ($app) {
  44. return new \App\Repositories\Eloquent\SpecialistCloumnFacadeRepository();
  45. });
  46. $this->app->singleton('SpecialistInfoFacadeRepository', function ($app) {
  47. return new \App\Repositories\Eloquent\SpecialistInfoFacadeRepository();
  48. });
  49. $this->app->singleton('BannerFacadeRepository', function ($app) {
  50. return new \App\Repositories\Eloquent\BannerFacadeRepository();
  51. });
  52. $this->app->singleton('MentalityDrillCategoryFacadeRepository', function ($app) {
  53. return new \App\Repositories\Eloquent\MentalityDrillCategoryFacadeRepository();
  54. });
  55. $this->app->singleton('MentalityDrillFacadeRepository', function ($app) {
  56. return new \App\Repositories\Eloquent\MentalityDrillFacadeRepository();
  57. });
  58. $this->app->singleton('ScaleCategoryFacadeRepository', function ($app) {
  59. return new \App\Repositories\Eloquent\ScaleCategoryFacadeRepository();
  60. });
  61. $this->app->singleton('ScaleFacadeRepository', function ($app) {
  62. return new \App\Repositories\Eloquent\ScaleFacadeRepository();
  63. });
  64. $this->app->singleton('DiaryMoodLevelFacadeRepository', function ($app) {
  65. return new \App\Repositories\Eloquent\DiaryMoodLevelFacadeRepository();
  66. });
  67. $this->app->singleton('DiaryMoodTagFacadeRepository', function ($app) {
  68. return new \App\Repositories\Eloquent\DiaryMoodTagFacadeRepository();
  69. });
  70. $this->app->singleton('DiaryMoodFacadeRepository', function ($app) {
  71. return new \App\Repositories\Eloquent\DiaryMoodFacadeRepository();
  72. });
  73. $this->app->singleton('DiarySleepLevelFacadeRepository', function ($app) {
  74. return new \App\Repositories\Eloquent\DiarySleepLevelFacadeRepository();
  75. });
  76. $this->app->singleton('DiarySleepFacadeRepository', function ($app) {
  77. return new \App\Repositories\Eloquent\DiarySleepFacadeRepository();
  78. });
  79. $this->app->singleton('DiaryLetterFacadeRepository', function ($app) {
  80. return new \App\Repositories\Eloquent\DiaryLetterFacadeRepository();
  81. });
  82. $this->app->singleton('StatisticsFacadeRepository', function ($app) {
  83. return new \App\Repositories\Eloquent\StatisticsFacadeRepository();
  84. });
  85. $this->app->singleton('CollectFacadeRepository', function ($app) {
  86. return new \App\Repositories\Eloquent\CollectFacadeRepository();
  87. });
  88. $this->app->singleton('BrowseRecordFacadeRepository', function ($app) {
  89. return new \App\Repositories\Eloquent\BrowseRecordFacadeRepository();
  90. });
  91. $this->app->singleton('ThirdScaleFacadeRepository', function ($app) {
  92. return new \App\Repositories\Eloquent\ThirdScaleFacadeRepository();
  93. });
  94. $this->app->singleton('ThirdUpFacadeRepository', function ($app) {
  95. return new \App\Repositories\Eloquent\ThirdUpFacadeRepository();
  96. });
  97. $this->app->singleton('ThirdH5ChatFacadeRepository', function ($app) {
  98. return new \App\Repositories\Eloquent\ThirdH5ChatFacadeRepository();
  99. });
  100. $this->app->singleton('VersionFacadeRepository', function ($app) {
  101. return new \App\Repositories\Eloquent\VersionFacadeRepository();
  102. });
  103. $this->app->singleton('PatientCardFacadeRepository', function ($app) {
  104. return new \App\Repositories\Eloquent\PatientCardFacadeRepository();
  105. });
  106. $this->app->singleton('ThirdConsultFacadeRepository', function ($app) {
  107. return new \App\Repositories\Eloquent\ThirdConsultFacadeRepository();
  108. });
  109. $this->app->singleton('AiChatContentFacadeRepository', function ($app) {
  110. return new \App\Repositories\Eloquent\AiChatContentFacadeRepository();
  111. });
  112. $this->app->singleton('RemoteSsoFacadeRepository', function ($app) {
  113. return new \App\Repositories\Eloquent\RemoteSsoFacadeRepository();
  114. });
  115. $this->app->singleton('DashboardFacadeRepository', function ($app) {
  116. return new \App\Repositories\Eloquent\DashboardFacadeRepository();
  117. });
  118. $this->app->singleton('AliSmsFacadeRepository', function ($app) {
  119. return \App\Repositories\Eloquent\AliSmsFacadeRepository::client();
  120. });
  121. }
  122. /**
  123. * Bootstrap services.
  124. *
  125. * @return void
  126. */
  127. public function boot()
  128. {
  129. //
  130. }
  131. }