feat: 添加角色分页/详情/新增/更新/删除接口

This commit is contained in:
2025-02-25 18:14:52 +08:00
parent 4bbdc99a7e
commit abfc68ff2f
9 changed files with 321 additions and 4 deletions

View File

@@ -10,5 +10,15 @@ use think\Model;
*/
class SysRoleAuthorityModel extends Model
{
//
// role_id查询
public function scopeRoleId($query, $value)
{
return $query->where('role_id', $value);
}
// menu_id查询
public function scopeMenuId($query, $value)
{
return $query->where('menu_id', $value);
}
}