You've already forked guangan
1
This commit is contained in:
30
plugs/think-plugs-ticket/src/Service.php
Normal file
30
plugs/think-plugs-ticket/src/Service.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\ticket;
|
||||
|
||||
use think\admin\Plugin;
|
||||
|
||||
class Service extends Plugin
|
||||
{
|
||||
protected $appName = '工单管理';
|
||||
protected $appCode = 'ticket';
|
||||
protected $package = 'jerryyan/think-plugs-ticket';
|
||||
|
||||
public static function register(): void
|
||||
{
|
||||
}
|
||||
|
||||
public static function menu(): array
|
||||
{
|
||||
$code = app(static::class)->appCode;
|
||||
return [
|
||||
[
|
||||
'name' => '工单管理',
|
||||
'subs' => [
|
||||
['name' => '工单列表', 'icon' => 'layui-icon layui-icon-template-1', 'node' => "{$code}/ticket/index"],
|
||||
['name' => '工单分类', 'icon' => 'layui-icon layui-icon-template-1', 'node' => "{$code}/type/index"],
|
||||
]
|
||||
]
|
||||
];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user