uniondrug / service-server
server of micro service
Installs: 140
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:project
This package is auto-updated.
Last update: 2024-11-09 18:59:30 UTC
README
UnionDrug微服务
MicroService
服务端producer
。
- PHP
7.1+
- Phalcon
3.2+
Methods
withError
(string
,int
)withList
(array
)withObject
(array
)withPaging
(array
,ResponsePaging
)withSuccess
()setPaging
(int
,int
,int
)
public function postAction(){ $total = 123; $page = 3; $limit = 15; $data = [ ["id" => 1, "key" => "value"], ["id" => 2, "key" => "value2"] ]; $this->serviceServer->setPaging($total, $page, $limit)->withPaging($data); }
Directory
└── vendor
└── uniondrug
└── service-server
├── src
│ └── Server.php
└── README.md
Composer
{ "autoload" : { "psr-4" : { "UniondrugServiceServer\\" : "vendor/uniondrug/service-server/src" } } }