services.php 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. return [
  3. 'consumers' => [
  4. [
  5. // 用戶中心
  6. 'name' => 'UserService',
  7. 'service' => \App\JsonRpc\UserServiceInterface::class,
  8. // 直接对指定的节点进行消费,通过下面的 nodes 参数来配置服务提供者的节点信息
  9. 'nodes' => [
  10. ['host' => '127.0.0.1', 'port' => 9504],
  11. ],
  12. ],
  13. [
  14. // 权限管理
  15. 'name' => 'AuthorityService',
  16. 'service' => \App\JsonRpc\AuthorityServiceInterface::class,
  17. // 直接对指定的节点进行消费,通过下面的 nodes 参数来配置服务提供者的节点信息
  18. 'nodes' => [
  19. ['host' => '127.0.0.1', 'port' => 9504],
  20. ],
  21. ],
  22. [
  23. // 广告中心
  24. 'name' => 'AdService',
  25. 'service' => \App\JsonRpc\AdServiceInterface::class,
  26. // 直接对指定的节点进行消费,通过下面的 nodes 参数来配置服务提供者的节点信息
  27. 'nodes' => [
  28. ['host' => '127.0.0.1', 'port' => 9503],
  29. ],
  30. ],
  31. [
  32. //网站管理
  33. 'name' => 'WebsiteService',
  34. 'service' => \App\JsonRpc\WebsiteServiceInterface::class,
  35. // 直接对指定的节点进行消费,通过下面的 nodes 参数来配置服务提供者的节点信息
  36. 'nodes' => [
  37. ['host' => '127.0.0.1', 'port' => 9502],
  38. ],
  39. ],
  40. [
  41. //公共方法
  42. 'name' => 'PublicRpcService',
  43. 'service' => \App\JsonRpc\PublicRpcServiceInterface::class,
  44. // 直接对指定的节点进行消费,通过下面的 nodes 参数来配置服务提供者的节点信息
  45. 'nodes' => [
  46. ['host' => '127.0.0.1', 'port' => 9502],
  47. ],
  48. ],
  49. [
  50. //资讯-新闻
  51. 'name' => 'NewsService',
  52. 'service' => \App\JsonRpc\NewsServiceInterface::class,
  53. // 直接对指定的节点进行消费,通过下面的 nodes 参数来配置服务提供者的节点信息
  54. 'nodes' => [
  55. ['host' => '127.0.0.1', 'port' => 9505],
  56. ],
  57. ],
  58. [
  59. //友情链接服务
  60. 'name' => 'LinkService',
  61. 'service' => \App\JsonRpc\LinkServiceInterface::class,
  62. // 直接对指定的节点进行消费,通过下面的 nodes 参数来配置服务提供者的节点信息
  63. 'nodes' => [
  64. ['host' => '127.0.0.1', 'port' => 9502],
  65. ],
  66. ],
  67. [
  68. //友情链接服务
  69. 'name' => 'ChatService',
  70. 'service' => \App\JsonRpc\ChatServiceInterface::class,
  71. // 直接对指定的节点进行消费,通过下面的 nodes 参数来配置服务提供者的节点信息
  72. 'nodes' => [
  73. ['host' => '127.0.0.1', 'port' => 9507],
  74. ],
  75. ],
  76. [
  77. //广告订单服务
  78. 'name' => 'OrderService',
  79. 'service' => \App\JsonRpc\OrderServiceInterface::class,
  80. // 直接对指定的节点进行消费,通过下面的 nodes 参数来配置服务提供者的节点信息
  81. 'nodes' => [
  82. ['host' => '127.0.0.1', 'port' => 9508],
  83. ],
  84. ],
  85. [
  86. //广告订单服务
  87. 'name' => 'CollectorService',
  88. 'service' => \App\JsonRpc\CollectorServiceInterface::class,
  89. // 直接对指定的节点进行消费,通过下面的 nodes 参数来配置服务提供者的节点信息
  90. 'nodes' => [
  91. ['host' => '127.0.0.1', 'port' => 9509],
  92. ],
  93. ],
  94. ],
  95. ];