dataLists(new StoreUserLists()); } /** * @notes 添加 * @return \think\response\Json * @author likeadmin * @date 2026/02/01 15:08 */ public function add() { $params = (new StoreUserValidate())->post()->goCheck('add'); $result = StoreUserLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(StoreUserLogic::getError()); } /** * @notes 编辑 * @return \think\response\Json * @author likeadmin * @date 2026/02/01 15:08 */ public function edit() { $params = (new StoreUserValidate())->post()->goCheck('edit'); $result = StoreUserLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(StoreUserLogic::getError()); } /** * @notes 删除 * @return \think\response\Json * @author likeadmin * @date 2026/02/01 15:08 */ public function delete() { $params = (new StoreUserValidate())->post()->goCheck('delete'); StoreUserLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取详情 * @return \think\response\Json * @author likeadmin * @date 2026/02/01 15:08 */ public function detail() { $params = (new StoreUserValidate())->goCheck('detail'); $result = StoreUserLogic::detail($params); return $this->data($result); } /** * @notes 门店列表 * @return \think\response\Json * @author likeadmin * @date 2026/01/31 18:38 */ public function storeLists(){ $result = StoreUserLogic::getStore(); return $this->data($result); } }