data_center/app/adminapi/controller/company/MerchantController.php

42 lines
1.3 KiB
PHP

<?php
namespace app\adminapi\controller\company;
use app\adminapi\controller\BaseAdminController;
use think\response\Json;
class MerchantController extends BaseAdminController
{
//商户档案列表
public function merchantRecordLists(): Json
{
$params = $this->request->get(['page_no','page_size','merchant_name','master_name','master_phone']);
$result = curl_post(env('project.worker_domain').'/middleapi/merchant/merchantRecordLists',$params,$this->reqHeader);
if($result['code'] == 0){
return $this->fail($result['msg']);
}
return json($result);
}
//商户认证列表
public function merchantAuthLists(): Json
{
$params = $this->request->get(['page_no','page_size','merchant_name','organization_code','master_name']);
$result = curl_post(env('project.worker_domain').'/middleapi/merchant/merchantAuthLists',$params,$this->reqHeader);
if($result['code'] == 0){
return $this->fail($result['msg']);
}
return json($result);
}
//商户申请列表
public function merchantApplyLists(): Json
{
$params = $this->request->get(['page_no','page_size','check_status','type']);
$result = curl_post(env('project.worker_domain').'/middleapi/merchant/merchantApplyLists',$params,$this->reqHeader);
if($result['code'] == 0){
return $this->fail($result['msg']);
}
return json($result);
}
}