[bfa113e] | 1 | package it.finki.tinki.controller;
|
---|
| 2 |
|
---|
| 3 | import it.finki.tinki.helper.Matchmaker;
|
---|
| 4 | import it.finki.tinki.model.Jobs.Internship;
|
---|
| 5 | import it.finki.tinki.model.Jobs.Job;
|
---|
| 6 | import it.finki.tinki.model.Jobs.Work;
|
---|
| 7 | import it.finki.tinki.model.Skill;
|
---|
[7987457] | 8 | import it.finki.tinki.repository.JobRepository;
|
---|
[bfa113e] | 9 | import org.springframework.web.bind.annotation.GetMapping;
|
---|
| 10 | import org.springframework.web.bind.annotation.RequestMapping;
|
---|
| 11 | import org.springframework.web.bind.annotation.RestController;
|
---|
| 12 |
|
---|
| 13 | import java.util.ArrayList;
|
---|
| 14 | import java.util.List;
|
---|
| 15 |
|
---|
| 16 | @RestController
|
---|
| 17 | @RequestMapping("/")
|
---|
| 18 | public class TestController {
|
---|
| 19 |
|
---|
[7987457] | 20 | JobRepository jobRepository;
|
---|
| 21 |
|
---|
| 22 | public TestController(JobRepository jobRepository) {
|
---|
| 23 | this.jobRepository = jobRepository;
|
---|
| 24 | }
|
---|
| 25 |
|
---|
[bfa113e] | 26 | @GetMapping
|
---|
| 27 | public String testPage(){
|
---|
| 28 | Matchmaker match = new Matchmaker();
|
---|
| 29 | List<Skill> skills = new ArrayList<>();
|
---|
| 30 |
|
---|
| 31 | skills.add(new Skill("C++"));
|
---|
| 32 | skills.add(new Skill("Java"));
|
---|
| 33 | skills.add(new Skill("Python"));
|
---|
| 34 |
|
---|
| 35 | List<Skill> user = new ArrayList<>();
|
---|
| 36 |
|
---|
| 37 | //user.add(new Skill("C++"));
|
---|
| 38 | user.add(new Skill("Java"));
|
---|
| 39 | user.add(new Skill("Python"));
|
---|
| 40 |
|
---|
| 41 | System.out.println(match.match(skills, user));
|
---|
| 42 |
|
---|
| 43 | return "Hello";
|
---|
| 44 | }
|
---|
| 45 |
|
---|
| 46 | }
|
---|