7 changed files with 81 additions and 15 deletions
-
5app/Constants/ErrorCode.php
-
15app/Controller/ServiceEvaluateController.php
-
11app/Exception/Handler/ValidationExceptionHandler.php
-
22app/Model/ServiceEvaluate.php
-
23app/Request/EvaluateRequest.php
-
18app/Service/ServiceEvaluateService.php
-
2app/Service/ServiceEvaluateServiceInterface.php
@ -0,0 +1,22 @@ |
|||
<?php |
|||
|
|||
namespace App\Model; |
|||
|
|||
class ServiceEvaluate extends Model |
|||
{ |
|||
/** |
|||
* @var string table name |
|||
*/ |
|||
protected $table = 'lanzu_service_evaluate'; |
|||
|
|||
/** |
|||
* @var array 允许插入的属性 |
|||
*/ |
|||
protected $fillable = ['user_id', 'user_created_at', 'service_personnel_id', 'market_id', 'c_attitude', 'c_service', 'c_quality', 'content']; |
|||
|
|||
/** |
|||
* 默认值 |
|||
*/ |
|||
protected $attributes = []; |
|||
|
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue