예제 #1
0
        public async Task <IActionResult> GetUser([FromQuery] UserDtoParameters parameters)
        {
            if (!JudgeRoles(1))
            {
                return(Json(new { code = -1, msg = "您没有权限进行此操作!" }));
            }
            MuseumContext _context    = new MuseumContext();
            IManageUser   _manageUser = new ManageUser(_context);
            var           users       = await _manageUser.GetUsersAsync(parameters);

            return(Ok(new { code = 0, data = new{ items = users, total = users.TotalCount } }));
        }