update:更新路由注释,编辑器可追踪

This commit is contained in:
JaguarJack 2021-04-01 18:39:11 +08:00
parent dffad1e2c4
commit 4180cb2565
10 changed files with 22 additions and 4 deletions

View File

@ -8,6 +8,7 @@
// +----------------------------------------------------------------------
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------
/* @var think\Route $router */
// you should use `$router`
use catchAdmin\domain\controller\DomainRecord;

View File

@ -1,4 +1,7 @@
<?php
/* @var think\Route $router */
$router->group(function () use ($router){
# 登入
$router->post('login', '\catchAdmin\login\controller\Index@login');

View File

@ -9,6 +9,8 @@
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------
/* @var think\Route $router */
// you should use `$router`
$router->group('monitor', function () use ($router){
// crontab路由

View File

@ -1,4 +1,7 @@
<?php
/* @var think\Route $router */
$router->group(function () use ($router){
// 角色
$router->resource('roles', '\catchAdmin\permissions\controller\Role');

View File

@ -20,8 +20,8 @@ class Job extends CatchTable
HeaderItem::label('状态')->prop('status')->withSwitchComponent(),
HeaderItem::label('创建时间')->prop('created_at'),
HeaderItem::label('操作')->width(250)->actions([
Actions::update(),
Actions::delete()
Actions::update(''),
Actions::delete('')
])
])
->withActions([

View File

@ -20,8 +20,8 @@ class Permission extends CatchTable
HeaderItem::label('状态')->prop('hidden')->component('status'),
HeaderItem::label('创建时间')->prop('created_at'),
HeaderItem::label('操作')->width(250)->actions([
Actions::update(),
Actions::delete()
Actions::update(''),
Actions::delete('')
])
])
->withActions([

View File

@ -9,6 +9,8 @@
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------
/* @var think\Route $router */
// you should use `$router`
$router->group('sms', function () use ($router){
// config路由

View File

@ -1,4 +1,7 @@
<?php
/* @var think\Route $router */
$router->group(function () use ($router) {
// 登录日志
$router->get('log/login', '\catchAdmin\system\controller\LoginLog@list');

View File

@ -9,6 +9,8 @@
* @license https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt
*/
/* @var think\Route $router */
$router->group('wechat', function () use ($router){
// 公众号粉丝
$router->group('official/users', function () use ($router){

View File

@ -10,6 +10,8 @@
// +----------------------------------------------------------------------
// you should use `$router`
/* @var think\Route $router */
$router->group(function () use ($router){
})->middleware('auth');