post()->goCheck('add'); (new ExpressLogic())->add($params); return $this->success('添加成功',[],1, 1); } /** * @notes 查看快递公司列表 * @return \think\response\Json * @author ljj * @date 2021/7/29 4:41 下午 */ public function lists() { return $this->dataLists(new ExpressLists()); } /** * @notes 编辑快递公司 * @return \think\response\Json * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author ljj * @date 2021/7/29 5:43 下午 */ public function edit() { $params = (new ExpressValidate())->post()->goCheck('edit'); (new ExpressLogic())->edit($params); return $this->success('修改成功',[],1,1); } /** * @notes 删除快递公司 * @return \think\response\Json * @author ljj * @date 2021/7/29 5:27 下午 */ public function del() { $params = (new ExpressValidate())->post()->goCheck('del'); (new ExpressLogic())->del($params); return $this->success('删除成功',[],1,1); } /** * @notes 查看快递公司详情 * @return \think\response\Json * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author ljj * @date 2021/7/29 5:43 下午 */ public function detail() { $params = (new ExpressValidate())->goCheck('detail'); $result = (new ExpressLogic())->detail($params); return $this->success('获取成功',$result); } }