first commit
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user