Changeset 723994f for src/main/java


Ignore:
Timestamp:
01/07/21 16:13:55 (4 years ago)
Author:
Vzdra <vladko.zdravkovski@…>
Branches:
master
Children:
509cb95
Parents:
1397178
Message:

refactoring and further login functionality

Location:
src/main/java/it/finki/tinki
Files:
8 added
1 deleted
2 edited
3 moved

Legend:

Unmodified
Added
Removed
  • src/main/java/it/finki/tinki/model/Match.java

    r1397178 r723994f  
    11package it.finki.tinki.model;
    22
     3import it.finki.tinki.model.enumerator.WorkType;
    34import lombok.Data;
    45
     
    1415    float coefficient;
    1516
     17    WorkType type;
     18
    1619    public Match(){}
    1720
    18     public Match(float coefficient) {
     21    public Match(float coefficient, WorkType type) {
    1922        this.coefficient = coefficient;
     23        this.type = type;
    2024    }
    2125}
  • src/main/java/it/finki/tinki/model/dto/AccountLoginDTO.java

    r1397178 r723994f  
    1 package it.finki.tinki.model.pojo;
     1package it.finki.tinki.model.dto;
    22
    33import it.finki.tinki.model.enumerator.AccountType;
     
    55
    66@Data
    7 public class AccountLoginDataPojo {
    8     private String account;
     7public class AccountLoginDTO {
     8    private String email;
    99    private String password;
    1010    private AccountType type;
  • src/main/java/it/finki/tinki/model/dto/AuthResponseDTO.java

    r1397178 r723994f  
    1 package it.finki.tinki.model.pojo;
     1package it.finki.tinki.model.dto;
    22
    33import it.finki.tinki.model.enumerator.AccountType;
     
    55
    66@Data
    7 public class AuthResponseDataPojo {
    8     Long id;
    9     String email;
    10     String name;
    11     AccountType type;
     7public class AuthResponseDTO {
     8    private Long id;
     9    private String email;
     10    private String name;
     11    private AccountType type;
    1212
    13     public AuthResponseDataPojo() {
     13    public AuthResponseDTO() {
    1414        this.id = null;
    1515        this.email = "Wrong username or password!";
  • src/main/java/it/finki/tinki/repository/MatchRepository.java

    r1397178 r723994f  
    22
    33import it.finki.tinki.model.Match;
     4import it.finki.tinki.model.Users.User;
     5import it.finki.tinki.model.enumerator.WorkType;
    46import org.springframework.data.jpa.repository.JpaRepository;
    57import org.springframework.stereotype.Repository;
    68
     9import java.util.List;
     10
    711@Repository
    812public interface MatchRepository extends JpaRepository<Match, Long> {
     13    List<Match> getAllByCombinedId_UserAndTypeOrderByCoefficientDesc(User user, WorkType type);
    914}
  • src/main/java/it/finki/tinki/web/controller/RegisterController.java

    r1397178 r723994f  
    1 package it.finki.tinki.controller;
     1package it.finki.tinki.web.controller;
    22
    33import it.finki.tinki.model.Skill;
    44import it.finki.tinki.model.Users.Account;
    5 import it.finki.tinki.model.Users.User;
    65import it.finki.tinki.service.AccountService;
    76import it.finki.tinki.service.SkillService;
    8 import org.springframework.http.ResponseEntity;
    97import org.springframework.web.bind.annotation.*;
    108
    11 import java.util.ArrayList;
    129import java.util.HashMap;
    1310import java.util.List;
Note: See TracChangeset for help on using the changeset viewer.