|
|
@@ -34,4 +34,16 @@ class ReturnWorkController extends BaseApiController
|
|
|
}
|
|
|
return $this->data($result);
|
|
|
}
|
|
|
+
|
|
|
+ public function updateReturn()
|
|
|
+ {
|
|
|
+ $params = (new ReturnWorkValidate())->goCheck('update',[
|
|
|
+ 'user_id' => $this->userId,
|
|
|
+ ]);
|
|
|
+ $result = ReturnWorkLogic::updateReturn($params);
|
|
|
+ if (false === $result) {
|
|
|
+ return $this->fail(ReturnWorkLogic::getError());
|
|
|
+ }
|
|
|
+ return $this->data($result);
|
|
|
+ }
|
|
|
}
|