post()->goCheck('add'); (new SelffetchVerifierLogic())->add($params); return $this->success('添加成功',[],1,1); } /** * @notes 编辑核销员 * @return \think\response\Json * @author ljj * @date 2021/8/11 7:37 下午 */ public function edit() { $params = (new SelffetchVerifierValidate())->post()->goCheck('edit'); (new SelffetchVerifierLogic())->edit($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/8/11 7:49 下午 */ public function detail() { $params = (new SelffetchVerifierValidate())->goCheck('detail'); $result = (new SelffetchVerifierLogic())->detail($params); return $this->success('',$result); } /** * @notes 查看核销员列表 * @return \think\response\Json * @author ljj * @date 2021/8/11 8:17 下午 */ public function lists() { return $this->dataLists(new SelffetchVerifierLists()); } /** * @notes 修改核销员状态 * @return \think\response\Json * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author ljj * @date 2021/8/11 8:21 下午 */ public function status() { $params = (new SelffetchVerifierValidate())->post()->goCheck('status'); (new SelffetchVerifierLogic())->status($params); return $this->success('修改成功',[],1,1); } /** * @notes 删除核销员 * @return \think\response\Json * @author ljj * @date 2021/8/11 8:27 下午 */ public function del() { // TODO 暂无限制,可以任意删除 $params = (new SelffetchVerifierValidate())->post()->goCheck('del'); (new SelffetchVerifierLogic())->del($params); return $this->success('删除成功',[],1,1); } }