Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "fix : 복구" #105

Merged
merged 1 commit into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.example.demo.controller.userRecommendCalc;

import com.example.demo.response.CommonResponse;
import com.example.demo.service.recommendCalc.Recommend;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
Expand All @@ -10,35 +9,14 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.stream.Collectors;

@AllArgsConstructor
@RestController
public class UserRecommendController {

@GetMapping("/user/project/manage/recommend")
public List<Long> recommendUser(@RequestBody Long project_id, String stackName) {
int proj_id=(int)project_id.longValue();
public void recommendUser(@RequestBody Long project_id, String stackName) {

List<Integer> result= Recommend.projectBaseSearch(proj_id,stackName);

List<Long> resultAsLong = result.stream()
.map(Long::valueOf)
.collect(Collectors.toList());

return resultAsLong;
}

public List<Long> recommendTeam(@RequestBody Long user_id, String stackName) {
int userId=(int)user_id.longValue();

List<Integer> result= Recommend.userBaseSearch(userId,stackName);

List<Long> resultAsLong = result.stream()
.map(Long::valueOf)
.collect(Collectors.toList());

return resultAsLong;
}

}
}
Loading