更新若干功能
This commit is contained in:
30
app/Http/Controllers/Wx/FeedbackController.php
Normal file
30
app/Http/Controllers/Wx/FeedbackController.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Wx;
|
||||
|
||||
use App\BaseApp\BaseController;
|
||||
use App\Service\wx\WxFeedbackService;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
|
||||
/**
|
||||
* 小程序反馈
|
||||
*/
|
||||
class FeedbackController extends BaseController
|
||||
{
|
||||
protected array $exceptRoute = ['option', 'detail', 'update', 'delete'];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->service = WxFeedbackService::getInstance();
|
||||
}
|
||||
|
||||
/**
|
||||
* 提交反馈
|
||||
* @Method POST
|
||||
*/
|
||||
public function create(): JsonResponse
|
||||
{
|
||||
return jok($this->service->create(request()->post()), '已提交');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user