示例#1
0
        public async Task <object> GetUserByPage(int page = 1, int pageSize = 50, string key = "")
        {
            var data = await _userSvc.QueryPage(a => (a.LoginName != null && a.LoginName.Contains(key)) || (a.RealName != null && a.RealName.Contains(key)), page, pageSize, " Id desc ");

            return(new MessageModel <PageModel <User> >()
            {
                Message = "获取成功",
                Success = true,
                Response = data
            });
        }