IM/MP/Response.h
dongl 61ff6fe46b 修改了 添加好友的代码
发现了获取验证码的bug delete sri后 无报错不发数据包
还有填写验证码 错误 session删除了
2023-06-16 20:37:27 +08:00

38 lines
843 B
C++

//
// Created by dongl on 23-4-21.
//
#ifndef IM2_RESPONSE_H
#define IM2_RESPONSE_H
#include "proto/mp.response.pb.h"
#include "Mph.h"
#include "Body.h"
#include "Sri.h"
class Response : public Mph, Sri{
public:
Response(mp::MP_TYPE type, mp::MP_SUB_TYPE subType, const std::string &username, const std::string &msg, const std::string &token);
Response(mp::MP_TYPE type, mp::MP_SUB_TYPE subType,
uint64_t account, const std::string &username,
const std::string &email, uint64_t phone,
const std::string &msg, const std::string &token,
const std::string & data);
Response(mp::MP_TYPE type, mp::MP_SUB_TYPE subType);
~Response() override;
std::string packet ();
private:
void init();
private:
mp::response* response = nullptr;
};
#endif //IM2_RESPONSE_H