|
...
|
...
|
@@ -28,18 +28,6 @@ use Mrgoon\AliSms\AliSms; |
|
|
|
class RatingController extends BaseController
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @remark :获取问卷调查记录
|
|
|
|
* @name :getHistory
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/1/20 15:03
|
|
|
|
*/
|
|
|
|
public function getHistory(ScoringSystem $scoringSystem){
|
|
|
|
$info = $scoringSystem->read($this->map);
|
|
|
|
$this->response('success',Code::SUCCESS,$info);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :问卷调查详情
|
|
|
|
* @name :getProjectRead
|
|
|
|
* @author :lyh
|
|
...
|
...
|
@@ -47,6 +35,11 @@ class RatingController extends BaseController |
|
|
|
* @time :2024/1/20 14:11
|
|
|
|
*/
|
|
|
|
public function getProjectRead(RatingLogic $ratingLogic){
|
|
|
|
$this->request->validate([
|
|
|
|
'type' => 'required',
|
|
|
|
],[
|
|
|
|
'type.required' => '问题类型不能为空',
|
|
|
|
]);
|
|
|
|
$info = $ratingLogic->getRatingRead();
|
|
|
|
$this->response('success',Code::SUCCESS,$info);
|
|
|
|
}
|
|
...
|
...
|
@@ -59,6 +52,13 @@ class RatingController extends BaseController |
|
|
|
* @time :2024/1/20 14:43
|
|
|
|
*/
|
|
|
|
public function save(RatingLogic $ratingLogic){
|
|
|
|
$this->request->validate([
|
|
|
|
'data' => 'required',
|
|
|
|
'mobile' => 'required',
|
|
|
|
],[
|
|
|
|
'data.required' => '请填写完整',
|
|
|
|
'mobile.required' => '手机号码不能为空',
|
|
|
|
]);
|
|
|
|
$ratingLogic->ratingSave();
|
|
|
|
$this->response('success');
|
|
|
|
}
|
...
|
...
|
|