初始化

缺陷:主题配色需要优化整体的同风格
This commit is contained in:
2026-08-14 23:21:21 +08:00
parent 6e2769c528
commit bcf54c2727
152 changed files with 13521 additions and 141 deletions

View File

@@ -0,0 +1,35 @@
<?php
namespace App\Http\Controllers\Api;
use App\BaseApp\BaseController;
use App\Service\business\CarouselService;
use Exception;
use Illuminate\Http\JsonResponse;
/**
* 小程序轮播图
*/
class CarouselController extends BaseController
{
public function __construct()
{
parent::__construct();
$this->service = CarouselService::getInstance();
$this->insertField = ['url'];
$this->updateField = ['id', 'url'];
$this->notRequest = ['to_path', 'sort', 'status'];
}
/**
* 启用 / 禁用
* @Method POST
* @throws Exception
*/
public function status(): JsonResponse
{
$this->insertField = ['id', 'status'];
$params = $this->checkRequiredFields(request()->post());
return jok($this->service->status($params['id'], $params['status']), '操作成功');
}
}