| 123456789101112131415161718192021222324252627282930313233343536373839 |
- #ifndef IDINGDING_H
- #define IDINGDING_H
- #ifdef DINGDING_EXPORTS
- #define DINGDING_API __declspec(dllexport)
- #else
- #define DINGDING_API __declspec(dllimport)
- #endif
- #include <string>
- #include <json/json.h>
- #pragma comment(lib,"jsoncpp_static.lib")
- class DINGDING_API IDingDing
- {
- public:
- virtual ~IDingDing() = 0 {};
- //static IDingDing* GetInstance();
- // 推送信息到钉钉
- virtual bool Push(const std::string& strInfo) = 0;
- // 推送心跳提醒消息到钉钉
- virtual bool PushHeart(const std::string& strDev) = 0;
- virtual bool PushHeart(const std::string& strDev, const bool& bIsPush, const bool& bIsRm = false) = 0;
- // 推送连接断开消息到钉钉
- virtual bool PushDisConn(const std::string& strDev) = 0;
- // 推送IVR流程节点超时提醒到钉钉
- virtual bool PushIVRCellTimeOut() = 0;
- // 推送SQL执行失败语句到钉钉
- virtual bool PushFailSQL(const std::string&strSql, const std::string& strErrInfo = "") = 0;
- // 推送fslink不能找到对应通道消息到钉钉
- virtual bool PushFindFailChan() = 0;
- };
- extern "C" DINGDING_API IDingDing* GetDingDing();
- #endif
|