IDCertificate_def_g.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. #ifndef __IDCERTIFICATE_DEF_G_H
  2. #define __IDCERTIFICATE_DEF_G_H
  3. #pragma once
  4. // This code is generated by spgen tool!
  5. #include "SpHelper.h"
  6. namespace IDCertificate {
  7. //
  8. // const goes here
  9. //
  10. #define IDCertService_Method_CancelRead 1
  11. #define IDCertService_Method_GetDevInfo 65535
  12. #define IDCertService_Method_ReadAndScanUTF8 9
  13. #define IDCertService_Method_ReadAndScanUTF8JS 10
  14. #define IDCertService_Method_CancelReadJS 11
  15. #define IDCertService_MethodSignature_CancelRead -342104338
  16. #define IDCertService_MethodSignature_GetDevInfo 296205965
  17. #define IDCertService_MethodSignature_ReadAndScanUTF8 1171255469
  18. #define IDCertService_MethodSignature_ReadAndScanUTF8JS 1636770944
  19. #define IDCertService_MethodSignature_CancelReadJS -1728083983
  20. #define IDCertService_LogCode_CancelRead "QLR040220101"
  21. #define IDCertService_LogCode_GetDevInfo "QLR040220199"
  22. #define IDCertService_LogCode_ReadAndScanUTF8 "QLR040220109"
  23. #define IDCertService_LogCode_ReadAndScanUTF8JS "QLR040220110"
  24. #define IDCertService_LogCode_CancelReadJS "QLR040220111"
  25. struct IDCertService_CancelRead_Info
  26. {
  27. void Serialize(SpBuffer &Buf)
  28. {
  29. }
  30. };
  31. struct IDCertService_GetDevInfo_Req
  32. {
  33. void Serialize(SpBuffer &Buf)
  34. {
  35. }
  36. };
  37. struct IDCertService_GetDevInfo_Ans
  38. {
  39. CSimpleStringA type;
  40. CSimpleStringA model;
  41. CSimpleStringA version;
  42. int state;
  43. void Serialize(SpBuffer &Buf)
  44. {
  45. auto & buf = Buf & type & model & version & state;
  46. }
  47. };
  48. struct IDCertService_ReadAndScanUTF8_Req
  49. {
  50. int type;
  51. CAutoArray<int> reserved1;
  52. CAutoArray<CSimpleStringA> reserved2;
  53. void Serialize(SpBuffer &Buf)
  54. {
  55. auto & buf = Buf & type & reserved1 & reserved2;
  56. }
  57. };
  58. struct IDCertService_ReadAndScanUTF8_Ans
  59. {
  60. int msgtype;
  61. int hasscan;
  62. CBlob photodata;
  63. CBlob frontphoto;
  64. CBlob backphoto;
  65. CBlob headphoto;
  66. CBlob finger1;
  67. CBlob finger2;
  68. CBlob imgreserved1;
  69. CBlob imgreserved2;
  70. CAutoArray<int> reserved1;
  71. CAutoArray<CSimpleStringA> reserved2;
  72. CBlob name_utf8;
  73. CBlob sex_utf8;
  74. CBlob nation_utf8;
  75. CBlob birthday_utf8;
  76. CBlob address_utf8;
  77. CBlob idcode_utf8;
  78. CBlob department_utf8;
  79. CBlob startdate_utf8;
  80. CBlob enddate_utf8;
  81. CBlob englishname_utf8;
  82. CBlob nationality_utf8;
  83. CBlob idversion_utf8;
  84. CBlob idtype_utf8;
  85. CBlob othercode_utf8;
  86. CBlob reserved_utf8;
  87. void Serialize(SpBuffer &Buf)
  88. {
  89. auto & buf = Buf & msgtype & hasscan & photodata & frontphoto & backphoto & headphoto & finger1 & finger2 & imgreserved1 & imgreserved2 & reserved1 & reserved2 & name_utf8 & sex_utf8 & nation_utf8 & birthday_utf8 & address_utf8 & idcode_utf8 & department_utf8 & startdate_utf8 & enddate_utf8 & englishname_utf8 & nationality_utf8 & idversion_utf8 & idtype_utf8 & othercode_utf8 & reserved_utf8;
  90. }
  91. };
  92. struct IDCertService_ReadAndScanUTF8JS_Req
  93. {
  94. int type;
  95. CAutoArray<int> reserved1;
  96. CAutoArray<CSimpleStringA> reserved2;
  97. void Serialize(SpBuffer &Buf)
  98. {
  99. auto & buf = Buf & type & reserved1 & reserved2;
  100. }
  101. };
  102. struct IDCertService_ReadAndScanUTF8JS_Ans
  103. {
  104. int hasscan;
  105. CBlob frontphoto;
  106. CBlob backphoto;
  107. CBlob headphoto;
  108. CBlob finger1;
  109. CBlob finger2;
  110. CBlob imgreserved1;
  111. CBlob imgreserved2;
  112. CAutoArray<int> reserved1;
  113. CAutoArray<CSimpleStringA> reserved2;
  114. CBlob name_utf8;
  115. CBlob sex_utf8;
  116. CBlob nation_utf8;
  117. CBlob birthday_utf8;
  118. CBlob address_utf8;
  119. CBlob idcode_utf8;
  120. CBlob department_utf8;
  121. CBlob startdate_utf8;
  122. CBlob enddate_utf8;
  123. CBlob englishname_utf8;
  124. CBlob nationality_utf8;
  125. CBlob idversion_utf8;
  126. CBlob idtype_utf8;
  127. CBlob othercode_utf8;
  128. CBlob reserved_utf8;
  129. void Serialize(SpBuffer &Buf)
  130. {
  131. auto & buf = Buf & hasscan & frontphoto & backphoto & headphoto & finger1 & finger2 & imgreserved1 & imgreserved2 & reserved1 & reserved2 & name_utf8 & sex_utf8 & nation_utf8 & birthday_utf8 & address_utf8 & idcode_utf8 & department_utf8 & startdate_utf8 & enddate_utf8 & englishname_utf8 & nationality_utf8 & idversion_utf8 & idtype_utf8 & othercode_utf8 & reserved_utf8;
  132. }
  133. };
  134. struct IDCertService_CancelReadJS_Req
  135. {
  136. void Serialize(SpBuffer &Buf)
  137. {
  138. }
  139. };
  140. struct IDCertService_CancelReadJS_Ans
  141. {
  142. void Serialize(SpBuffer &Buf)
  143. {
  144. }
  145. };
  146. ///////////////////////////
  147. } // namespace IDCertificate
  148. #endif // __IDCERTIFICATE_DEF_G_H