|
|
@@ -121,4 +121,20 @@ class SupplyDemandInfoController extends BaseApiController
|
|
|
$result = SupplyDemandLogic::getCateList($params,$this->userId);
|
|
|
return $this->data($result);
|
|
|
}
|
|
|
+ public function delete(){
|
|
|
+ if($this->request->isPost()) {
|
|
|
+
|
|
|
+ $params = (new SupplyDemandValidate())->post()->goCheck('delete');
|
|
|
+
|
|
|
+ $result = SupplyDemandLogic::delete($params);
|
|
|
+ if (true === $result) {
|
|
|
+
|
|
|
+ return $this->success('删除成功', [], 1, 1);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }else{
|
|
|
+ return $this->fail('请求方式错误');
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|