Introduced a new "events" table and corresponding EventDAO for managing event data. Enhanced account handling with device ID and partial card number support. Added a NetworkService method to fetch payments from an API and store them as events.
20 lines
532 B
C++
20 lines
532 B
C++
#pragma once
|
|
#include "db/AccountInfo.h"
|
|
|
|
class AccountDAO {
|
|
public:
|
|
[[nodiscard]] static bool upsertAccount(const AccountInfo &info);
|
|
|
|
[[nodiscard]] static bool deleteAccount(int id);
|
|
|
|
[[nodiscard]] static QList<AccountInfo> getAccounts(const QString &deviceId, const QString &appName);
|
|
|
|
[[nodiscard]] static AccountInfo getAccountById(int accountId);
|
|
|
|
[[nodiscard]] static AccountInfo findAppAccount(
|
|
const QString &deviceId,
|
|
const QString &appName,
|
|
const QString &lastNumber
|
|
);
|
|
};
|