request->get('goods_category_id', 0); $result = FaultTypeLogic::getAllData('api',$goods_category_id); return $this->data($result); } /** * @notes 获取列表 * @return \think\response\Json * @author likeadmin * @date 2024/10/18 09:58 */ public function lists() { $params = (new FaultCodeValidate())->goCheck('detail'); $result = FaultCodeLogic::lists($params); return $this->data($result); } /** * @notes 故障搜索 * @return \think\response\Json * @author likeadmin * @date 2024/10/18 09:58 */ public function search() { return $this->dataLists(new FaultSearchLists()); } }