You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
876 B
38 lines
876 B
<?php
|
|
|
|
namespace App\Controller;
|
|
|
|
use App\Constants\ErrorCode;
|
|
use App\Exception\BusinessException;
|
|
use App\Request\EvaluateRequest;
|
|
use App\Service\ServiceEvaluateServiceInterface;
|
|
use Hyperf\Di\Annotation\Inject;
|
|
|
|
class ServiceEvaluateController extends BaseController
|
|
{
|
|
/**
|
|
* @Inject
|
|
* @var ServiceEvaluateServiceInterface
|
|
*/
|
|
protected $evaluateService;
|
|
|
|
/**
|
|
* 提交评价
|
|
*
|
|
* 评价内容:
|
|
* 服务态度评分、服务质量评分、满意度评分、评价内容
|
|
* 关联信息:
|
|
* 服务专员ID、市场ID、评价的用户ID
|
|
* 查询信息:
|
|
* 用户注册/创建时间
|
|
*
|
|
*/
|
|
public function evaluate(EvaluateRequest $validator)
|
|
{
|
|
// TODO 数据保存失败的返回处理
|
|
$ret = $this->evaluateService->evaluate();
|
|
return $this->success($ret);
|
|
|
|
}
|
|
|
|
}
|