Ignore:
Timestamp:
01/11/21 18:57:03 (4 years ago)
Author:
Vzdra <vladko.zdravkovski@…>
Branches:
master
Children:
8f1f460
Parents:
fc8421e
Message:

refactoring controllers

File:
1 edited

Legend:

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

    rfc8421e r5f9d25a  
    2626    @PostMapping("/job")
    2727    public JobResponseDTO registerJob(@RequestBody JobRegisterDTO body){
    28 
    2928        Job j = this.workService.insertJob(body.getTitle(),
    3029                body.getDescription(), body.getAccountId(), body.getSalary(), body.getSkillsRequired(), body.getType());
    31 
    3230        return new JobResponseDTO(j);
    3331    }
     
    3533    @PostMapping("/internship")
    3634    public InternshipResponseDTO registerInternship(@RequestBody InternshipRegisterDTO body){
    37 
    3835        Internship j = this.workService.insertInternship(body.getTitle(),
    3936                body.getDescription(), body.getAccountId(), body.getSalary(), body.getSkillsTrained(), body.getOpenSpots(), body.getType());
    40 
    4137        return new InternshipResponseDTO(j);
    4238    }
     
    4440    @PostMapping("/project")
    4541    public ProjectResponseDTO registerProject(@RequestBody ProjectRegisterDTO body){
    46 
    4742        Project j = this.workService.insertProject(body.getTitle(),
    4843                body.getDescription(), body.getAccountId(), body.getSalary(), body.getSkillsRequired(), body.getValidUntil(), body.getType());
    49 
    5044        return new ProjectResponseDTO(j);
    5145    }
Note: See TracChangeset for help on using the changeset viewer.