AccessAuthorization_def_g.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. struct AccessAuthService_Regist_Info
  23. {
  24. void Serialize(SpBuffer &Buf)
  25. {
  26. }
  27. };
  28. struct AccessAuthService_Unregist_Info
  29. {
  30. int nReason;
  31. int nWay;
  32. void Serialize(SpBuffer &Buf)
  33. {
  34. auto & buf = Buf & nReason & nWay;
  35. }
  36. };
  37. struct AccessAuthService_InitDev_Req
  38. {
  39. CSimpleStringA EncR1;
  40. CSimpleStringA EncR3;
  41. CSimpleStringA R2;
  42. CSimpleStringA EncDevPubKey;
  43. CSimpleStringA Vendor;
  44. void Serialize(SpBuffer &Buf)
  45. {
  46. auto & buf = Buf & EncR1 & EncR3 & R2 & EncDevPubKey & Vendor;
  47. }
  48. };
  49. struct AccessAuthService_InitDev_Ans
  50. {
  51. CSimpleStringA R1;
  52. CSimpleStringA R3;
  53. CSimpleStringA EncR2;
  54. void Serialize(SpBuffer &Buf)
  55. {
  56. auto & buf = Buf & R1 & R3 & EncR2;
  57. }
  58. };
  59. struct AccessAuthService_UpdateWK_Info
  60. {
  61. void Serialize(SpBuffer &Buf)
  62. {
  63. }
  64. };
  65. struct AccessAuthService_InitializeNew_Req
  66. {
  67. CSimpleStringA strAuthServer;
  68. CSimpleStringA strUserID;
  69. CSimpleStringA strPassword;
  70. void Serialize(SpBuffer &Buf)
  71. {
  72. auto & buf = Buf & strAuthServer & strUserID & strPassword;
  73. }
  74. };
  75. struct AccessAuthService_InitializeNew_Ans
  76. {
  77. double Errcode;
  78. CSimpleStringA ErrMsg;
  79. void Serialize(SpBuffer &Buf)
  80. {
  81. auto & buf = Buf & Errcode & ErrMsg;
  82. }
  83. };
  84. struct AccessAuthService_SyncTime_Info
  85. {
  86. void Serialize(SpBuffer &Buf)
  87. {
  88. }
  89. };
  90. ///////////////////////////
  91. } // namespace AccessAuthorization
  92. #endif // __ACCESSAUTHORIZATION_DEF_G_H