|
@@ -18,7 +18,7 @@ namespace app\store\controller;
|
|
|
use library\Controller;
|
|
|
|
|
|
/**
|
|
|
- * 行业
|
|
|
+ * 行业管理
|
|
|
* Class CategoryLabel
|
|
|
* @package app\store\controller
|
|
|
*/
|
|
@@ -33,7 +33,7 @@ class Industry extends Controller
|
|
|
protected $table = 'q_industry';
|
|
|
|
|
|
/**
|
|
|
- * 轮播数据
|
|
|
+ * 行业列表
|
|
|
* @auth true
|
|
|
* @menu true
|
|
|
* @throws \think\Exception
|
|
@@ -50,7 +50,7 @@ class Industry extends Controller
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 添加商品分类
|
|
|
+ * 添加
|
|
|
* @auth true
|
|
|
* @throws \think\Exception
|
|
|
* @throws \think\db\exception\DataNotFoundException
|
|
@@ -65,7 +65,7 @@ class Industry extends Controller
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 编辑商品分类
|
|
|
+ * 编辑
|
|
|
* @auth true
|
|
|
* @throws \think\Exception
|
|
|
* @throws \think\db\exception\DataNotFoundException
|
|
@@ -79,28 +79,7 @@ class Industry extends Controller
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 禁用商品分类
|
|
|
- * @auth true
|
|
|
- * @throws \think\Exception
|
|
|
- * @throws \think\exception\PDOException
|
|
|
- */
|
|
|
- public function forbid()
|
|
|
- {
|
|
|
- $this->_save($this->table, ['is_show' => '0']);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 启用商品分类
|
|
|
- * @auth true
|
|
|
- * @throws \think\Exception
|
|
|
- * @throws \think\exception\PDOException
|
|
|
- */
|
|
|
- public function resume()
|
|
|
- {
|
|
|
- $this->_save($this->table, ['is_show' => '1']);
|
|
|
- }
|
|
|
- /**
|
|
|
- * 软删除
|
|
|
+ * 删除
|
|
|
* @auth true
|
|
|
* @throws \think\Exception
|
|
|
* @throws \think\exception\PDOException
|
|
@@ -110,15 +89,6 @@ class Industry extends Controller
|
|
|
$this->_save($this->table, ['is_del' => '0']);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 删除商品分类
|
|
|
- * @auth true
|
|
|
- * @throws \think\Exception
|
|
|
- * @throws \think\exception\PDOException
|
|
|
- */
|
|
|
- public function remove()
|
|
|
- {
|
|
|
- $this->_delete($this->table);
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
}
|