完善问题反馈功能

This commit is contained in:
fantasticbin 2022-11-16 15:57:58 +08:00
parent fe656375b4
commit 6b2eb3cff8
3 changed files with 28 additions and 0 deletions

View File

@ -58,6 +58,17 @@ class UserController extends BaseController
// TODO 逻辑完善 // TODO 逻辑完善
} }
/**
* 获取问题反馈类型列表
*
* @return array
*/
#[GetMapping(path: "user/feedback_type")]
public function getFeedbackTypeList() : array
{
return $this->getServiceResult($this->punchCardSystemExternalService->getFeedbackTypeList());
}
/** /**
* 保存问题反馈 * 保存问题反馈
* *

View File

@ -13,6 +13,16 @@ class PunchCardSystemExternalServiceConsumer extends AbstractServiceClient imple
*/ */
protected $serviceName = 'PunchCardSystemExternalService'; protected $serviceName = 'PunchCardSystemExternalService';
/**
* 获取问题反馈类型列表
*
* @return array
*/
public function getFeedbackTypeList() : array
{
return $this->__request(__FUNCTION__, []);
}
/** /**
* 保存问题反馈 * 保存问题反馈
* *

View File

@ -6,6 +6,13 @@ use Hyperf\HttpServer\Contract\RequestInterface;
interface PunchCardSystemExternalServiceInterface interface PunchCardSystemExternalServiceInterface
{ {
/**
* 获取问题反馈类型列表
*
* @return array
*/
public function getFeedbackTypeList() : array;
/** /**
* 保存问题反馈 * 保存问题反馈
* *