sync_entity.go 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. package sync
  2. type BaseReply struct {
  3. Code string `json:"code"`
  4. Msg string `json:"msg" `
  5. Result string `json:"result"`
  6. }
  7. type SyncAccountArgs struct {
  8. ClientId string `json:"client_id" sign:"client_id"`
  9. ClientSecret string `json:"client_secret" sign:"client_secret"`
  10. NonceStr string `json:"nonce_str" sign:"nonce_str"`
  11. Timestamp int64 `json:"timestamp" sign:"timestamp"`
  12. Sign string `json:"sign"`
  13. }
  14. type SyncAccountReply struct {
  15. Code string `json:"code"`
  16. Msg string `json:"msg" `
  17. Result []AccountEntity `json:"result"`
  18. }
  19. type AccountEntity struct {
  20. AccountNo string `json:"accountNo"`
  21. AccountName string `json:"accountName"`
  22. RequestFlag string `json:"requestFlag"`
  23. RequestTime string `json:"requestTime"`
  24. SourceType string `json:"sourceType"`
  25. AppPwd string `json:"appPwd"`
  26. RequestLogId string `json:"requestLogId"`
  27. UserName string `json:"userName"`
  28. Uid string `json:"uid"`
  29. PrWorkNo string `json:"prWorkNo"`
  30. Status string `json:"status"`
  31. ParentUserNo string `json:"parentUserNo"`
  32. ParentUserNo1 string `json:"parentUserNo1"`
  33. WeChatId struct {
  34. FsUserId string `json:"fsUserId"`
  35. FsUnionId string `json:"fsUnionId"`
  36. } `json:"weChatId"`
  37. ExtAttr struct {
  38. Zwmc string `json:"zwmc"`
  39. Zwbm string `json:"zwbm"`
  40. Zwlbmc string `json:"zwlbmc"`
  41. Zjbm string `json:"zjbm"`
  42. Zjmc string `json:"zjmc"`
  43. Zdbm string `json:"zdbm"`
  44. Zdmc string `json:"zdmc"`
  45. } `json:"extAttr"`
  46. JobId string `json:"jobId"`
  47. JobCode string `json:"jobCode"`
  48. JobName string `json:"jobName"`
  49. OrgId string `json:"orgId"`
  50. OrgCode string `json:"orgCode"`
  51. CompanyId string `json:"companyId"`
  52. UserJobAttr []struct {
  53. PrName string `json:"prName"`
  54. PrCode string `json:"prCode"`
  55. Status string `json:"status"`
  56. SupPosCode string `json:"supPosCode"`
  57. OrgCode string `json:"orgCode"`
  58. OrgId string `json:"orgId"`
  59. PrLevel string `json:"prLevel"`
  60. } `json:"userJobAttr"`
  61. }
  62. type SyncAccountStatus struct {
  63. ClientId string `json:"client_id" sign:"client_id"`
  64. ClientSecret string `json:"client_secret" sign:"client_secret"`
  65. NonceStr string `json:"nonce_str" sign:"nonce_str"`
  66. Timestamp int64 `json:"timestamp" sign:"timestamp"`
  67. Sign string `json:"sign"`
  68. RequestlogStr string `json:"requestlog_str"`
  69. }
  70. type SyncOrganizeArgs struct {
  71. ClientId string `json:"client_id" sign:"client_id"`
  72. ClientSecret string `json:"client_secret" sign:"client_secret"`
  73. NonceStr string `json:"nonce_str" sign:"nonce_str"`
  74. Timestamp int64 `json:"timestamp" sign:"timestamp"`
  75. Sign string `json:"sign"`
  76. UpdateTime string `json:"updateTime"`
  77. PageSize string `json:"pageSize"`
  78. PageIndex string `json:"pageIndex"`
  79. }
  80. type SyncOrganizeReply struct {
  81. Code string `json:"code"`
  82. Msg string `json:"msg" `
  83. Result []OrganizeEntity `json:"result"`
  84. TotalSize string `json:"totalSize" `
  85. }
  86. type OrganizeEntity struct {
  87. CompanyId string `json:"companyId"`
  88. OrgId string `json:"orgId"`
  89. ParentId string `json:"parentId"`
  90. OrgCode string `json:"orgCode"`
  91. ParentCode string `json:"parentCode"`
  92. OrgName string `json:"orgName"`
  93. SourceType string `json:"sourceType"`
  94. UpdateStatus string `json:"updateStatus"`
  95. Order string `json:"order"`
  96. }
  97. type SyncPostArgs struct {
  98. ClientId string `json:"client_id" sign:"client_id"`
  99. ClientSecret string `json:"client_secret" sign:"client_secret"`
  100. NonceStr string `json:"nonce_str" sign:"nonce_str"`
  101. Timestamp int64 `json:"timestamp" sign:"timestamp"`
  102. Sign string `json:"sign"`
  103. UpdateTime string `json:"updateTime"`
  104. PageSize string `json:"pageSize"`
  105. PageIndex string `json:"pageIndex"`
  106. }
  107. type SyncPostReply struct {
  108. Code string `json:"code"`
  109. Msg string `json:"msg" `
  110. TotalSize string `json:"totalSize" `
  111. Result []PostEntity `json:"result"`
  112. }
  113. type PostEntity struct {
  114. JobId string `json:"jobId"`
  115. JobName string `json:"jobName"`
  116. JobCode string `json:"jobCode"`
  117. OrgId string `json:"orgId"`
  118. OrgCode string `json:"orgCode"`
  119. UpdateStatus string `json:"updateStatus"`
  120. }