01/02
2018
Wallogit.com
2017 © Pedro Peláez
server of micro service
UnionDrug微服务
MicroService服务端producer。, (*1)
7.1+
3.2+
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, (*2)
└── vendor
└── uniondrug
└── service-server
├── src
│ └── Server.php
└── README.md
Composer, (*3)
{
"autoload" : {
"psr-4" : {
"UniondrugServiceServer\\" : "vendor/uniondrug/service-server/src"
}
}
}