12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace App\Http\Controllers\Api;
- use App\Model\BasicType;
- use App\Service\DouShopService;
- use Illuminate\Http\Request;
- class DouShopController extends BaseController
- {
- public function douShopOrderList(Request $request)
- {
- $service = new DouShopService();
- $userData = $request->userData->toArray();
- list($status,$data) = $service->getOrderList($request->all(),$userData);
- if($status){
- return $this->json_return(200,'',$data);
- }else{
- return $this->json_return(201,$data);
- }
- }
- public function douShopOrderDetail(Request $request)
- {
- $service = new DouShopService();
- $userData = $request->userData->toArray();
- list($status,$data) = $service->getOrderDetail($request->all(),$userData);
- if($status){
- return $this->json_return(200,'',$data);
- }else{
- return $this->json_return(201,$data);
- }
- }
- public function insertDouOrder(Request $request)
- {
- $service = new DouShopService();
- $userData = $request->userData->toArray();
- list($status,$data) = $service->insertDouOrder($request->all(),$userData);
- if($status){
- return $this->json_return(200,'',$data);
- }else{
- return $this->json_return(201,$data);
- }
- }
- }
|