migrate to c++, all layers done except for data access

This commit is contained in:
odweta
2026-08-13 21:32:30 +02:00
parent 4389466d40
commit 3b8c6f00f5
25 changed files with 228 additions and 242 deletions
+23
View File
@@ -0,0 +1,23 @@
#ifndef DAO_H
#define DAO_H
#include <string>
#include <vector>
#include "ticket.h"
using namespace std;
class Dao {
public:
string api_key;
string db_url;
void populate_env();
ticket_t fetch_ticket_create(string title, string description);
vector<ticket_t> fetch_ticket_get_all();
vector<ticket_t> fetch_ticket_get_by_status(string status);
ticket_t fetch_ticket_get_by_id(unsigned long id);
};
#endif // DAO_H