状态更新
This commit is contained in:
@@ -43,6 +43,20 @@ class UsedCarController extends BaseController
|
||||
$this->service = new UsedCarService();
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新状态
|
||||
* @return \support\Response
|
||||
*/
|
||||
public function status(Request $request){
|
||||
try {
|
||||
$data = $request->post();
|
||||
$res = $this->service->serviceUpdateStatus($request, $data);
|
||||
return $this->success([], '更新成功');
|
||||
} catch (\Throwable $e) {
|
||||
return $this->error($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 列表页数据格式化
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user