105 lines
1.7 KiB
C
105 lines
1.7 KiB
C
|
|
#ifndef _MSG_H_
|
|||
|
|
#define _MSG_H_
|
|||
|
|
|
|||
|
|
#define MAX_MSG_COUNT 1024 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݿⶨ<DDBF><E2B6A8><EFBFBD>ij<EFBFBD><C4B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>أ<EFBFBD><D8A3><EFBFBD><EFBFBD>ܸ<EFBFBD>
|
|||
|
|
#define MAX_MAIL_COUNT 1024 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݿⶨ<DDBF><E2B6A8><EFBFBD>ij<EFBFBD><C4B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>أ<EFBFBD><D8A3><EFBFBD><EFBFBD>ܸ<EFBFBD>
|
|||
|
|
#define MAX_MAIL_FILE_COUNT 3
|
|||
|
|
#define MAX_MAIL_NOTIFY 180
|
|||
|
|
//<2F><>ֹ<EFBFBD><D6B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Դ˽ṹ<CBBD><E1B9B9><EFBFBD><EFBFBD><EFBFBD>ֽڶ<D6BD><DAB6><EFBFBD>
|
|||
|
|
#pragma pack (push, 1)
|
|||
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD><D2B5>ʼ<EFBFBD><CABC><EFBFBD>Ϣ
|
|||
|
|
|
|||
|
|
struct MailFile
|
|||
|
|
{
|
|||
|
|
uint8_t type_; // 0 NULL 1 <20><>Ʒ 2 <20><>Ǯ
|
|||
|
|
int sort_; // <20><>ƷID<49><44><EFBFBD><EFBFBD>Ǯ<EFBFBD><C7AE><EFBFBD>ࣨ1 Ԫ<><D4AA><EFBFBD><EFBFBD> 2 <20><><EFBFBD><EFBFBD>Ԫ<EFBFBD><D4AA><EFBFBD><EFBFBD> 3 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 4 <20>ɱң<C9B1>
|
|||
|
|
int num_; // <20><><EFBFBD><EFBFBD>
|
|||
|
|
uint8_t bind_; // <20>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
int quality_; // Ʒ<><C6B7>
|
|||
|
|
|
|||
|
|
MailFile()
|
|||
|
|
{
|
|||
|
|
ZeroMemory(this, sizeof(*this));
|
|||
|
|
}
|
|||
|
|
void reset()
|
|||
|
|
{
|
|||
|
|
ZeroMemory(this, sizeof(*this));
|
|||
|
|
}
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
// struct MailData
|
|||
|
|
// {
|
|||
|
|
// int64_t id_;
|
|||
|
|
// int actor_id_;
|
|||
|
|
// uint8_t type_;
|
|||
|
|
// uint8_t status_;
|
|||
|
|
// int sender_id_;
|
|||
|
|
// int sender_level_;
|
|||
|
|
// uint32_t send_tick_;
|
|||
|
|
// char send_name_[33];
|
|||
|
|
// char context_[MAX_MAIL_COUNT];
|
|||
|
|
// MailFile attachment_[MAX_MAIL_FILE_COUNT];
|
|||
|
|
//
|
|||
|
|
// MailData()
|
|||
|
|
// {
|
|||
|
|
// ZeroMemory(this, sizeof(*this));
|
|||
|
|
// }
|
|||
|
|
// void reset()
|
|||
|
|
// {
|
|||
|
|
// ZeroMemory(this, sizeof(*this));
|
|||
|
|
// }
|
|||
|
|
// };
|
|||
|
|
|
|||
|
|
struct GmQuestionData
|
|||
|
|
{
|
|||
|
|
int64_t id_;
|
|||
|
|
int server_id_;
|
|||
|
|
int actor_id_;
|
|||
|
|
char name_[128];
|
|||
|
|
int status_;
|
|||
|
|
int hasread_;
|
|||
|
|
char title_[128];
|
|||
|
|
int type_;
|
|||
|
|
char question_[1024];
|
|||
|
|
char qq_[16];
|
|||
|
|
unsigned int question_time_;
|
|||
|
|
char answer_[1024];
|
|||
|
|
unsigned int answer_time_;
|
|||
|
|
|
|||
|
|
GmQuestionData()
|
|||
|
|
{
|
|||
|
|
ZeroMemory(this, sizeof(*this));
|
|||
|
|
}
|
|||
|
|
void reset()
|
|||
|
|
{
|
|||
|
|
ZeroMemory(this, sizeof(*this));
|
|||
|
|
}
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
struct FeeData
|
|||
|
|
{
|
|||
|
|
int id_;
|
|||
|
|
char openid_[128];
|
|||
|
|
int itemId_;
|
|||
|
|
int num_;
|
|||
|
|
int actor_id_;
|
|||
|
|
char order_num_[128];
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
struct TxApiMsgData
|
|||
|
|
{
|
|||
|
|
int id_;
|
|||
|
|
char openid_[128];
|
|||
|
|
int type_;
|
|||
|
|
char para1_[64];
|
|||
|
|
char para2_[64];
|
|||
|
|
char para3_[64];
|
|||
|
|
char para4_[64];
|
|||
|
|
char para5_[64];
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
#pragma pack(pop)
|
|||
|
|
|
|||
|
|
#endif
|
|||
|
|
|