12345678910111213141516171819202122232425262728 |
- <?php
- namespace app\mobile\controller;
- use app\BaseController;
- use app\mobile\logic\ServiceLogic;
- //服务
- class Service extends BaseController
- {
- //列表
- public function list()
- {
- $param = $this->request->only(['page' => 1, 'size' => 10], 'post');
- return ServiceLogic::list($param);
- }
-
- //详情
- public function read()
- {
- $id = $this->request->post('id/d', 0);
- return ServiceLogic::read($id);
- }
- }
|