public BasePageOutput <object> QueryApiGatewayConfiguration([FromQuery] QueryApiGatewayConfigurationInput input)
        {
            var totalNumber = 0;
            var list        = _adminDbContext.Queryable <ApiGatewayConfigurationModel>().ToPageList(input.PageIndex, input.PageSize, ref totalNumber);

            return(new BasePageOutput <object> {
                CurrentPage = input.PageIndex, Total = totalNumber, Data = list
            });
        }
示例#2
0
        /// <summary>
        /// 查询网关配置列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public async Task <QueryApiGatewayConfigurationOutput> QueryApiGatewayConfiguration(QueryApiGatewayConfigurationInput input)
        {
            var pageModel = new SqlSugar.PageModel {
                PageIndex = input.PageIndex, PageSize = input.PageSize
            };
            var list = await _configDbRepository.GetPageListAsync(it => true, pageModel);

            return(new QueryApiGatewayConfigurationOutput {
                CurrentPage = pageModel.PageIndex, Total = pageModel.PageCount, Data = list
            });
        }
 public async Task <QueryApiGatewayConfigurationOutput> QueryApiGatewayConfiguration([FromQuery] QueryApiGatewayConfigurationInput input)
 {
     return(await _microserviceBusines.QueryApiGatewayConfiguration(input));
 }