29 lines
812 B
C++
29 lines
812 B
C++
#pragma once
|
|
|
|
class Player;
|
|
class DBHelper : public a8::Singleton<DBHelper>
|
|
{
|
|
private:
|
|
DBHelper() {};
|
|
friend class a8::Singleton<DBHelper>;
|
|
|
|
public:
|
|
void Init();
|
|
void UnInit();
|
|
|
|
void SetFriendApplyStatus(
|
|
unsigned int crc32_code,
|
|
const std::string& sender_id,
|
|
const std::string& target_id,
|
|
int status);
|
|
void SetFriendApplyStatus(
|
|
unsigned int crc32_code,
|
|
long long idx,
|
|
const std::string& sender_id,
|
|
const std::string& target_id,
|
|
int status);
|
|
void AddFriendApply(Player* hum, const std::string& target_id);
|
|
|
|
|
|
};
|