|
@@ -237,5 +237,26 @@ class UserServiceController extends BaseAdminController
|
|
|
UserServiceLogic::addMechanicalCate($params);
|
|
UserServiceLogic::addMechanicalCate($params);
|
|
|
return $this->success('添加成功', [], 1, 1);
|
|
return $this->success('添加成功', [], 1, 1);
|
|
|
}
|
|
}
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @notes 机械分类详情
|
|
|
|
|
+ * @return \think\response\Json
|
|
|
|
|
+ * @author heshihu
|
|
|
|
|
+ * @date 2022/2/21 17:54
|
|
|
|
|
+ */
|
|
|
|
|
+ public function mechanicalCateDetail()
|
|
|
|
|
+ {
|
|
|
|
|
+ $params = (new UserServiceValidate())->goCheck('cateDetail');
|
|
|
|
|
+ $result = UserServiceLogic::cate_detail($params);
|
|
|
|
|
+ return $this->data($result);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
+ public function editMechanicalCate()
|
|
|
|
|
+ {
|
|
|
|
|
+ $params = (new UserServiceValidate())->post()->goCheck('editCate');
|
|
|
|
|
+ $result = UserServiceLogic::editCate($params);
|
|
|
|
|
+ if (true === $result) {
|
|
|
|
|
+ return $this->success('编辑成功', [], 1, 1);
|
|
|
|
|
+ }
|
|
|
|
|
+ return $this->fail(UserServiceLogic::getError());
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|