/*
 * @Description: 
 * @Version: 1.0
 * @Autor: lishengyin
 * @Date: 2022-04-07 15:23:27
 * @LastEditors: lishengyin
 * @LastEditTime: 2022-06-16 14:31:25
 */
#ifndef __APOLLOAPPCONFIG_HPP_
#define __APOLLOAPPCONFIG_HPP_

#include "K8sServerBase.hpp"

class ApolloAppConfig:public MsgBase
{
public:
    int Server_Port;
    std::string k8s_IP;
    int k8s_port;
    std::string netty_IP;
    int netty_port;
    int ayncThreadNum;

public:
    ApolloAppConfig(){}
    ~ApolloAppConfig(){}

    /**
     * @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 {*}
     */    
    virtual bool ObjectToSql(std::string& sql) override;
};


#endif