<?php declare (strict_types = 1); namespace app\Admin\model; use think\Model; /** * @mixin \think\Model */ class RoleAction extends Model { public function GetActionByRole($roleid){ return $this->where("roleid","=",$roleid)->find(); } }