#if !defined( __REQUESTBASE_HPP_) #define __REQUESTBASE_HPP_ #include #include #include #include #include namespace gsd { class RequestBase { public: RequestBase(); ~RequestBase(); /** * @description: JsonToObject * @param {string} &json * @return {*} */ virtual bool JsonToObject(std::string &json) = 0; /** * @description: ObjectToJson * @param {string&} str * @return {*} */ virtual void ObjectToJson(std::string& str) = 0; /** * @description: ObjectToJson * @return {*} */ virtual void ObjectToJson(rapidjson::Writer& writer) = 0; }; } // namespace gsd #endif // __REQUESTBASE_HPP_