36 lines
853 B
PHP
36 lines
853 B
PHP
<?php
|
|
|
|
namespace App\JsonRpc;
|
|
|
|
use Hyperf\RpcClient\AbstractServiceClient;
|
|
use Hyperf\HttpServer\Contract\RequestInterface;
|
|
|
|
class PunchCardSystemExternalServiceConsumer extends AbstractServiceClient implements PunchCardSystemExternalServiceInterface
|
|
{
|
|
/**
|
|
* 定义对应服务提供者的服务名称
|
|
* @var string
|
|
*/
|
|
protected $serviceName = 'PunchCardSystemExternalService';
|
|
|
|
/**
|
|
* 获取问题反馈类型列表
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getFeedbackTypeList() : array
|
|
{
|
|
return $this->__request(__FUNCTION__, []);
|
|
}
|
|
|
|
/**
|
|
* 保存问题反馈
|
|
*
|
|
* @param RequestInterface $request
|
|
* @return array
|
|
*/
|
|
public function saveFeedback(RequestInterface $request) : array
|
|
{
|
|
return $this->__request(__FUNCTION__, $request->all());
|
|
}
|
|
} |