12345678910111213141516171819202122232425262728 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\hander\HelpHander;
- use think\Db;
- class AssetExportTemp extends Base
- {
- public function save(){
- model('AssetExportTemp')->add();
- HelpHander::success([],'操作成功');
- }
- // 全部列表
- public function all(){
- $ret = model('AssetExportTemp')->all($this->orgId);
- HelpHander::success($ret);
- }
- // 删除
- public function del(){
- $id = input('id/d',0);
- model('AssetExportTemp')->del($id);
- HelpHander::success([],'操作成功');
- }
- }
|