no message
This commit is contained in:
parent
e551f8a0f9
commit
ece5b13dba
@ -462,9 +462,17 @@ return static function (Slim\App $app): void {
|
||||
$group->get('/env/config/add', App\Controllers\Api\Nasa\V1\EnvConfigController::class . ':add');
|
||||
$group->put('/env/config/add/save', App\Controllers\Api\Nasa\V1\EnvConfigController::class . ':addSave');
|
||||
$group->get('/env/config/clone/{id}', App\Controllers\Api\Nasa\V1\EnvConfigController::class . ':clone');
|
||||
// $group->put('/env/config/clone/', App\Controllers\Api\Nasa\V1\EnvConfigController::class . ':cloneSave');
|
||||
$group->get('/env/config/hit/{id}/{field}', App\Controllers\Api\Nasa\V1\EnvConfigController::class . ':hit');
|
||||
|
||||
$group->get('/mail/mustlog', App\Controllers\Api\Nasa\V1\MailMustlogController::class . ':index');
|
||||
$group->get('/mail/mustlog/detail/{id}', App\Controllers\Api\Nasa\V1\MailMustlogController::class . ':detail');
|
||||
$group->put('/mail/mustlog/detail/save/{id}', App\Controllers\Api\Nasa\V1\MailMustlogController::class . ':detailSave');
|
||||
$group->delete('/mail/mustlog/delete/save/{id}', App\Controllers\Api\Nasa\V1\MailMustlogController::class . ':delete');
|
||||
$group->get('/mail/mustlog/add', App\Controllers\Api\Nasa\V1\MailMustlogController::class . ':add');
|
||||
$group->put('/mail/mustlog/add/save', App\Controllers\Api\Nasa\V1\MailMustlogController::class . ':addSave');
|
||||
$group->get('/mail/mustlog/clone/{id}', App\Controllers\Api\Nasa\V1\MailMustlogController::class . ':clone');
|
||||
$group->get('/mail/mustlog/hit/{id}/{field}', App\Controllers\Api\Nasa\V1\MailMustlogController::class . ':hit');
|
||||
|
||||
})->add(new VerifyNasaToken());// get可以其他不可以?
|
||||
|
||||
|
||||
|
||||
100
src/Controllers/Api/Nasa/V1/MailMustlogController.php
Executable file
100
src/Controllers/Api/Nasa/V1/MailMustlogController.php
Executable file
@ -0,0 +1,100 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Controllers\Api\Nasa\V1;
|
||||
use Illuminate\Http\Request;
|
||||
use App\Controllers\Api\Nasa\V1\Base\ListController;
|
||||
|
||||
final class MailMustlogController extends ListController
|
||||
{
|
||||
protected string $sModelName = 'MailLog';
|
||||
protected array $aFilterFields = [ // 允许where的字段,不设视为全允许
|
||||
// 's_name',
|
||||
// 'i_status'
|
||||
];
|
||||
|
||||
protected string $sPageName = "mailMustLog";
|
||||
|
||||
protected array $aListFields = [ // list展示的字段和名字映射
|
||||
'id' => 'id',
|
||||
'to' => 'to',
|
||||
'title' => 'title',
|
||||
'error' => 'error',
|
||||
'scene' => 'scene',
|
||||
'client' => 'client',
|
||||
'date' => 'date'
|
||||
];
|
||||
|
||||
// protected array $aValueStyle = [ // 特定文字渲染样式
|
||||
// '关闭' => "<span class='text-danger'>关闭</span>",
|
||||
// '开启' => "<span class='text-success'>开启</span>"
|
||||
// ];
|
||||
|
||||
// protected array $aFieldTypes = [
|
||||
// 'custom_config' => 'json',
|
||||
// 'prev_day_width' => 'byte',
|
||||
// 'node_bandwidth' => 'byte',
|
||||
// 'node_bandwidth_limit' => 'byte'
|
||||
// ];
|
||||
|
||||
protected array $aOrderBy = [
|
||||
[
|
||||
"sField" => "id",
|
||||
"sSort" => "desc",
|
||||
]
|
||||
];
|
||||
|
||||
protected array $aJsonFields = [ // json字段
|
||||
|
||||
];
|
||||
|
||||
protected array $aDateFields = [ // date字段
|
||||
// 'dtUpdatedAt'
|
||||
];
|
||||
|
||||
protected array $aLenthFields = [ // 限制长度的字段
|
||||
// "xx" => 100,
|
||||
];
|
||||
|
||||
protected array $aSelectFields = [ // 作为默认select的字段
|
||||
// 'iStatus',
|
||||
// 'sComponentType',
|
||||
];
|
||||
|
||||
// protected array $aValueFields = [ // 值映射
|
||||
// 'sComponentType' => [
|
||||
// 'TOP_BAR' => '顶级菜单',
|
||||
// 'SIDEBAR_MENU' => '次级菜单',
|
||||
// 'INNER_PAGE_TAB' => '页内菜单',
|
||||
// ]
|
||||
// ];
|
||||
|
||||
protected array $aCcExtFields = [
|
||||
// 'dtCreatedAt' => '创建时间'
|
||||
];
|
||||
|
||||
// protected array $aLimit = [3, 15, 40, 100]; // list长度,第一个为默认
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//CREATE TABLE `nasa_navigation` (
|
||||
// `iId` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
// `iParentId` bigint(20) unsigned NOT NULL DEFAULT 0 COMMENT '父级ID(0代表顶级导航)',
|
||||
// `sName` varchar(64) NOT NULL COMMENT '导航菜单名称',
|
||||
// `sSlug` varchar(128) NOT NULL DEFAULT '' COMMENT 'Laravel 路由别名(Route Name)',
|
||||
// `sIcon` varchar(64) NOT NULL DEFAULT '' COMMENT '图标 Class/Svg 标识',
|
||||
// `sGroup` varchar(128) NOT NULL DEFAULT '',
|
||||
// `sComponentType` varchar(32) NOT NULL DEFAULT 'SIDEBAR_MENU' COMMENT '渲染组件类型:TOP_BAR, SIDEBAR_MENU, INNER_PAGE_TAB',
|
||||
// `iSort` int(11) NOT NULL DEFAULT 0 COMMENT '排序权重(数值越小越靠前)',
|
||||
// `iStatus` tinyint(4) NOT NULL DEFAULT 1 COMMENT '是否可见:1-显示, 0-隐藏',
|
||||
// `sPermissionSlug` varchar(64) DEFAULT NULL COMMENT '权限标识(用于中间件拦截校验)',
|
||||
// `dtCreatedAt` timestamp NOT NULL DEFAULT current_timestamp() COMMENT '创建时间',
|
||||
// `dtUpdatedAt` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() COMMENT '更新时间',
|
||||
// PRIMARY KEY (`iId`),
|
||||
// KEY `idx_status_parent_sort` (`iStatus`,`iParentId`,`iSort`),
|
||||
// KEY `idx_permission` (`sPermissionSlug`)
|
||||
//) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='系统功能导航路由表';
|
||||
Loading…
Reference in New Issue
Block a user