初始化项目
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?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();
|
||||
$this->insertField = ["title","introduction","cover", "images","description","price","classification_id"];
|
||||
$this->updateField = ["id","title","introduction","cover", "images","description","price","classification_id"];
|
||||
$this->service = ProductService::getInstance();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user