Ignore:
Timestamp:
01/08/21 03:34:14 (4 years ago)
Author:
Vzdra <vladko.zdravkovski@…>
Branches:
master
Children:
4b1c93d
Parents:
b31afbd
Message:

cleanup

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

    rb31afbd r336d09e  
    1313import it.finki.tinki.service.MatchmakerService;
    1414import it.finki.tinki.service.WorkService;
    15 import org.apache.coyote.Response;
    1615import org.springframework.web.bind.annotation.*;
    1716import org.springframework.web.server.ResponseStatusException;
    1817
    1918import java.util.List;
    20 import java.util.Map;
    2119
    2220@RestController
     
    3533    }
    3634
     35    //TODO: ADD JOB/INTERNSHIP RESPONSE TYPE TO COMPANY AND TEAM ---------------------v
     36
    3737    @PostMapping(path = "/login")
    3838    public LoginResponseDTO testPage(@RequestBody AccountLoginDTO body) throws ResponseStatusException {
    39 
    40         System.out.println(body);
    4139
    4240        Account a1 = accountService.findUser(body.getEmail(), body.getPassword(), body.getType());
     
    8987                tDto.setEmail(a1.getEmail());
    9088                tDto.setName(a1.getName());
    91                 tDto.setType(AccountType.USER);
     89                tDto.setType(AccountType.TEAM);
    9290                tDto.setMembers(((Team) a1).getMembers());
    9391
     
    106104                cDto.setEmail(a1.getEmail());
    107105                cDto.setName(a1.getName());
    108                 cDto.setType(AccountType.USER);
     106                cDto.setType(AccountType.COMPANY);
    109107                cDto.setAddress(((Company) a1).getAddress());
    110108
  • src/main/java/it/finki/tinki/web/controller/RegisterController.java

    rb31afbd r336d09e  
    11package it.finki.tinki.web.controller;
    22
    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.Project;
    73import it.finki.tinki.model.Skill;
    84import it.finki.tinki.model.Users.Account;
    9 import it.finki.tinki.model.Users.User;
    105import it.finki.tinki.model.dto.UserRegisterDTO;
    116import it.finki.tinki.service.AccountService;
     
    5550    }
    5651
     52    //TODO: ADD TEAM AND COMPANY REGISTER TDO --------------------------------------v
     53
    5754    @RequestMapping(path = "/team", method = RequestMethod.POST)
    5855    private Map<String, String> registerTeam(@RequestBody String email,
Note: See TracChangeset for help on using the changeset viewer.