dataLists(); } /** * @notes 新增用户标签 * @return \think\response\Json * @author cjhao * @date 2021/7/28 17:48 */ public function add() { $params = (new UserLableValidate())->post()->goCheck('add'); (new UserLabelLogic)->add($params); return $this->success('添加标签成功', [], 1, 1); } /** * @notes 获取用户标签 * @return \think\response\Json * @author cjhao * @date 2021/7/28 18:05 */ public function detail() { $id = $this->request->get('id'); $detail = (new UserLabelLogic())->detail($id); return $this->success('',$detail); } /** * @notes 编辑用户标签 * @return \think\response\Json * @author cjhao * @date 2021/7/28 18:06 */ public function edit() { $params = (new UserLableValidate())->post()->goCheck('edit'); (new UserLabelLogic())->edit($params); return $this->success('修改标签成功', [], 1, 1); } /** * @notes 删除标签 * @return \think\response\Json * @author cjhao * @date 2021/7/28 18:38 */ public function del(){ $params = (new UserLableValidate())->post()->goCheck('del'); (new UserLabelLogic())->del($params['ids']); return $this->success('删除成功'); } }