2025-05-19 16:54:25 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Api\CodeGeneration;
|
|
|
|
|
|
|
|
|
|
use App\BaseApp\BaseController;
|
|
|
|
|
use App\Service\CodeGeneration\ProductService;
|
|
|
|
|
|
|
|
|
|
class ProductController extends BaseController
|
|
|
|
|
{
|
|
|
|
|
//
|
|
|
|
|
public function __construct()
|
|
|
|
|
{
|
|
|
|
|
parent::__construct();
|
2025-05-20 16:52:47 +08:00
|
|
|
$this->insertField = ["title","introduction","cover", "images", "labels","description","price","classification_id"];
|
|
|
|
|
$this->updateField = ["id","title","introduction","cover", "images", "labels","description","price","classification_id"];
|
2025-05-19 16:54:25 +08:00
|
|
|
$this->service = ProductService::getInstance();
|
|
|
|
|
}
|
|
|
|
|
}
|