/*
 * @Description: 
 * @Version: 1.0
 * @Autor: lishengyin
 * @Date: 2022-04-26 16:42:14
 * @LastEditors: lishengyin
 * @LastEditTime: 2022-06-21 16:37:17
 */
#include "InsAIInfo.hpp"

/**
 * @description: ObjectToJson
 * @return {*}
 */
void InsAIInfo::ObjectToJson(rapidjson::Writer<rapidjson::StringBuffer>& writer){
    writer.StartObject();
    writer.Key("NAME");
    writer.String(NAME.c_str());

    writer.Key("DATA");
    writer.String(DATA.c_str());
    
    writer.EndObject();
}

/**
 * @description: objectToJson
 * @param {string&} str
 * @return {*}
 */    
void InsAIInfo::ObjectToJson(std::string& str) {
}

/**
 * @description: jsonToObject
 * @param {string&} json
 * @return {*}
 */    
bool InsAIInfo::jsonToObject(const std::string& json) {
    return true;
}

/**
 * @description: jsonToObject
 * @param {Value&} object
 * @return {*}
 */    
bool InsAIInfo::jsonToObject(const rapidjson::Value& object){
    return true;
}

/**
 * @description: ObjectToSql
 * @param {string&} sql
 * @return {*}
 */    
bool InsAIInfo::ObjectToSql(std::string& sql) {
    return true;
}

/**
 * @description: ObjectToSql后处理
 * @param {string&} sql
 * @return {*}
 */ 
bool InsAIInfo::ObjectToSqlBack(std::string & sql){
    return true;
}