AccessAuthorization_def_g.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. #ifndef __ACCESSAUTHORIZATION_DEF_G_H
  2. #define __ACCESSAUTHORIZATION_DEF_G_H
  3. #pragma once
  4. // This code is generated by spgen tool!
  5. #include "SpHelper.h"
  6. namespace AccessAuthorization {
  7. //
  8. // const goes here
  9. //
  10. #define AccessAuthService_Method_Regist 0
  11. #define AccessAuthService_Method_Unregist 1
  12. #define AccessAuthService_Method_InitDev 2
  13. #define AccessAuthService_Method_UpdateWK 3
  14. #define AccessAuthService_Method_InitializeNew 4
  15. #define AccessAuthService_Method_SyncTime 5
  16. #define AccessAuthService_Method_GetNetMsg 6
  17. #define AccessAuthService_MethodSignature_Regist -1850909100
  18. #define AccessAuthService_MethodSignature_Unregist 667273038
  19. #define AccessAuthService_MethodSignature_InitDev 261099284
  20. #define AccessAuthService_MethodSignature_UpdateWK 949758137
  21. #define AccessAuthService_MethodSignature_InitializeNew 1851143282
  22. #define AccessAuthService_MethodSignature_SyncTime 1195907872
  23. #define AccessAuthService_MethodSignature_GetNetMsg 62776855
  24. #define AccessAuthService_LogCode_Regist "QLR040250200"
  25. #define AccessAuthService_LogCode_Unregist "QLR040250201"
  26. #define AccessAuthService_LogCode_InitDev "QLR040250202"
  27. #define AccessAuthService_LogCode_UpdateWK "QLR040250203"
  28. #define AccessAuthService_LogCode_InitializeNew "QLR040250204"
  29. #define AccessAuthService_LogCode_SyncTime "QLR040250205"
  30. #define AccessAuthService_LogCode_GetNetMsg "QLR040250206"
  31. struct AccessAuthService_Regist_Info
  32. {
  33. void Serialize(SpBuffer &Buf)
  34. {
  35. }
  36. };
  37. struct AccessAuthService_Unregist_Info
  38. {
  39. int nReason;
  40. int nWay;
  41. void Serialize(SpBuffer &Buf)
  42. {
  43. auto & buf = Buf & nReason & nWay;
  44. }
  45. };
  46. struct AccessAuthService_InitDev_Req
  47. {
  48. CSimpleStringA EncR1;
  49. CSimpleStringA EncR3;
  50. CSimpleStringA R2;
  51. CSimpleStringA EncDevPubKey;
  52. CSimpleStringA Vendor;
  53. void Serialize(SpBuffer &Buf)
  54. {
  55. auto & buf = Buf & EncR1 & EncR3 & R2 & EncDevPubKey & Vendor;
  56. }
  57. };
  58. struct AccessAuthService_InitDev_Ans
  59. {
  60. CSimpleStringA R1;
  61. CSimpleStringA R3;
  62. CSimpleStringA EncR2;
  63. void Serialize(SpBuffer &Buf)
  64. {
  65. auto & buf = Buf & R1 & R3 & EncR2;
  66. }
  67. };
  68. struct AccessAuthService_UpdateWK_Info
  69. {
  70. void Serialize(SpBuffer &Buf)
  71. {
  72. }
  73. };
  74. struct AccessAuthService_InitializeNew_Req
  75. {
  76. CSimpleStringA strAuthServer;
  77. CSimpleStringA strUserID;
  78. CSimpleStringA strPassword;
  79. void Serialize(SpBuffer &Buf)
  80. {
  81. auto & buf = Buf & strAuthServer & strUserID & strPassword;
  82. }
  83. };
  84. struct AccessAuthService_InitializeNew_Ans
  85. {
  86. double Errcode;
  87. CSimpleStringA ErrMsg;
  88. void Serialize(SpBuffer &Buf)
  89. {
  90. auto & buf = Buf & Errcode & ErrMsg;
  91. }
  92. };
  93. struct AccessAuthService_SyncTime_Info
  94. {
  95. void Serialize(SpBuffer &Buf)
  96. {
  97. }
  98. };
  99. struct AccessAuthService_GetNetMsg_Req
  100. {
  101. void Serialize(SpBuffer &Buf)
  102. {
  103. }
  104. };
  105. struct AccessAuthService_GetNetMsg_Ans
  106. {
  107. int netStatus;
  108. CSimpleStringA netMsg;
  109. CSimpleStringA reserved1;
  110. CSimpleStringA reserved2;
  111. void Serialize(SpBuffer &Buf)
  112. {
  113. auto & buf = Buf & netStatus & netMsg & reserved1 & reserved2;
  114. }
  115. };
  116. ///////////////////////////
  117. } // namespace AccessAuthorization
  118. #endif // __ACCESSAUTHORIZATION_DEF_G_H