Updated more UI. Enhanced login capabilities. Started work on querying data.
This commit is contained in:
parent
40a0e4046a
commit
052052d76b
29 changed files with 706 additions and 424 deletions
40
backend/src/main/java/achievements/services/DataService.java
Normal file
40
backend/src/main/java/achievements/services/DataService.java
Normal file
|
@ -0,0 +1,40 @@
|
|||
package achievements.services;
|
||||
|
||||
import achievements.data.Achievement;
|
||||
import achievements.data.Game;
|
||||
import achievements.data.Profile;
|
||||
import achievements.misc.DbConnectionService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import java.sql.Connection;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class DataService {
|
||||
|
||||
@Autowired
|
||||
private DbConnectionService dbs;
|
||||
private Connection db;
|
||||
|
||||
@Autowired
|
||||
private AuthenticationService auth;
|
||||
|
||||
@PostConstruct
|
||||
private void init() {
|
||||
db = dbs.getConnection();
|
||||
}
|
||||
|
||||
/*public List<Achievement> getUsers() {
|
||||
|
||||
}
|
||||
|
||||
public List<Game> getGames() {
|
||||
|
||||
}
|
||||
|
||||
public List<Profile> getProfiles() {
|
||||
|
||||
}*/
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue