用户契约新增反馈接口

This commit is contained in:
堂吉诃德拉曼查的英豪
2026-08-14 11:13:30 +08:00
parent 5b6a21e148
commit ef8909f94b
2 changed files with 49 additions and 1 deletions

View 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;
}

View File

@@ -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 {}