/*
 * @Description: 
 * @Version: 1.0
 * @Autor: lishengyin
 * @Date: 2022-04-19 11:52:09
 * @LastEditors: lishengyin
 * @LastEditTime: 2022-04-28 15:23:16
 */
#ifndef __APOLLOKSTEMPLATE_HPP_
#define __APOLLOKSTEMPLATE_HPP_

#include "K8sServerBase.hpp"

class ApolloKsTemplate:public MsgBase
{
public:
    int DESCRIPTIONID;
    std::string data;
    
public:
    ApolloKsTemplate(){}
    ~ApolloKsTemplate(){}

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

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

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

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


#endif