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

205 行
6.0KB

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