Started implementing the Account listing of a User

This commit is contained in:
2025-03-24 09:34:14 +01:00
parent d8e0c12b9f
commit 545606deb0
4 changed files with 87 additions and 22 deletions

View File

@@ -13,15 +13,16 @@ public class Main {
User user;
public static void main(String[] args) {
String user = SHA256("user");
String username = "user";
String user = SHA256(username);
File userFile = new File("./users/" + user + ".json");
if(!userFile.exists()) {
User u = new User("user");
User u = new User(username);
u.createAccount("Konto");
Account a = u.getAccount("Konto");
a.DepositTransaction(104, "Deposit", UUID.randomUUID());
a.DepositTransaction(100, "Deposit", UUID.randomUUID());
String json = gson.toJson(u);
try {