public ActionResult <AjaxResult <List <Base_Log> > > GetLogList(
            Pagination pagination,
            string logContent,
            string logType,
            string level,
            string opUserName,
            DateTime?startTime,
            DateTime?endTime)
        {
            pagination.SortField = "CreateTime";
            pagination.SortType  = "desc";
            var list = _logBus.GetLogList(pagination, logContent, logType, level, opUserName, startTime, endTime);

            return(JsonContent(pagination.BuildTableResult_AntdVue(list).ToJson()));
        }
        public ActionResult <AjaxResult <List <Base_UserDTO> > > GetDataList(Pagination pagination, string keyword)
        {
            var dataList = _userBus.GetDataList(pagination, false, null, keyword);

            return(Content(pagination.BuildTableResult_AntdVue(dataList).ToJson()));
        }
        public ActionResult <AjaxResult <List <Base_AppSecret> > > GetDataList(Pagination pagination, string keyword)
        {
            var dataList = _appSecretBus.GetDataList(pagination, keyword);

            return(Content(pagination.BuildTableResult_AntdVue(dataList).ToJson()));
        }
 /// <summary>
 /// 返回表格数据
 /// </summary>
 /// <typeparam name="T">类型</typeparam>
 /// <param name="list">数据列表</param>
 /// <param name="pagination">分页参数</param>
 /// <returns></returns>
 protected ContentResult DataTable <T>(List <T> list, Pagination pagination)
 {
     return(JsonContent(pagination.BuildTableResult_AntdVue(list).ToJson()));
 }
        public ActionResult <AjaxResult <List <Base_DbLink> > > GetDataList(Pagination pagination)
        {
            var dataList = _dbLinkBus.GetDataList(pagination);

            return(Content(pagination.BuildTableResult_AntdVue(dataList).ToJson()));
        }
        public ActionResult <AjaxResult <List <Base_RoleDTO> > > GetDataList(Pagination pagination, string roleName)
        {
            var dataList = _roleBus.GetDataList(pagination, null, roleName);

            return(Content(pagination.BuildTableResult_AntdVue(dataList).ToJson()));
        }
Exemple #7
0
 /// <summary>
 /// 返回表格数据
 /// </summary>
 /// <typeparam name="T">类型</typeparam>
 /// <param name="list">数据列表</param>
 /// <param name="pagination">分页参数</param>
 /// <returns></returns>
 protected AjaxResult <List <T> > DataTable <T>(List <T> list, Pagination pagination)
 {
     return(pagination.BuildTableResult_AntdVue(list));
 }