31 lines
616 B
PHP
31 lines
616 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Wx;
|
|
|
|
use App\BaseApp\BaseController;
|
|
use App\Service\wx\WxFactoryService;
|
|
use Illuminate\Http\JsonResponse;
|
|
|
|
/**
|
|
* 小程序工厂(免登录)
|
|
*/
|
|
class FactoryController extends BaseController
|
|
{
|
|
protected array $exceptRoute = ['option', 'create', 'update', 'delete'];
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->service = WxFactoryService::getInstance();
|
|
}
|
|
|
|
/**
|
|
* 工厂分类
|
|
* @Method GET
|
|
*/
|
|
public function classList(): JsonResponse
|
|
{
|
|
return jok($this->service->classList());
|
|
}
|
|
}
|