Skip to content

Commit

Permalink
change data to requests in SkillRequestDto
Browse files Browse the repository at this point in the history
  • Loading branch information
yesyash committed Jul 20, 2024
1 parent fa4acfe commit 7d2ef70
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@

import com.RDS.skilltree.viewmodels.SkillRequestViewModel;
import com.RDS.skilltree.viewmodels.UserViewModel;
import java.util.List;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
public class SkillRequestsDto {
private List<SkillRequestViewModel> data;
private List<SkillRequestViewModel> requests;
private List<UserViewModel> users;

public static SkillRequestsDto toDto(
List<SkillRequestViewModel> skillRequests, List<UserViewModel> users) {
SkillRequestsDto skillRequestsDto = new SkillRequestsDto();
skillRequestsDto.setData(skillRequests);
skillRequestsDto.setRequests(skillRequests);
skillRequestsDto.setUsers(users);

return skillRequestsDto;
Expand Down

0 comments on commit 7d2ef70

Please sign in to comment.