public async Task <IActionResult> Box([FromQuery] long roleid) { if (roleid <= 0) { return(NotFound()); } var res = await _resourceService.GetBoxTreeAsync(roleid); return(Ok(res)); }
public async Task <List <ZTree> > GetBoxTreeAsync(long roleid) { return(await _resourceService.GetBoxTreeAsync(roleid)); }