AccessAuthorization_def_g.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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_MethodSignature_Regist -1850909100
  17. #define AccessAuthService_MethodSignature_Unregist 667273038
  18. #define AccessAuthService_MethodSignature_InitDev 261099284
  19. #define AccessAuthService_MethodSignature_UpdateWK 949758137
  20. #define AccessAuthService_MethodSignature_InitializeNew 1851143282
  21. #define AccessAuthService_MethodSignature_SyncTime 1195907872
  22. #define AccessAuthService_LogCode_Regist "QLR040250200"
  23. #define AccessAuthService_LogCode_Unregist "QLR040250201"
  24. #define AccessAuthService_LogCode_InitDev "QLR040250202"
  25. #define AccessAuthService_LogCode_UpdateWK "QLR040250203"
  26. #define AccessAuthService_LogCode_InitializeNew "QLR040250204"
  27. #define AccessAuthService_LogCode_SyncTime "QLR040250205"
  28. struct AccessAuthService_Regist_Info
  29. {
  30. void Serialize(SpBuffer &Buf)
  31. {
  32. }
  33. };
  34. struct AccessAuthService_Unregist_Info
  35. {
  36. int nReason;
  37. int nWay;
  38. void Serialize(SpBuffer &Buf)
  39. {
  40. auto & buf = Buf & nReason & nWay;
  41. }
  42. };
  43. struct AccessAuthService_InitDev_Req
  44. {
  45. CSimpleStringA EncR1;
  46. CSimpleStringA EncR3;
  47. CSimpleStringA R2;
  48. CSimpleStringA EncDevPubKey;
  49. CSimpleStringA Vendor;
  50. void Serialize(SpBuffer &Buf)
  51. {
  52. auto & buf = Buf & EncR1 & EncR3 & R2 & EncDevPubKey & Vendor;
  53. }
  54. };
  55. struct AccessAuthService_InitDev_Ans
  56. {
  57. CSimpleStringA R1;
  58. CSimpleStringA R3;
  59. CSimpleStringA EncR2;
  60. void Serialize(SpBuffer &Buf)
  61. {
  62. auto & buf = Buf & R1 & R3 & EncR2;
  63. }
  64. };
  65. struct AccessAuthService_UpdateWK_Info
  66. {
  67. void Serialize(SpBuffer &Buf)
  68. {
  69. }
  70. };
  71. struct AccessAuthService_InitializeNew_Req
  72. {
  73. CSimpleStringA strAuthServer;
  74. CSimpleStringA strUserID;
  75. CSimpleStringA strPassword;
  76. void Serialize(SpBuffer &Buf)
  77. {
  78. auto & buf = Buf & strAuthServer & strUserID & strPassword;
  79. }
  80. };
  81. struct AccessAuthService_InitializeNew_Ans
  82. {
  83. double Errcode;
  84. CSimpleStringA ErrMsg;
  85. void Serialize(SpBuffer &Buf)
  86. {
  87. auto & buf = Buf & Errcode & ErrMsg;
  88. }
  89. };
  90. struct AccessAuthService_SyncTime_Info
  91. {
  92. void Serialize(SpBuffer &Buf)
  93. {
  94. }
  95. };
  96. ///////////////////////////
  97. } // namespace AccessAuthorization
  98. #endif // __ACCESSAUTHORIZATION_DEF_G_H