no message
This commit is contained in:
parent
81791d18b6
commit
7bebcd5555
@ -36,8 +36,8 @@ abstract class ListController
|
||||
protected array $aDateFields = []; // date字段
|
||||
protected array $aJsonFields = []; // json字段
|
||||
protected array $aValueStyle = []; // 特定文字渲染样式
|
||||
protected int $iLimitMax = 100; // 默认limit限制
|
||||
protected int $iLimit = 20; // 默认显示行数
|
||||
protected int $iLimitMax = 300; // 默认limit限制
|
||||
protected int $iLimit = 30; // 默认显示行数
|
||||
protected array $aCcExtFields = []; // 自定义条件字段追加在listFields后
|
||||
protected array $aCcFields = [];
|
||||
protected int $iOrderByMax = 3;
|
||||
|
||||
@ -11,17 +11,10 @@ use App\Services\Tg\Hook\Mod\Node as TgNode;
|
||||
|
||||
final class NodeActionController
|
||||
{
|
||||
/**
|
||||
* 工业级规范:精确对齐框架传入的 Request 类型
|
||||
* 变量命名:oServerRequest (Object of Server Request)
|
||||
* 谐音发音:欧 瑟沃尔 瑞快斯特 (Object Server Request)
|
||||
*/
|
||||
public function fly(ServerRequest $oServerRequest, Response $oResponse)
|
||||
{
|
||||
$oTgNode = new TgNode([]);
|
||||
|
||||
// 老弟,注意:刚才你直接传 [] 报错,这里强烈建议你从 $oServerRequest 里拿到真正的参数传进去
|
||||
// 比如:$aParams = $oServerRequest->getParsedBody();
|
||||
$sResult = $oTgNode->fly([]);
|
||||
|
||||
return $oResponse->withJson([
|
||||
|
||||
@ -14,6 +14,8 @@ final class NodeBaseController extends ListController
|
||||
// 'i_status'
|
||||
];
|
||||
|
||||
protected int $iLimit = 100;
|
||||
|
||||
protected string $sPageName = "node";
|
||||
|
||||
protected array $aListFields = [ // list展示的字段和名字映射
|
||||
@ -107,23 +109,3 @@ final class NodeBaseController extends ListController
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//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