33 lines
508 B
C++
33 lines
508 B
C++
//
|
|
// Created by dongl on 23-4-23.
|
|
//
|
|
|
|
#ifndef IM2_SRI_H
|
|
#define IM2_SRI_H
|
|
|
|
|
|
#include "proto/mp.sri.pb.h"
|
|
|
|
class Sri {
|
|
public:
|
|
Sri(mp::MP_SUB_TYPE code, const std::string& username, const std::string& msg, const std::string& token) {
|
|
sri = new mp::sri();
|
|
sri->set_subcommand(code);
|
|
sri->set_msg(msg);
|
|
sri->set_token(token);
|
|
sri->set_username(username);
|
|
}
|
|
|
|
Sri() {}
|
|
|
|
virtual ~Sri() {
|
|
|
|
}
|
|
|
|
public:
|
|
mp::sri* sri = nullptr;
|
|
};
|
|
|
|
|
|
#endif //IM2_SRI_H
|