中间件底层,websocket

CellHttpClient.h 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #pragma once
  2. #include "CellBase.h"
  3. #include "CellAUTOCREATE.h"
  4. #include "CHttpUtil.h"
  5. class CCellHttpClient :public CCellBase
  6. {
  7. DECLARE_CELL_AUTOCREATE
  8. public:
  9. CCellHttpClient(void);
  10. CCellHttpClient(CCellHttpClient& CellHttpClient);
  11. virtual ~CCellHttpClient(void);
  12. ////////////////////////////////////////////////////////////////////////////////
  13. //继承自CCellBase
  14. int operate(void);
  15. CCellBase * copy(void);
  16. bool fillData(IFlowDataProvider& Provider);
  17. LPCTSTR name(void) const { return CELL_NAME_HTTP; }
  18. int maxWaitingTime(void) const { return 0; }
  19. private:
  20. bool m_IsSaveRs; // SQL语句是否返回记录集标志,1:返回 0:不返回
  21. int m_SuccessPos; // 执行成功,下一节点
  22. int m_FailPos; // 执行失败, 下一节点
  23. CString m_Url; // 要请求的URL
  24. };
  25. /*
  26. <cell Name = "CELL_HTTP" Pos = "220" HttpStr = "http://127.0.0.1/api/%[CalleeID]"
  27. IsSaved = "yes" SuccessPos = "221" FailPos = "24" Note = "获取备注" / >
  28. 接口需要返回的json结构
  29. { \"state\":\"success\",\"message\" : \"获取最近沟通的坐席\",\"data\" : {\"seatcode\":\"8025\"} }
  30. */