mirror of
https://github.com/allankoechke/pocketbase-cpp.git
synced 2026-12-02 17:33:53 +00:00
26 lines
578 B
C++
26 lines
578 B
C++
#ifndef COLLECTIONSERVICE_H
|
|
#define COLLECTIONSERVICE_H
|
|
|
|
#include <QObject>
|
|
#include <QDebug>
|
|
|
|
#include "crudservice.h"
|
|
|
|
namespace pb {
|
|
class CollectionService : public CrudService
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit CollectionService(PocketBase* client, QObject *parent = nullptr);
|
|
|
|
QString baseCrudPath() const override;
|
|
bool import(const QJsonArray& collections, bool deleteMissing = false,
|
|
const QJsonObject& params = {} );
|
|
BaseModel* decode(const QJsonObject& data) override;
|
|
private:
|
|
PocketBase* client;
|
|
};
|
|
}
|
|
|
|
#endif // COLLECTIONSERVICE_H
|