CenterSetting_def_g.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. #ifndef __CENTERSETTING_DEF_G_H
  2. #define __CENTERSETTING_DEF_G_H
  3. #pragma once
  4. // This code is generated by spgen tool!
  5. #include "SpHelper.h"
  6. namespace CenterSetting {
  7. //
  8. // const goes here
  9. //
  10. #define CenterSettingService_Method_Download 0
  11. #define CenterSettingService_Method_GetSyncInfo 1
  12. #define CenterSettingService_Method_EditWebUrl 2
  13. #define CenterSettingService_Method_GetWebUrlList 3
  14. #define CenterSettingService_Method_GetActiveCustomUrl 4
  15. #define CenterSettingService_Method_EditTerminalBackupInfo 5
  16. #define CenterSettingService_Method_GetTerminalBackupInfoList 6
  17. #define CenterSettingService_Method_DownloadCenterFiles 7
  18. #define CenterSettingService_MethodSignature_Download -101852141
  19. #define CenterSettingService_MethodSignature_GetSyncInfo 1338819403
  20. #define CenterSettingService_MethodSignature_EditWebUrl 112159607
  21. #define CenterSettingService_MethodSignature_GetWebUrlList 166192532
  22. #define CenterSettingService_MethodSignature_GetActiveCustomUrl -2094137460
  23. #define CenterSettingService_MethodSignature_EditTerminalBackupInfo -1684426310
  24. #define CenterSettingService_MethodSignature_GetTerminalBackupInfoList 652072921
  25. #define CenterSettingService_MethodSignature_DownloadCenterFiles 1100121901
  26. struct CenterSettingService_Download_Req
  27. {
  28. CSimpleStringA strAddr;
  29. int nPort;
  30. void Serialize(SpBuffer &Buf)
  31. {
  32. auto & buf = Buf & strAddr & nPort;
  33. }
  34. };
  35. struct CenterSettingService_Download_Ans
  36. {
  37. void Serialize(SpBuffer &Buf)
  38. {
  39. }
  40. };
  41. struct CenterSettingService_GetSyncInfo_Req
  42. {
  43. void Serialize(SpBuffer &Buf)
  44. {
  45. }
  46. };
  47. struct CenterSettingService_GetSyncInfo_Ans
  48. {
  49. unsigned int nSyncTime;
  50. CSimpleStringA strFileName;
  51. CSimpleStringA strFileHash;
  52. void Serialize(SpBuffer &Buf)
  53. {
  54. auto & buf = Buf & nSyncTime & strFileName & strFileHash;
  55. }
  56. };
  57. struct CenterSettingService_EditWebUrl_Req
  58. {
  59. int operation;
  60. int index;
  61. CSimpleStringA futureUrl;
  62. CSimpleStringA adUrl;
  63. CSimpleStringA remark;
  64. int env;
  65. bool setDefault;
  66. void Serialize(SpBuffer &Buf)
  67. {
  68. auto & buf = Buf & operation & index & futureUrl & adUrl & remark & env & setDefault;
  69. }
  70. };
  71. struct CenterSettingService_EditWebUrl_Ans
  72. {
  73. int result;
  74. int addition;
  75. CSimpleStringA msg;
  76. void Serialize(SpBuffer &Buf)
  77. {
  78. auto & buf = Buf & result & addition & msg;
  79. }
  80. };
  81. struct CenterSettingService_GetWebUrlList_Req
  82. {
  83. int filter1;
  84. int filter2;
  85. int filter3;
  86. CSimpleStringA filter4;
  87. void Serialize(SpBuffer &Buf)
  88. {
  89. auto & buf = Buf & filter1 & filter2 & filter3 & filter4;
  90. }
  91. };
  92. struct CenterSettingService_GetWebUrlList_Ans
  93. {
  94. CAutoArray<int> index;
  95. CAutoArray<CSimpleStringA> futureUrl;
  96. CAutoArray<CSimpleStringA> adUrl;
  97. CAutoArray<CSimpleStringA> remark;
  98. CAutoArray<int> env;
  99. CAutoArray<int> type;
  100. CAutoArray<int> status;
  101. void Serialize(SpBuffer &Buf)
  102. {
  103. auto & buf = Buf & index & futureUrl & adUrl & remark & env & type & status;
  104. }
  105. };
  106. struct CenterSettingService_GetActiveCustomUrl_Req
  107. {
  108. void Serialize(SpBuffer &Buf)
  109. {
  110. }
  111. };
  112. struct CenterSettingService_GetActiveCustomUrl_Ans
  113. {
  114. CSimpleStringA fultureUrl;
  115. CSimpleStringA adUrl;
  116. void Serialize(SpBuffer &Buf)
  117. {
  118. auto & buf = Buf & fultureUrl & adUrl;
  119. }
  120. };
  121. struct CenterSettingService_EditTerminalBackupInfo_Req
  122. {
  123. int operation;
  124. int index;
  125. CSimpleStringA terminalNo;
  126. CSimpleStringA branchIP;
  127. CSimpleStringA remark;
  128. int env;
  129. bool setDefault;
  130. void Serialize(SpBuffer &Buf)
  131. {
  132. auto & buf = Buf & operation & index & terminalNo & branchIP & remark & env & setDefault;
  133. }
  134. };
  135. struct CenterSettingService_EditTerminalBackupInfo_Ans
  136. {
  137. int result;
  138. int addition;
  139. CSimpleStringA msg;
  140. void Serialize(SpBuffer &Buf)
  141. {
  142. auto & buf = Buf & result & addition & msg;
  143. }
  144. };
  145. struct CenterSettingService_GetTerminalBackupInfoList_Req
  146. {
  147. int filter1;
  148. int filter2;
  149. int filter3;
  150. CSimpleStringA filter4;
  151. void Serialize(SpBuffer &Buf)
  152. {
  153. auto & buf = Buf & filter1 & filter2 & filter3 & filter4;
  154. }
  155. };
  156. struct CenterSettingService_GetTerminalBackupInfoList_Ans
  157. {
  158. CAutoArray<int> index;
  159. CAutoArray<CSimpleStringA> terminalNo;
  160. CAutoArray<CSimpleStringA> branchIP;
  161. CAutoArray<CSimpleStringA> remark;
  162. CAutoArray<int> env;
  163. CAutoArray<int> status;
  164. void Serialize(SpBuffer &Buf)
  165. {
  166. auto & buf = Buf & index & terminalNo & branchIP & remark & env & status;
  167. }
  168. };
  169. struct CenterSettingService_DownloadCenterFiles_Req
  170. {
  171. int operation;
  172. CSimpleStringA strAddr;
  173. int nPort;
  174. bool deleteIfExist;
  175. CSimpleStringA additional1;
  176. CSimpleStringA additional2;
  177. CSimpleStringA additional3;
  178. CSimpleStringA additional4;
  179. int reserved1;
  180. int reserved2;
  181. void Serialize(SpBuffer &Buf)
  182. {
  183. auto & buf = Buf & operation & strAddr & nPort & deleteIfExist & additional1 & additional2 & additional3 & additional4 & reserved1 & reserved2;
  184. }
  185. };
  186. struct CenterSettingService_DownloadCenterFiles_Ans
  187. {
  188. int result;
  189. CSimpleStringA msg;
  190. void Serialize(SpBuffer &Buf)
  191. {
  192. auto & buf = Buf & result & msg;
  193. }
  194. };
  195. ///////////////////////////
  196. } // namespace CenterSetting
  197. #endif // __CENTERSETTING_DEF_G_H