mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
59 lines
2.0 KiB
PHP
59 lines
2.0 KiB
PHP
<?php
|
|
|
|
namespace app\admin\scheme;
|
|
|
|
use app\common\scheme\BaseScheme;
|
|
use app\common\scheme\attribute\Table;
|
|
use app\common\scheme\attribute\Field;
|
|
use app\common\scheme\attribute\Component;
|
|
use app\common\scheme\attribute\Index;
|
|
|
|
#[Table(name: 'ul_system_menu', comment: '系统菜单表')]
|
|
#[Index(columns: ['title'], name: 'title', type: 'NORMAL')]
|
|
#[Index(columns: ['href'], name: 'href', type: 'NORMAL')]
|
|
#[Index(columns: ['delete_time'], name: 'delete_time', type: 'NORMAL')]
|
|
class SystemMenu extends BaseScheme
|
|
{
|
|
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
|
|
public $id;
|
|
|
|
#[Field(type: 'bigint', length: 11, default: '0', comment: '父id', unsigned: true)]
|
|
public $pid;
|
|
|
|
#[Field(type: 'char', length: 100, precision: 100, default: '', comment: '名称')]
|
|
public $title;
|
|
|
|
#[Field(type: 'char', length: 100, precision: 100, default: '', comment: '菜单图标')]
|
|
public $icon;
|
|
|
|
#[Field(type: 'char', length: 100, precision: 100, default: '', comment: '链接')]
|
|
public $href;
|
|
|
|
#[Field(type: 'char', length: 100, precision: 100, default: '', comment: '权限标志')]
|
|
public $auth_node;
|
|
|
|
#[Field(type: 'text', comment: '链接参数')]
|
|
public $params;
|
|
|
|
#[Field(type: 'char', length: 20, precision: 20, default: '_self', comment: '链接打开方式')]
|
|
public $target;
|
|
|
|
#[Field(type: 'int', length: 11, default: '100', comment: '排序')]
|
|
public $sort;
|
|
|
|
#[Field(type: 'int', length: 11, default: '1', comment: '状态')]
|
|
#[Component(type: 'radio', options: ['禁用', '启用'])]
|
|
public $status;
|
|
|
|
#[Field(type: 'char', length: 255, precision: 255, default: '', comment: '备注说明')]
|
|
public $remark;
|
|
|
|
#[Field(type: 'int', length: 11, default: '0', comment: '创建时间', unsigned: true)]
|
|
public $create_time;
|
|
|
|
#[Field(type: 'int', length: 11, default: '0', unsigned: true)]
|
|
public $update_time;
|
|
|
|
#[Field(type: 'int', length: 11, default: '0', unsigned: true)]
|
|
public $delete_time;
|
|
} |