28 lines
608 B
C++
28 lines
608 B
C++
//
|
|
// Created by dongl on 23-4-23.
|
|
//
|
|
|
|
#ifndef IM2_USERDB_H
|
|
#define IM2_USERDB_H
|
|
|
|
|
|
#include "linkDB.h"
|
|
#include "DB.h"
|
|
#include "po/po.h"
|
|
|
|
class UserDB : public DB {
|
|
/// login ...
|
|
public:
|
|
std::tuple<bool, PoUser> select_user(uint64_t account);
|
|
bool select_user_exist(uint64_t account);
|
|
bool insert_user(uint64_t account, const std::string &password, const std::string &password_salt,
|
|
const std::string& client_info = "");
|
|
bool insert_user_friends(uint64_t account);
|
|
bool test(uint64_t account);
|
|
|
|
bool remove_user(uint64_t account);
|
|
};
|
|
|
|
|
|
#endif //IM2_USERDB_H
|