12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\hander\HelpHander;
- use think\Db;
- class AppIcon extends Base
- {
- // 新增
- public function save(){
- model('AppIcon')->add();
- HelpHander::success([],'操作成功');
- }
- // 编辑
- public function update(){
- model('AppIcon')->add();
- HelpHander::success([],'操作成功');
- }
- // 详情
- public function detail(){
- $id = input('id/d',0);
- $ret = model('AppIcon')->info($id);
- HelpHander::success($ret);
- }
- // 列表
- public function list(){
- $page = input('page/d',1);
- $size = input('size/d',10);
- $ret = model('AppIcon')->lists($page,$size);
- HelpHander::success($ret);
- }
- // 删除
- public function del(){
- $id = input('id/d',0);
- model('AppIcon')->del($id);
- HelpHander::success([],'操作成功');
- }
- // 修改状态
- public function changeStatus(){
- $id = input('id/d',0);
- $enable = input('enable/d',0);
- model('AppIcon')->changeStatus($id,$enable);
- HelpHander::success([],'操作成功');
- }
- //APP常用功能icon列表
- public function queryUserAllIcon(){
- $page = input('page/d',1);
- $size = input('size/d',10);
- $ret = model('AppIcon')->queryUserAllIcon($page,$size,$this->userId,$this->orgId);
- HelpHander::success($ret);
- }
- }
|