初始化项目
Some checks failed
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled

This commit is contained in:
2025-05-19 16:54:25 +08:00
parent fa27b46caf
commit 5bd5938e5c
26 changed files with 2638 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Http\Controllers\Api\CodeGeneration;
use App\BaseApp\BaseController;
use App\Service\CodeGeneration\ProductClassificationService;
class ProductClassificationController extends BaseController
{
//
public function __construct()
{
parent::__construct();
$this->insertField = ["name","cover","pid"];
$this->updateField = ["id","name","cover","pid"];
$this->service = ProductClassificationService::getInstance();
}
}

View File

@@ -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();
}
}

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Http\Controllers\Api\CodeGeneration;
use App\BaseApp\BaseController;
use App\Service\CodeGeneration\ProductImageService;
class ProductImageController extends BaseController
{
//
public function __construct()
{
parent::__construct();
$this->insertField = ["url","product_id"];
$this->updateField = ["id","url","product_id"];
$this->service = ProductImageService::getInstance();
}
}

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Http\Controllers\Api\CodeGeneration;
use App\BaseApp\BaseController;
use App\Service\CodeGeneration\ProductLabelService;
class ProductLabelController extends BaseController
{
//
public function __construct()
{
parent::__construct();
$this->insertField = ["name"];
$this->updateField = ["id","name"];
$this->service = ProductLabelService::getInstance();
}
}

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Http\Controllers\Api\CodeGeneration;
use App\BaseApp\BaseController;
use App\Service\CodeGeneration\StoreClassificationService;
class StoreClassificationController extends BaseController
{
//
public function __construct()
{
parent::__construct();
$this->insertField = ["name","pid"];
$this->updateField = ["id","name","pid"];
$this->service = StoreClassificationService::getInstance();
}
}

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Http\Controllers\Api\CodeGeneration;
use App\BaseApp\BaseController;
use App\Service\CodeGeneration\StoreService;
class StoreController extends BaseController
{
//
public function __construct()
{
parent::__construct();
$this->insertField = ["name","level","avatar","introduction","description","phone","person", "classification_id","id_card","is_featured","business_license","id_card_portrait_side","id_card_national_emblem_side","chain","business_suspended"];
$this->updateField = ["id","name","level","avatar","introduction","description","phone","person", "classification_id","is_featured","business_license","id_card_portrait_side","id_card_national_emblem_side","chain","business_suspended"];
$this->service = StoreService::getInstance();
}
}