[ // 菜单配置 'menu' => [ 'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单 'icon' => 'fa fa-puzzle-piece', ], // 子模块配置 'modules' => [ ], ], // ----------------------- 快捷入口 ----------------------- // 'cover' => [ ], // ----------------------- 菜单配置 ----------------------- // 'menu' => [ [ 'title' => '订单', 'route' => 'default/index', 'icon' => '', 'params' => [ ], 'child' => [ ], ], [ 'title' => '设置', 'route' => 'setting/index', 'icon' => '', 'params' => [ ], 'child' => [ ], ], ], // ----------------------- 权限配置 ----------------------- // 'authItem' => [ [ 'title' => '随机减', 'name' => '', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'RandFee', 'child' => [ [ 'title' => '订单', 'name' => 'default/index', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'RandFee', 'child' => [], ], [ 'title' => '设置', 'name' => 'setting/index', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'RandFee', 'child' => [ [ 'title' => '保存', 'name' => 'setting/submit', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'RandFee', ], ], ], ], ], ], // ----------------------- APP链接 ----------------------- // 'links' => [ //[ //'title' => '', //'route' => '', //'icon' => '', //'params' => [], //], ], // ----------------------- 事件处理 ----------------------- // 'events' => [ //[ //'event_name' => '', //'listeners' => [] //], [ 'event_name' => EventNameEnum::GET_ORDER_LIST, 'listeners' => [ \addons\RandFee\common\listeners\GetOrderListListener::class, ] ], ], // ----------------------- 公共调用 ----------------------- // 'invoker' => [ [ 'invoker_id' => \common\enums\GlobalFuncEnum::RAND_FEE, 'class' => 'addons\RandFee\common\service\RandFeeService', 'method' => 'minus', ], [ 'invoker_id' => \common\enums\GlobalFuncEnum::ORDER_DETAIL, 'class' => 'addons\RandFee\common\service\RandFeeService', 'method' => 'orderRandFee', ], [ 'invoker_id' => \common\enums\GlobalFuncEnum::ORDER_REFUND_SUBMIT, 'class' => 'addons\RandFee\common\service\RandFeeService', 'method' => 'orderRefundSubmit', ], ], ];