- Timestamp:
- 01/11/21 18:57:03 (4 years ago)
- Branches:
- master
- Children:
- 8f1f460
- Parents:
- fc8421e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/it/finki/tinki/web/controller/WorkRegisterController.java
rfc8421e r5f9d25a 26 26 @PostMapping("/job") 27 27 public JobResponseDTO registerJob(@RequestBody JobRegisterDTO body){ 28 29 28 Job j = this.workService.insertJob(body.getTitle(), 30 29 body.getDescription(), body.getAccountId(), body.getSalary(), body.getSkillsRequired(), body.getType()); 31 32 30 return new JobResponseDTO(j); 33 31 } … … 35 33 @PostMapping("/internship") 36 34 public InternshipResponseDTO registerInternship(@RequestBody InternshipRegisterDTO body){ 37 38 35 Internship j = this.workService.insertInternship(body.getTitle(), 39 36 body.getDescription(), body.getAccountId(), body.getSalary(), body.getSkillsTrained(), body.getOpenSpots(), body.getType()); 40 41 37 return new InternshipResponseDTO(j); 42 38 } … … 44 40 @PostMapping("/project") 45 41 public ProjectResponseDTO registerProject(@RequestBody ProjectRegisterDTO body){ 46 47 42 Project j = this.workService.insertProject(body.getTitle(), 48 43 body.getDescription(), body.getAccountId(), body.getSalary(), body.getSkillsRequired(), body.getValidUntil(), body.getType()); 49 50 44 return new ProjectResponseDTO(j); 51 45 }
Note:
See TracChangeset
for help on using the changeset viewer.