Changeset 723994f
- Timestamp:
- 01/07/21 16:13:55 (4 years ago)
- Branches:
- master
- Children:
- 509cb95
- Parents:
- 1397178
- 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 1 1 package it.finki.tinki.model; 2 2 3 import it.finki.tinki.model.enumerator.WorkType; 3 4 import lombok.Data; 4 5 … … 14 15 float coefficient; 15 16 17 WorkType type; 18 16 19 public Match(){} 17 20 18 public Match(float coefficient ) {21 public Match(float coefficient, WorkType type) { 19 22 this.coefficient = coefficient; 23 this.type = type; 20 24 } 21 25 } -
src/main/java/it/finki/tinki/model/dto/AccountLoginDTO.java
r1397178 r723994f 1 package it.finki.tinki.model. pojo;1 package it.finki.tinki.model.dto; 2 2 3 3 import it.finki.tinki.model.enumerator.AccountType; … … 5 5 6 6 @Data 7 public class AccountLoginD ataPojo{8 private String account;7 public class AccountLoginDTO { 8 private String email; 9 9 private String password; 10 10 private AccountType type; -
src/main/java/it/finki/tinki/model/dto/AuthResponseDTO.java
r1397178 r723994f 1 package it.finki.tinki.model. pojo;1 package it.finki.tinki.model.dto; 2 2 3 3 import it.finki.tinki.model.enumerator.AccountType; … … 5 5 6 6 @Data 7 public class AuthResponseD ataPojo{8 Long id;9 String email;10 String name;11 AccountType type;7 public class AuthResponseDTO { 8 private Long id; 9 private String email; 10 private String name; 11 private AccountType type; 12 12 13 public AuthResponseD ataPojo() {13 public AuthResponseDTO() { 14 14 this.id = null; 15 15 this.email = "Wrong username or password!"; -
src/main/java/it/finki/tinki/repository/MatchRepository.java
r1397178 r723994f 2 2 3 3 import it.finki.tinki.model.Match; 4 import it.finki.tinki.model.Users.User; 5 import it.finki.tinki.model.enumerator.WorkType; 4 6 import org.springframework.data.jpa.repository.JpaRepository; 5 7 import org.springframework.stereotype.Repository; 6 8 9 import java.util.List; 10 7 11 @Repository 8 12 public interface MatchRepository extends JpaRepository<Match, Long> { 13 List<Match> getAllByCombinedId_UserAndTypeOrderByCoefficientDesc(User user, WorkType type); 9 14 } -
src/main/java/it/finki/tinki/web/controller/RegisterController.java
r1397178 r723994f 1 package it.finki.tinki. controller;1 package it.finki.tinki.web.controller; 2 2 3 3 import it.finki.tinki.model.Skill; 4 4 import it.finki.tinki.model.Users.Account; 5 import it.finki.tinki.model.Users.User;6 5 import it.finki.tinki.service.AccountService; 7 6 import it.finki.tinki.service.SkillService; 8 import org.springframework.http.ResponseEntity;9 7 import org.springframework.web.bind.annotation.*; 10 8 11 import java.util.ArrayList;12 9 import java.util.HashMap; 13 10 import java.util.List;
Note:
See TracChangeset
for help on using the changeset viewer.