123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\hander\HelpHander;
- use think\Db;
- class AppIconCate extends Base
- {
- // 新增
- public function save(){
- model('AppIconCate')->add();
- HelpHander::success([],'操作成功');
- }
- // 编辑
- public function update(){
- model('AppIconCate')->add();
- HelpHander::success([],'操作成功');
- }
- // 详情
- public function detail(){
- $id = input('id/d',0);
- $ret = model('AppIconCate')->info($id);
- HelpHander::success($ret);
- }
- // 列表
- public function list(){
- $ret = model('AppIconCate')->lists();
- HelpHander::success($ret);
- }
- // 分组图标详情
- public function listDetail(){
- $ret = model('AppIconCate')->listDetail();
- HelpHander::success($ret);
- }
- // 删除
- public function del(){
- $id = input('id/d',0);
- model('AppIconCate')->del($id);
- HelpHander::success([],'操作成功');
- }
- // 修改状态
- public function changeStatus(){
- $id = input('id/d',0);
- $enable = input('enable/d',0);
- model('AppIconCate')->changeStatus($id,$enable);
- HelpHander::success([],'操作成功');
- }
- }
|