-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.h
27 lines (25 loc) · 930 Bytes
/
user.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef USER_H
#define USER_H
#include <QString>
#include <QJsonArray>
class user
{
public:
user();
static bool loginUser(QString username , QString password);
static QString rememberMe(QString username , QString phone);
static bool existUsername(QString username);
static bool existPhone(QString phone);
static bool save(QString name,QString username,QString password,QString phone,QString address);
static QString getRole(QString username);
static QString getName(QString username);
static bool isActive(QString username);
static QJsonArray getAllUser();
static bool editUser(QString username , QString role , bool status);
static bool logout();
static qint64 getUserCount();
static qint64 getCustomerCount();
static bool updateAcount(QString username , qint64 amount);
static bool checkCustomer(QString username);
};
#endif // USER_H