用户契约新增反馈接口
This commit is contained in:
47
src/UserService/JsonRpcInterface/user/FeedbackInterface.php
Normal file
47
src/UserService/JsonRpcInterface/user/FeedbackInterface.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* 用户反馈服务接口
|
||||
*/
|
||||
|
||||
namespace Dhd\Micro\Interface\UserService\JsonRpcInterface\user;
|
||||
|
||||
interface FeedbackInterface
|
||||
{
|
||||
/**
|
||||
* App提交反馈
|
||||
* @param array $params ['user_id' => int, 'content' => string, 'images' => array, 'contact_phone' => string]
|
||||
* @return array ['id' => int]
|
||||
*/
|
||||
public function submitFeedback(array $params): array;
|
||||
|
||||
/**
|
||||
* App我的反馈列表
|
||||
* @param array $params ['user_id' => int, 'page' => int, 'size' => int]
|
||||
* @return array ['list' => array, 'page' => int, 'size' => int, 'total' => int]
|
||||
*/
|
||||
public function getFeedbackList(array $params): array;
|
||||
|
||||
/**
|
||||
* 后台反馈列表
|
||||
* @param array $params ['status' => int, 'keyword' => string, 'contact_phone' => string, 'page' => int, 'size' => int]
|
||||
* @return array ['list' => array, 'page' => int, 'size' => int, 'total' => int]
|
||||
*/
|
||||
public function adminGetFeedbackList(array $params): array;
|
||||
|
||||
/**
|
||||
* 后台反馈详情
|
||||
* @param int $id 反馈ID
|
||||
* @return array
|
||||
*/
|
||||
public function adminGetFeedbackDetail(int $id): array;
|
||||
|
||||
/**
|
||||
* 后台处理反馈
|
||||
* @param int $id 反馈ID
|
||||
* @param int $handlerId 处理人ID(管理员ID)
|
||||
* @param array $params ['status' => int, 'handle_note' => string]
|
||||
* @return bool
|
||||
*/
|
||||
public function adminHandleFeedback(int $id, int $handlerId, array $params): bool;
|
||||
}
|
||||
@@ -12,4 +12,5 @@ interface UserService extends
|
||||
\Dhd\Micro\Interface\UserService\JsonRpcInterface\user\UserInfoCheckInterface,
|
||||
\Dhd\Micro\Interface\UserService\JsonRpcInterface\user\UserCurriculumVitaeInterface,
|
||||
\Dhd\Micro\Interface\UserService\JsonRpcInterface\UserDownloadRecordInterface,
|
||||
\Dhd\Micro\Interface\UserService\JsonRpcInterface\user\StudentScoreInterface {}
|
||||
\Dhd\Micro\Interface\UserService\JsonRpcInterface\user\StudentScoreInterface,
|
||||
\Dhd\Micro\Interface\UserService\JsonRpcInterface\user\FeedbackInterface {}
|
||||
|
||||
Reference in New Issue
Block a user