public async Task <PrivilegeBaseResult> CatchUserList([FromBody] ArguCatchUser arguCatchUser) { if (arguCatchUser == null) { throw new PrivilegeException((int)EnumPrivilegeException.入参为空, "Argument is null,please check Argu"); } return(await _privilegeUserDispatch.CatchUserList(arguCatchUser)); }
public async Task <PrivilegeBaseResult> CatchUserList(ArguCatchUser arguCatchUser) { if (arguCatchUser.id > 0) { var resultCatchUser = await _userLocalDAL.FindByIDAsync(arguCatchUser.id); return(Successed(resultCatchUser, "用户信息")); } else { var resultCatchUser = await _userLocalDAL.GetAllAsync(); return(Successed(resultCatchUser, "用户列表")); } }