dataLists(new OrderTimeLists()); } /** * @notes 设置可预约天数 * @return \think\response\Json * @author ljj * @date 2022/2/11 6:08 下午 */ public function setTime() { $params = (new OrderTimeValidate())->post()->goCheck('setTime'); (new OrderTimeLogic())->setTime($params); return $this->success('操作成功',[],1,1); } /** * @notes 获取可预约天数 * @return \think\response\Json * @author ljj * @date 2022/2/11 6:13 下午 */ public function getTime() { $result = (new OrderTimeLogic())->getTime(); return $this->success('获取成功',$result); } /** * @notes 添加预约时间段 * @return \think\response\Json * @author ljj * @date 2022/2/11 6:25 下午 */ public function add() { $params = (new OrderTimeValidate())->post()->goCheck('add'); (new OrderTimeLogic())->add($params); return $this->success('操作成功',[],1,1); } /** * @notes 查看时间段详情 * @return \think\response\Json * @author ljj * @date 2022/2/11 6:40 下午 */ public function detail() { $params = (new OrderTimeValidate())->get()->goCheck('detail'); $result = (new OrderTimeLogic())->detail($params['id']); return $this->success('获取成功',$result); } /** * @notes 编辑时间段 * @return \think\response\Json * @author ljj * @date 2022/2/11 6:41 下午 */ public function edit() { $params = (new OrderTimeValidate())->post()->goCheck('edit'); (new OrderTimeLogic())->edit($params); return $this->success('操作成功',[],1,1); } /** * @notes 删除时间段 * @return \think\response\Json * @author ljj * @date 2022/2/11 6:45 下午 */ public function del() { $params = (new OrderTimeValidate())->post()->goCheck('del'); (new OrderTimeLogic())->del($params); return $this->success('操作成功',[],1,1); } /** * @notes 修改排序 * @return \think\response\Json * @author ljj * @date 2022/11/28 18:20 */ public function sort() { $params = (new OrderTimeValidate())->post()->goCheck('sort'); (new OrderTimeLogic())->sort($params); return $this->success('操作成功',[],1,1); } }