|
|
@@ -30,48 +30,4 @@ class FirmController extends BaseApiController
|
|
|
}
|
|
|
return $this->fail(FirmLogic::getError());
|
|
|
}
|
|
|
-
|
|
|
- public function orderLists()
|
|
|
- {
|
|
|
- return $this->dataLists(new FirmOrderLists());
|
|
|
- }
|
|
|
-
|
|
|
- public function submitOrder()
|
|
|
- {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- public function goodLists()
|
|
|
- {
|
|
|
- return $this->dataLists(new FirmGoodLists());
|
|
|
- }
|
|
|
- public function goodDetail(){
|
|
|
- $params = (new GoodsValidate())->get()->goCheck('goods',[
|
|
|
- 'user_id'=>$this->userId
|
|
|
- ]);
|
|
|
- $result = GoodsLogic::firmGoodsDetail($params);
|
|
|
- if (false !== $result) {
|
|
|
- return $this->data($result);
|
|
|
- }
|
|
|
- return $this->fail(GoodsLogic::getError());
|
|
|
- }
|
|
|
- public function submitGood()
|
|
|
- {
|
|
|
- $params = (new GoodsValidate())->post()->goCheck('submitGood');
|
|
|
- $result = GoodsLogic::sync($params,$this->userId);
|
|
|
- if (true === $result) {
|
|
|
- return $this->success('已提交', [], 1, 1);
|
|
|
- }
|
|
|
- return $this->fail(FirmLogic::getError());
|
|
|
- }
|
|
|
-
|
|
|
- public function saveUserInfo()
|
|
|
- {
|
|
|
- $params = (new FirmValidate())->post()->goCheck('saveUserInfo');
|
|
|
- $result = UserLogic::saveFirmUserInfo($params,$this->userId);
|
|
|
- if (true === $result) {
|
|
|
- return $this->success('已提交', [], 1, 1);
|
|
|
- }
|
|
|
- return $this->fail(FirmLogic::getError());
|
|
|
- }
|
|
|
}
|