platform notify
This commit is contained in:
23
app/Bean/Service/HttpServiceConfigBean.php
Normal file
23
app/Bean/Service/HttpServiceConfigBean.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
namespace App\Bean\Service;
|
||||
|
||||
use App\Bean\Model\Base\BaseBean;
|
||||
|
||||
class HttpServiceConfigBean extends BaseBean
|
||||
{
|
||||
protected bool $is_return_json = true;
|
||||
|
||||
public function isIsReturnJson(): bool
|
||||
{
|
||||
return $this->is_return_json;
|
||||
}
|
||||
|
||||
public function setIsReturnJson(bool $is_return_json): void
|
||||
{
|
||||
$this->is_return_json = $is_return_json;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
66
app/Bean/Service/HttpServiceReturnLogBean.php
Normal file
66
app/Bean/Service/HttpServiceReturnLogBean.php
Normal file
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
namespace App\Bean\Service;
|
||||
|
||||
use App\Bean\Model\Base\BaseBean;
|
||||
|
||||
class HttpServiceReturnLogBean extends BaseBean
|
||||
{
|
||||
protected $request_url;
|
||||
protected $request_data;
|
||||
protected $request_header;
|
||||
protected $response_body;
|
||||
protected $response_status_code;
|
||||
|
||||
public function getResponseStatusCode()
|
||||
{
|
||||
return $this->response_status_code;
|
||||
}
|
||||
|
||||
public function setResponseStatusCode($response_status_code): void
|
||||
{
|
||||
$this->response_status_code = $response_status_code;
|
||||
}
|
||||
|
||||
public function getRequestUrl()
|
||||
{
|
||||
return $this->request_url;
|
||||
}
|
||||
|
||||
public function setRequestUrl($request_url): void
|
||||
{
|
||||
$this->request_url = $request_url;
|
||||
}
|
||||
|
||||
public function getRequestData()
|
||||
{
|
||||
return $this->request_data;
|
||||
}
|
||||
|
||||
public function setRequestData($request_data): void
|
||||
{
|
||||
$this->request_data = $request_data;
|
||||
}
|
||||
|
||||
public function getRequestHeader()
|
||||
{
|
||||
return $this->request_header;
|
||||
}
|
||||
|
||||
public function setRequestHeader($request_header): void
|
||||
{
|
||||
$this->request_header = $request_header;
|
||||
}
|
||||
|
||||
public function getResponseBody()
|
||||
{
|
||||
return $this->response_body;
|
||||
}
|
||||
|
||||
public function setResponseBody($response_body): void
|
||||
{
|
||||
$this->response_body = $response_body;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user