AssetReceive.php 448 B

123456789101112131415161718192021222324
  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 AssetReceive extends Base
  7. {
  8. // 新增
  9. public function save(){
  10. model('AssetReceive')->add();
  11. HelpHander::success([],'操作成功');
  12. }
  13. // 详情
  14. public function detail(){
  15. $id = input('id/d',0);
  16. $ret = model('AssetReceive')->info($id);
  17. HelpHander::success($ret);
  18. }
  19. }