|
|
@@ -77,29 +77,17 @@ class AssetLeaseController extends BaseAdminController
|
|
|
return $this->fail(AssetLeaseLists::getError());
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * @notes 删除资讯
|
|
|
- * @return \think\response\Json
|
|
|
- * @author heshihu
|
|
|
- * @date 2022/2/22 10:17
|
|
|
- */
|
|
|
- public function delete()
|
|
|
- {
|
|
|
- $params = (new AssetValidate())->post()->goCheck('delete');
|
|
|
- AssetLists::delete($params);
|
|
|
- return $this->success('删除成功', [], 1, 1);
|
|
|
- }
|
|
|
|
|
|
/**
|
|
|
- * @notes 资产详情
|
|
|
+ * @notes 租赁详情
|
|
|
* @return \think\response\Json
|
|
|
* @author heshihu
|
|
|
* @date 2022/2/22 10:15
|
|
|
*/
|
|
|
public function detail()
|
|
|
{
|
|
|
- $params = (new AssetValidate())->goCheck('detail');
|
|
|
- $result = AssetLists::detail($params);
|
|
|
+ $params = (new AssetLeaseValidate())->goCheck('detail');
|
|
|
+ $result = AssetLeaseLists::detail($params);
|
|
|
return $this->data($result);
|
|
|
}
|
|
|
|