您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

BusinessLogicTrait.php 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <?php
  2. namespace common\components;
  3. use common\logic\Config\TaxRate\Module\TaxRateModule;
  4. use common\logic\Distribution\Distribution\Module\DistributionModule;
  5. use common\logic\Distribution\PointSaleDistribution\Module\PointSaleDistributionModule;
  6. use common\logic\Distribution\ProductDistribution\Module\ProductDistributionModule;
  7. use common\logic\Document\DeliveryNote\Module\DeliveryNoteModule;
  8. use common\logic\Document\Document\Module\DocumentModule;
  9. use common\logic\Document\Invoice\Module\InvoiceModule;
  10. use common\logic\Document\Quotation\Module\QuotationModule;
  11. use common\logic\Opinion\Module\OpinionModule;
  12. use common\logic\Order\Order\Module\OrderModule;
  13. use common\logic\Order\ProductOrder\Module\ProductOrderModule;
  14. use common\logic\Payment\Module\PaymentModule;
  15. use common\logic\PointSale\PointSale\Module\PointSaleModule;
  16. use common\logic\PointSale\UserPointSale\Module\UserPointSaleModule;
  17. use common\logic\Producer\Producer\Module\ProducerModule;
  18. use common\logic\Producer\ProducerPriceRange\Module\ProducerPriceRangeModule;
  19. use common\logic\Product\Product\Module\ProductModule;
  20. use common\logic\Product\ProductCategory\Module\ProductCategoryModule;
  21. use common\logic\Product\ProductPointSale\Module\ProductPointSaleModule;
  22. use common\logic\Product\ProductPrice\Module\ProductPriceModule;
  23. use common\logic\Subscription\ProductSubscription\Module\ProductSubscriptionModule;
  24. use common\logic\Subscription\Subscription\Module\SubscriptionModule;
  25. use common\logic\Ticket\Ticket\Module\TicketModule;
  26. use common\logic\Ticket\TicketMessage\Module\TicketMessageModule;
  27. use common\logic\Ticket\TicketUser\Module\TicketUserModule;
  28. use common\logic\User\User\Module\UserModule;
  29. use common\logic\User\UserGroup\Module\UserGroupModule;
  30. use common\logic\User\UserProducer\Module\UserProducerModule;
  31. use common\logic\User\UserUserGroup\Module\UserUserGroupModule;
  32. trait BusinessLogicTrait
  33. {
  34. public function getOpinionModule(): OpinionModule
  35. {
  36. return OpinionModule::getInstance();
  37. }
  38. public function getUserProducerModule(): UserProducerModule
  39. {
  40. return UserProducerModule::getInstance();
  41. }
  42. public function getOrderModule(): OrderModule
  43. {
  44. return OrderModule::getInstance();
  45. }
  46. public function getTaxRateModule(): TaxRateModule
  47. {
  48. return TaxRateModule::getInstance();
  49. }
  50. public function getDistributionModule(): DistributionModule
  51. {
  52. return DistributionModule::getInstance();
  53. }
  54. public function getPointSaleDistributionModule(): PointSaleDistributionModule
  55. {
  56. return PointSaleDistributionModule::getInstance();
  57. }
  58. public function getProductDistributionModule(): ProductDistributionModule
  59. {
  60. return ProductDistributionModule::getInstance();
  61. }
  62. public function getDeliveryNoteModule(): DeliveryNoteModule
  63. {
  64. return DeliveryNoteModule::getInstance();
  65. }
  66. public function getDocumentModule(): DocumentModule
  67. {
  68. return DocumentModule::getInstance();
  69. }
  70. public function getInvoiceModule(): InvoiceModule
  71. {
  72. return InvoiceModule::getInstance();
  73. }
  74. public function getQuotationModule(): QuotationModule
  75. {
  76. return QuotationModule::getInstance();
  77. }
  78. public function getProductOrderModule(): ProductOrderModule
  79. {
  80. return ProductOrderModule::getInstance();
  81. }
  82. public function getPointSaleModule(): PointSaleModule
  83. {
  84. return PointSaleModule::getInstance();
  85. }
  86. public function getUserPointSaleModule(): UserPointSaleModule
  87. {
  88. return UserPointSaleModule::getInstance();
  89. }
  90. public function getProducerModule(): ProducerModule
  91. {
  92. return ProducerModule::getInstance();
  93. }
  94. public function getProducerPriceRangeModule(): ProducerPriceRangeModule
  95. {
  96. return ProducerPriceRangeModule::getInstance();
  97. }
  98. public function getProductModule(): ProductModule
  99. {
  100. return ProductModule::getInstance();
  101. }
  102. public function getProductCategoryModule(): ProductCategoryModule
  103. {
  104. return ProductCategoryModule::getInstance();
  105. }
  106. public function getProductPointSaleModule(): ProductPointSaleModule
  107. {
  108. return ProductPointSaleModule::getInstance();
  109. }
  110. public function getProductPriceModule(): ProductPriceModule
  111. {
  112. return ProductPriceModule::getInstance();
  113. }
  114. public function getProductSubscriptionModule(): ProductSubscriptionModule
  115. {
  116. return ProductSubscriptionModule::getInstance();
  117. }
  118. public function getSubscriptionModule(): SubscriptionModule
  119. {
  120. return SubscriptionModule::getInstance();
  121. }
  122. public function getPaymentModule(): PaymentModule
  123. {
  124. return PaymentModule::getInstance();
  125. }
  126. public function getUserModule(): UserModule
  127. {
  128. return UserModule::getInstance();
  129. }
  130. public function getUserGroupModule(): UserGroupModule
  131. {
  132. return UserGroupModule::getInstance();
  133. }
  134. public function getUserUserGroupModule(): UserUserGroupModule
  135. {
  136. return UserUserGroupModule::getInstance();
  137. }
  138. public function getTicketModule(): TicketModule
  139. {
  140. return TicketModule::getInstance();
  141. }
  142. public function getTicketMessageModule(): TicketMessageModule
  143. {
  144. return TicketMessageModule::getInstance();
  145. }
  146. public function getTicketUserModule(): TicketUserModule
  147. {
  148. return TicketUserModule::getInstance();
  149. }
  150. }