2023-02-16 22:10:30 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
2023-02-17 22:06:40 +08:00
|
|
|
#include <vector>
|
2023-02-16 22:10:30 +08:00
|
|
|
|
2023-02-16 22:50:18 +08:00
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
typedef map<int, string> MsgTypes_t;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int32_t gender;
|
|
|
|
string wxid;
|
|
|
|
string code;
|
2023-04-13 00:05:21 +08:00
|
|
|
string remark;
|
2023-02-16 22:50:18 +08:00
|
|
|
string name;
|
|
|
|
string country;
|
|
|
|
string province;
|
|
|
|
string city;
|
|
|
|
} RpcContact_t;
|
2023-02-17 22:06:40 +08:00
|
|
|
|
|
|
|
typedef vector<string> DbNames_t;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
string name;
|
|
|
|
string sql;
|
|
|
|
} DbTable_t;
|
|
|
|
typedef vector<DbTable_t> DbTables_t;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int32_t type;
|
|
|
|
string column;
|
|
|
|
vector<uint8_t> content;
|
|
|
|
} DbField_t;
|
|
|
|
typedef vector<DbField_t> DbRow_t;
|
|
|
|
typedef vector<DbRow_t> DbRows_t;
|
2023-02-19 05:34:10 +08:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
bool is_self;
|
|
|
|
bool is_group;
|
|
|
|
int32_t type;
|
|
|
|
string id;
|
|
|
|
string xml;
|
|
|
|
string sender;
|
|
|
|
string roomid;
|
|
|
|
string content;
|
2023-04-11 16:12:02 +08:00
|
|
|
string thumb;
|
2023-04-10 23:11:54 +08:00
|
|
|
string extra;
|
2023-02-19 05:34:10 +08:00
|
|
|
} WxMsg_t;
|
2023-04-11 23:26:38 +08:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
string wxid;
|
|
|
|
string name;
|
|
|
|
string mobile;
|
|
|
|
string home;
|
|
|
|
} UserInfo_t;
|