[509cb95] | 1 | package it.finki.tinki.service;
|
---|
| 2 |
|
---|
[bd46dbb] | 3 | import it.finki.tinki.model.Work.Internship;
|
---|
| 4 | import it.finki.tinki.model.Work.Job;
|
---|
| 5 | import it.finki.tinki.model.Work.Project;
|
---|
[f067338] | 6 | import it.finki.tinki.model.dto.response.work.InternshipResponseDTO;
|
---|
| 7 | import it.finki.tinki.model.dto.response.work.JobResponseDTO;
|
---|
| 8 | import it.finki.tinki.model.dto.response.work.ProjectResponseDTO;
|
---|
| 9 | import it.finki.tinki.model.dto.response.work.WorkResponseDTO;
|
---|
[509cb95] | 10 | import it.finki.tinki.model.enumerator.AccountType;
|
---|
| 11 |
|
---|
| 12 | import java.util.Date;
|
---|
| 13 | import java.util.List;
|
---|
| 14 |
|
---|
| 15 | public interface WorkService {
|
---|
| 16 | List<Job> getAllJobsByAccount(Long accId);
|
---|
| 17 | List<Internship> getAllInternshipsByAccount(Long accId);
|
---|
| 18 | List<Project> getAllProjectsByAccount(Long accId);
|
---|
[a8e8545] | 19 | Job insertJob(String title, String description, Long accId, int salary, List<Long> skillsRequired, AccountType type);
|
---|
| 20 | Internship insertInternship(String title, String description, Long adccId, int salary, List<Long> skillsTrained, int openSpots, AccountType type);
|
---|
| 21 | Project insertProject(String title, String description, Long adccId, int salary, List<Long> skillsRequired, Date validUntil, AccountType type);
|
---|
[a3d2b0d] | 22 | Job editJob(Long id, String title, String description, int salary);
|
---|
| 23 | Internship editInternship(Long id, String title, String description, int salary, int openSpots);
|
---|
| 24 | Project editProject(Long id, String title, String description, int salary);
|
---|
[f067338] | 25 | List<JobResponseDTO> fullTextJobSearch(String text);
|
---|
| 26 | List<InternshipResponseDTO> fullTextInternshipSearch(String text);
|
---|
| 27 | List<ProjectResponseDTO> fullTextProjectSearch(String text);
|
---|
[a3d2b0d] | 28 | Job getJobById(Long id);
|
---|
| 29 | Internship getInternshipById(Long id);
|
---|
| 30 | Project getProjectById(Long id);
|
---|
[509cb95] | 31 | }
|
---|