修改菜单url

This commit is contained in:
2025-07-21 16:43:43 +08:00
parent 8adc9d2612
commit be96c742ff
14 changed files with 408 additions and 529 deletions
@@ -0,0 +1,31 @@
<?php
namespace app\{{module}}\service;
use app\common\validate\RoleValidate;
use app\common\traits\crud\CrudServiceTrait;
use app\common\model\Role;
class RoleService
{
use CrudServiceTrait;
/**
* 指定当前要操作的模型
*/
protected string $modelClass = Role::class;
/**
* 验证器
*/
protected $validator = RoleValidate::class;
/**
* 获取验证器
*/
public function getValidator()
{
return new $this->validator;
}
}
@@ -0,0 +1,29 @@
<?php
namespace app\{{module}}\validate;
use think\Validate;
class {{name}}Validator extends Validate
{
// 规则
protected $rule = [
];
// 提示
protected $message = [
];
// 场景
protected $scene = [
'store' => [
],
'update' => [
]
];
}