AccessAuthorization_def_g.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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. struct AccessAuthService_Regist_Info
  31. {
  32. void Serialize(SpBuffer &Buf)
  33. {
  34. }
  35. };
  36. struct AccessAuthService_Unregist_Info
  37. {
  38. int nReason;
  39. int nWay;
  40. void Serialize(SpBuffer &Buf)
  41. {
  42. auto & buf = Buf & nReason & nWay;
  43. }
  44. };
  45. struct AccessAuthService_InitDev_Req
  46. {
  47. CSimpleStringA EncR1;
  48. CSimpleStringA EncR3;
  49. CSimpleStringA R2;
  50. CSimpleStringA EncDevPubKey;
  51. CSimpleStringA Vendor;
  52. void Serialize(SpBuffer &Buf)
  53. {
  54. auto & buf = Buf & EncR1 & EncR3 & R2 & EncDevPubKey & Vendor;
  55. }
  56. };
  57. struct AccessAuthService_InitDev_Ans
  58. {
  59. CSimpleStringA R1;
  60. CSimpleStringA R3;
  61. CSimpleStringA EncR2;
  62. void Serialize(SpBuffer &Buf)
  63. {
  64. auto & buf = Buf & R1 & R3 & EncR2;
  65. }
  66. };
  67. struct AccessAuthService_UpdateWK_Info
  68. {
  69. void Serialize(SpBuffer &Buf)
  70. {
  71. }
  72. };
  73. struct AccessAuthService_InitializeNew_Req
  74. {
  75. CSimpleStringA strAuthServer;
  76. CSimpleStringA strUserID;
  77. CSimpleStringA strPassword;
  78. void Serialize(SpBuffer &Buf)
  79. {
  80. auto & buf = Buf & strAuthServer & strUserID & strPassword;
  81. }
  82. };
  83. struct AccessAuthService_InitializeNew_Ans
  84. {
  85. double Errcode;
  86. CSimpleStringA ErrMsg;
  87. void Serialize(SpBuffer &Buf)
  88. {
  89. auto & buf = Buf & Errcode & ErrMsg;
  90. }
  91. };
  92. struct AccessAuthService_SyncTime_Info
  93. {
  94. void Serialize(SpBuffer &Buf)
  95. {
  96. }
  97. };
  98. struct AccessAuthService_GetNetMsg_Req
  99. {
  100. void Serialize(SpBuffer &Buf)
  101. {
  102. }
  103. };
  104. struct AccessAuthService_GetNetMsg_Ans
  105. {
  106. int netStatus;
  107. CSimpleStringA netMsg;
  108. CSimpleStringA reserved1;
  109. CSimpleStringA reserved2;
  110. void Serialize(SpBuffer &Buf)
  111. {
  112. auto & buf = Buf & netStatus & netMsg & reserved1 & reserved2;
  113. }
  114. };
  115. ///////////////////////////
  116. } // namespace AccessAuthorization
  117. #endif // __ACCESSAUTHORIZATION_DEF_G_H