dataLists(new SystemStoreLists()); } /** * @notes 根据商品源获取门店列表 * @return \think\response\Json * @author admin * @date 2024/05/31 17:45 */ public function source_product_store_lists() { return $this->dataLists(new SystemStoreSourceLists()); } /** * @notes 添加门店列表 * @return \think\response\Json * @author admin * @date 2024/05/31 17:45 */ public function add() { $params = (new SystemStoreValidate())->post()->goCheck('add'); $result = SystemStoreLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(SystemStoreLogic::getError()); } /** * @notes 编辑门店列表 * @return \think\response\Json * @author admin * @date 2024/05/31 17:45 */ public function edit() { $params = (new SystemStoreValidate())->post()->goCheck('edit'); $result = SystemStoreLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(SystemStoreLogic::getError()); } /** * @notes 删除门店列表 * @return \think\response\Json * @author admin * @date 2024/05/31 17:45 */ public function delete() { $params = (new SystemStoreValidate())->post()->goCheck('delete'); SystemStoreLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取门店列表详情 * @return \think\response\Json * @author admin * @date 2024/05/31 17:45 */ public function detail() { $params = (new SystemStoreValidate())->goCheck('detail'); $result = SystemStoreLogic::detail($params); return $this->data($result); } }