Ignore:
Timestamp:
01/09/21 03:04:38 (3 years ago)
Author:
Vzdra <vladko.zdravkovski@…>
Branches:
master
Children:
a3d2b0d
Parents:
297bd16
Message:

added full text search on work

Location:
src/main/java/it/finki/tinki/web/controller
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/it/finki/tinki/web/controller/LoginController.java

    r297bd16 rf067338  
    149149    }
    150150
     151    @GetMapping(path = "/job/search")
     152    public List<JobResponseDTO> jobRes(@RequestParam(name = "text") String text){
     153        return this.workService.fullTextJobSearch(text);
     154    }
     155
     156    @GetMapping(path = "/internship/search")
     157    public List<InternshipResponseDTO> internshipRes(@RequestParam(name = "text") String text){
     158        return this.workService.fullTextInternshipSearch(text);
     159    }
     160
     161    @GetMapping(path = "/project/search")
     162    public List<ProjectResponseDTO> projectRes(@RequestParam(name = "text") String text){
     163        return this.workService.fullTextProjectSearch(text);
     164    }
     165
    151166}
  • src/main/java/it/finki/tinki/web/controller/WorkRegisterController.java

    r297bd16 rf067338  
    1111import it.finki.tinki.model.dto.response.work.ProjectResponseDTO;
    1212import it.finki.tinki.service.WorkService;
    13 import org.springframework.web.bind.annotation.PostMapping;
    14 import org.springframework.web.bind.annotation.RequestBody;
    15 import org.springframework.web.bind.annotation.RequestMapping;
    16 import org.springframework.web.bind.annotation.RestController;
     13import org.springframework.web.bind.annotation.*;
     14
     15import java.util.List;
    1716
    1817@RestController
Note: See TracChangeset for help on using the changeset viewer.