GUIConsole_def_g.h 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. #ifndef __GUICONSOLE_DEF_G_H
  2. #define __GUICONSOLE_DEF_G_H
  3. #pragma once
  4. // This code is generated by spgen tool!
  5. #include "SpHelper.h"
  6. namespace GUIConsole {
  7. //
  8. // const goes here
  9. //
  10. #define GUIConsoleService_Method_GetCurrentMaintainer 0
  11. #define GUIConsoleService_Method_Empower 1
  12. #define GUIConsoleService_Method_Takeover 2
  13. #define GUIConsoleService_Method_ForceQuit 3
  14. #define GUIConsoleService_Method_AddMaterialCounter 4
  15. #define GUIConsoleService_Method_GetMaterialCounter 5
  16. #define GUIConsoleService_Method_ResetMaterialCounter 6
  17. #define GUIConsoleService_Method_RegistSwallowedCard 7
  18. #define GUIConsoleService_Method_SyncMaterialCount 8
  19. #define GUIConsoleService_Method_AddTradeManage 9
  20. #define GUIConsoleService_Method_QueryMaterialInfo 10
  21. #define GUIConsoleService_MethodSignature_GetCurrentMaintainer 468241421
  22. #define GUIConsoleService_MethodSignature_Empower 771476230
  23. #define GUIConsoleService_MethodSignature_Takeover 367788349
  24. #define GUIConsoleService_MethodSignature_ForceQuit -1921832575
  25. #define GUIConsoleService_MethodSignature_AddMaterialCounter -1083055492
  26. #define GUIConsoleService_MethodSignature_GetMaterialCounter -1578876482
  27. #define GUIConsoleService_MethodSignature_ResetMaterialCounter -606816924
  28. #define GUIConsoleService_MethodSignature_RegistSwallowedCard 147114831
  29. #define GUIConsoleService_MethodSignature_SyncMaterialCount 1091110325
  30. #define GUIConsoleService_MethodSignature_AddTradeManage 485018637
  31. #define GUIConsoleService_MethodSignature_QueryMaterialInfo 467755649
  32. struct GUIConsoleService_GetCurrentMaintainer_Req
  33. {
  34. void Serialize(SpBuffer &Buf)
  35. {
  36. }
  37. };
  38. struct GUIConsoleService_GetCurrentMaintainer_Ans
  39. {
  40. CSimpleStringA strUserID;
  41. CSimpleStringA strUserName;
  42. CSimpleStringA strCurRight;
  43. CSimpleStringA strAuthorizer;
  44. unsigned int dwBeginTime;
  45. void Serialize(SpBuffer &Buf)
  46. {
  47. auto & buf = Buf & strUserID & strUserName & strCurRight & strAuthorizer & dwBeginTime;
  48. }
  49. };
  50. struct GUIConsoleService_Empower_Req
  51. {
  52. CSimpleStringA strUserID;
  53. void Serialize(SpBuffer &Buf)
  54. {
  55. auto & buf = Buf & strUserID;
  56. }
  57. };
  58. struct GUIConsoleService_Empower_Ans
  59. {
  60. void Serialize(SpBuffer &Buf)
  61. {
  62. }
  63. };
  64. struct GUIConsoleService_Takeover_Req
  65. {
  66. CSimpleStringA strUserID;
  67. void Serialize(SpBuffer &Buf)
  68. {
  69. auto & buf = Buf & strUserID;
  70. }
  71. };
  72. struct GUIConsoleService_Takeover_Ans
  73. {
  74. void Serialize(SpBuffer &Buf)
  75. {
  76. }
  77. };
  78. struct GUIConsoleService_ForceQuit_Req
  79. {
  80. void Serialize(SpBuffer &Buf)
  81. {
  82. }
  83. };
  84. struct GUIConsoleService_ForceQuit_Ans
  85. {
  86. void Serialize(SpBuffer &Buf)
  87. {
  88. }
  89. };
  90. struct GUIConsoleService_AddMaterialCounter_Req
  91. {
  92. CSimpleStringA strMaterialCode;
  93. void Serialize(SpBuffer &Buf)
  94. {
  95. auto & buf = Buf & strMaterialCode;
  96. }
  97. };
  98. struct GUIConsoleService_AddMaterialCounter_Ans
  99. {
  100. void Serialize(SpBuffer &Buf)
  101. {
  102. }
  103. };
  104. struct GUIConsoleService_GetMaterialCounter_Req
  105. {
  106. CSimpleStringA strMaterialCode;
  107. void Serialize(SpBuffer &Buf)
  108. {
  109. auto & buf = Buf & strMaterialCode;
  110. }
  111. };
  112. struct GUIConsoleService_GetMaterialCounter_Ans
  113. {
  114. unsigned int dwLastCapacity;
  115. unsigned int dwUsedCounter;
  116. void Serialize(SpBuffer &Buf)
  117. {
  118. auto & buf = Buf & dwLastCapacity & dwUsedCounter;
  119. }
  120. };
  121. struct GUIConsoleService_ResetMaterialCounter_Req
  122. {
  123. CSimpleStringA strMaterialCode;
  124. unsigned int dwResetCapacity;
  125. unsigned int dwRemainCounter;
  126. unsigned int dwUsedCounter;
  127. CSimpleStringA strComment;
  128. void Serialize(SpBuffer &Buf)
  129. {
  130. auto & buf = Buf & strMaterialCode & dwResetCapacity & dwRemainCounter & dwUsedCounter & strComment;
  131. }
  132. };
  133. struct GUIConsoleService_ResetMaterialCounter_Ans
  134. {
  135. void Serialize(SpBuffer &Buf)
  136. {
  137. }
  138. };
  139. struct GUIConsoleService_RegistSwallowedCard_Req
  140. {
  141. CSimpleStringA strCardNo;
  142. CSimpleStringA strReasonCode;
  143. CSimpleStringA strSwallowDate;
  144. CSimpleStringA strSwallowTime;
  145. CSimpleStringA strDeviceSciNo;
  146. void Serialize(SpBuffer &Buf)
  147. {
  148. auto & buf = Buf & strCardNo & strReasonCode & strSwallowDate & strSwallowTime & strDeviceSciNo;
  149. }
  150. };
  151. struct GUIConsoleService_RegistSwallowedCard_Ans
  152. {
  153. void Serialize(SpBuffer &Buf)
  154. {
  155. }
  156. };
  157. struct GUIConsoleService_SyncMaterialCount_Info
  158. {
  159. CSimpleStringA strDeviceNo;
  160. unsigned int dwCardBoxNum;
  161. CAutoArray<bool> arrMaintainFlag;
  162. CAutoArray<CSimpleStringA> arrMaintainer;
  163. CAutoArray<unsigned int> arrMaintainTime;
  164. CAutoArray<CSimpleStringA> arrCardBoxNo;
  165. CAutoArray<CSimpleStringA> arrPsbCode;
  166. CAutoArray<CSimpleStringA> arrPsbName;
  167. CAutoArray<unsigned int> arrCardInit;
  168. CAutoArray<unsigned int> arrCardRemains;
  169. CAutoArray<unsigned int> arrCardIssued;
  170. CAutoArray<unsigned int> arrCardMixed;
  171. CAutoArray<unsigned int> arrCardPercent;
  172. void Serialize(SpBuffer &Buf)
  173. {
  174. auto & buf = Buf & strDeviceNo & dwCardBoxNum & arrMaintainFlag & arrMaintainer & arrMaintainTime & arrCardBoxNo & arrPsbCode & arrPsbName & arrCardInit & arrCardRemains & arrCardIssued & arrCardMixed & arrCardPercent;
  175. }
  176. };
  177. struct GUIConsoleService_AddTradeManage_Req
  178. {
  179. CSimpleStringA terminalNo;
  180. CSimpleStringA AgentID;
  181. CSimpleStringA time;
  182. void Serialize(SpBuffer &Buf)
  183. {
  184. auto & buf = Buf & terminalNo & AgentID & time;
  185. }
  186. };
  187. struct GUIConsoleService_AddTradeManage_Ans
  188. {
  189. void Serialize(SpBuffer &Buf)
  190. {
  191. }
  192. };
  193. struct GUIConsoleService_QueryMaterialInfo_Req
  194. {
  195. CSimpleStringA strDeviceNo;
  196. void Serialize(SpBuffer &Buf)
  197. {
  198. auto & buf = Buf & strDeviceNo;
  199. }
  200. };
  201. struct GUIConsoleService_QueryMaterialInfo_Ans
  202. {
  203. unsigned int count;
  204. CAutoArray<CSimpleStringA> arrDeviceNo;
  205. CAutoArray<CSimpleStringA> arrMateriel;
  206. CAutoArray<CSimpleStringA> CardGroove;
  207. CAutoArray<CSimpleStringA> CardBoxNo;
  208. CAutoArray<CSimpleStringA> PsbCode;
  209. CAutoArray<CSimpleStringA> PsbName;
  210. CAutoArray<unsigned int> CardInit;
  211. CAutoArray<unsigned int> CardRemains;
  212. CAutoArray<unsigned int> CardIssued;
  213. CAutoArray<unsigned int> CardMixed;
  214. CAutoArray<unsigned int> CardPercent;
  215. CAutoArray<CSimpleStringA> TerminalNo;
  216. CAutoArray<CSimpleStringA> Maintainer;
  217. CAutoArray<CSimpleStringA> MaintainTime;
  218. CAutoArray<CSimpleStringA> UpdateTime;
  219. void Serialize(SpBuffer &Buf)
  220. {
  221. auto & buf = Buf & count & arrDeviceNo & arrMateriel & CardGroove & CardBoxNo & PsbCode & PsbName & CardInit & CardRemains & CardIssued & CardMixed & CardPercent & TerminalNo & Maintainer & MaintainTime & UpdateTime;
  222. }
  223. };
  224. ///////////////////////////
  225. } // namespace GUIConsole
  226. #endif // __GUICONSOLE_DEF_G_H