TableInfo.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. #ifndef __TABLE_INFO__
  2. #define __TABLE_INFO__
  3. // 订单下载表;
  4. typedef struct __ST_MID__
  5. {
  6. std::string order; // 订单号;
  7. std::string number; // 订单数量;
  8. std::string pid; // pid;
  9. std::string ctype; // client type;
  10. std::string version; // 软件版本;
  11. std::string purl; // 包地址;
  12. std::string psize; // 包大小;
  13. std::string pmd5; // 包md5;
  14. std::string status; // 下载状态:0=未下载,1=完成,-1=下载失败;
  15. std::string start_date; // 下载开始时间;
  16. std::string finish_date; // 下载完成时间;
  17. //std::string dsize; // 已下载大小;
  18. //std::string file; // 文件路径;
  19. std::string des; // 状态描述:下载失败原因;
  20. __ST_MID__& operator=(const __ST_MID__& that)
  21. {
  22. if ( this != &that )
  23. {
  24. number = that.number;
  25. pid = that.pid;
  26. ctype = that.ctype;
  27. version = that.version;
  28. purl = that.purl;
  29. psize = that.psize;
  30. pmd5 = that.pmd5;
  31. status = that.status;
  32. start_date = that.start_date;
  33. finish_date = that.finish_date;
  34. //dsize = that.dsize;
  35. //file = that.file;
  36. des = that.des;
  37. }
  38. return *this;
  39. }
  40. }STMid, *pSTMid;
  41. // 抄写表;
  42. typedef struct __ST_KEYS__
  43. {
  44. std::string sn; // sn;
  45. std::string bid; // 订单号;
  46. std::string keys; // key包Json字符串;
  47. std::string pid; // project id;
  48. std::string copy_date; // 抄写成功时间;
  49. std::string report_date; // 上报成功时间;
  50. //std::string copy_status; // 抄写状态:0=未抄写、-1=抄写成失败、1=抄写成功;
  51. //std::string report_status; // 上报状态:0=未上报、1=上报成功、-1=上报失败;
  52. __ST_KEYS__& operator=(const __ST_KEYS__& that)
  53. {
  54. if ( this != &that )
  55. {
  56. sn = that.sn;
  57. bid = that.bid;
  58. keys = that.keys;
  59. pid = that.pid;
  60. copy_date = that.copy_date;
  61. report_date = that.report_date;
  62. }
  63. return *this;
  64. }
  65. }STKeys, *pSTKeys;
  66. // 日志表;
  67. typedef struct __ST_LOG__
  68. {
  69. std::string type; // 日志类型;
  70. std::string sn; // 关联的sn;
  71. std::string bid; // 订单号;
  72. std::string content; // 日志内容;
  73. std::string gdate; // 日志生成时间;
  74. std::string report_date; // 日志上报成功时间;
  75. //std::string report_status; // 上报状态:0=未上报、1=上报成功、-1=上报失败;
  76. }STLog, *pSTLog;
  77. ///////////////////////////////////////////////////////////////////////////////////
  78. // 以下两结构,对外提供sdk时需要使用到;对外提供时,以上结构请删除;
  79. // 抄写表;
  80. typedef struct __SN_KEYS__
  81. {
  82. int pid; // project id;
  83. std::string did; // device id;
  84. std::string mac; // mac地址;
  85. std::string hdcp; // hdcp;
  86. std::string hdcp22; // hdcp22;
  87. std::string widi; // widi;
  88. std::string widevine; // widevine;
  89. std::string esn; // neflix esn;
  90. std::string cikey; // cikey;
  91. }SNKeys, *pSNKeys;
  92. // 批次数量信息;
  93. typedef struct __BID_INFO__
  94. {
  95. std::string tcount; // 应下载sn数量(服务器给定的,一般应下载sn数量=实际下载sn数量);
  96. std::string sn_count; // 实际下载sn数量(本地保存的);
  97. std::string copy_count; // 成功抄写数量;
  98. std::string report_count; // 成功上报数量;
  99. }BidInfo, *pBidInfo;
  100. #endif