AssetExportTemp.php 593 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\api\controller\v1;
  3. use app\api\controller\Base;
  4. use app\hander\HelpHander;
  5. use think\Db;
  6. class AssetExportTemp extends Base
  7. {
  8. public function save(){
  9. model('AssetExportTemp')->add();
  10. HelpHander::success([],'操作成功');
  11. }
  12. // 全部列表
  13. public function all(){
  14. $ret = model('AssetExportTemp')->all($this->orgId);
  15. HelpHander::success($ret);
  16. }
  17. // 删除
  18. public function del(){
  19. $id = input('id/d',0);
  20. model('AssetExportTemp')->del($id);
  21. HelpHander::success([],'操作成功');
  22. }
  23. }