first commit

This commit is contained in:
lidg
2026-08-18 09:40:43 +08:00
commit 0c4fd6844c
70 changed files with 8721 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#ifndef ORDERREPOSITORY_H
#define ORDERREPOSITORY_H
#include "../models/order.h"
#include <QList>
class OrderRepository
{
public:
QList<Order> listOrders(QString *error = nullptr, int limit = 100);
bool findOrder(int id, Order *order, QString *error = nullptr);
bool findOrderForUpdate(int id, Order *order, QString *error = nullptr);
bool insertOrder(Order *order, QString *error = nullptr);
bool updateOrderStatus(int id, const QString &status, QString *error = nullptr);
bool updateOrderLifecycle(int id, const QString &status,
const QDateTime &beginTime, const QDateTime &endTime,
QString *error = nullptr);
bool refreshProgress(int id, QString *error = nullptr);
bool removeOrder(int id, QString *error = nullptr);
};
#endif // ORDERREPOSITORY_H