예제 #1
0
        public IActionResult AddPowerInfo([FromBody] PowerInfoInputDto input)
        {
            var result = _service.AddPowerInfo(input);

            return(AddResponse(result));
        }
예제 #2
0
        public IActionResult GetList([FromQuery] PowerInfoInputDto input)
        {
            var result = _service.GetListPowerInfo(input);

            return(PageResponse(result));
        }
예제 #3
0
        /// <summary>
        /// 根据权限Id或名称,遍历关联权限组
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public Pages <List <PowerGroupOutputDto> > GetPowerGroupByPower(PowerInfoInputDto input)
        {
            var data = _powerGroupRepository.GetPowerGroupByPower(input.id, input.powername, input.parentid, input.pageindex, input.pagesize);

            return(new Pages <List <PowerGroupOutputDto> >(data.items.MapperToOutPut <PowerGroupOutputDto>()?.ToList(), data.count));
        }