h5_log.go 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. package apis
  2. type H5AccessLog struct {
  3. Id int64 `json:"id"`
  4. MerchantId int64 `json:"-"`
  5. ApiId int64 `json:"-"`
  6. H5ServiceId int64 `json:"h5_service_id"`
  7. H5ApiId int64 `json:"h5_api_id"`
  8. H5ServiceName string `json:"h5_service_name"`
  9. H5ApiName string `json:"h5_api_name"`
  10. MerchantName string `json:"merchant_name"`
  11. ApiName string `json:"api_name"`
  12. PlateNo string `json:"plate_no"`
  13. PlateType string `json:"plate_type"`
  14. Vin string `json:"vin"`
  15. RequestParams string `json:"request_params"`
  16. ResponseParams string `json:"response_params"`
  17. RawRequestParams string `json:"raw_request_params"`
  18. RawResponseParams string `json:"raw_response_params"`
  19. Code int `json:"code"`
  20. Msg string `json:"msg"`
  21. IsReuse bool `json:"is_reuse"`
  22. State bool `json:"state"`
  23. RemoteAddr string `json:"remote_addr"`
  24. Elapsed float64 `json:"elapsed"`
  25. Timestamp int64 `json:"-"`
  26. CreateTime string `json:"create_time"`
  27. }
  28. func (o *H5AccessLog) TableName() string {
  29. return "t_gd_h5_access_log"
  30. }
  31. type H5ThirdpartLog struct {
  32. Id int64 `json:"id"`
  33. AccessId int64 `json:"access_id"`
  34. MerchantId int64 `json:"-"`
  35. ApiId int64 `json:"-"`
  36. ProviderId int64 `json:"-"`
  37. ProviderApiId int64 `json:"-"`
  38. H5ServiceId int64 `json:"-"`
  39. H5ApiId int64 `json:"-"`
  40. H5ServiceName string `json:"h5_service_name"`
  41. H5ApiName string `json:"h5_api_name"`
  42. MerchantName string `json:"merchant_name"`
  43. ApiName string `json:"api_name"`
  44. ProviderName string `json:"provider_name"`
  45. ProviderApiName string `json:"provider_api_name"`
  46. PlateNo string `json:"plate_no"`
  47. PlateType string `json:"plate_type"`
  48. Vin string `json:"vin"`
  49. RequestParams string `json:"request_params"`
  50. ResponseParams string `json:"response_params"`
  51. Code int `json:"code"`
  52. Msg string `json:"msg"`
  53. State bool `json:"state"`
  54. RemoteAddr string `json:"remote_addr"`
  55. Elapsed float64 `json:"elapsed"`
  56. Timestamp int64 `json:"-"`
  57. CreateTime string `json:"create_time"`
  58. }
  59. func (o *H5ThirdpartLog) TableName() string {
  60. return "t_gd_h5_thirdpart_access_log"
  61. }
  62. type H5AccessLogWrite struct {
  63. State bool `json:"state"`
  64. Code int `json:"code"`
  65. Msg string `json:"msg"`
  66. RawRequestParams string `json:"raw_request_params"`
  67. RawResponseParams string `json:"raw_response_params"`
  68. RequestParams string `json:"request_params"`
  69. ResponseParams string `json:"response_params"`
  70. IsReuse bool `json:"is_reuse"`
  71. Elapsed float64 `json:"elapsed"`
  72. }
  73. type H5ThirdpartLogWrite struct {
  74. //ProviderId int64 `json:"provider_id"`
  75. ProviderApiId int64 `json:"provider_api_id"`
  76. RequestParams string `json:"request_params"`
  77. ResponseParams string `json:"response_params"`
  78. Code int `json:"code"`
  79. Msg string `json:"msg"`
  80. State bool `json:"state"`
  81. Elapsed float64 `json:"elapsed"`
  82. }
  83. type H5LogAddAccessLogReq struct {
  84. AccessLogWrite
  85. MerchantId int64 `json:"merchant_id"`
  86. ApiId int64 `json:"api_id"`
  87. H5ServiceId int64 `json:"h5_service_id"`
  88. H5ApiId int64 `json:"h5_api_id"`
  89. Vin string `json:"vin"`
  90. PlateNo string `json:"plate_no"`
  91. PlateType string `json:"plate_type"`
  92. RemoteAddr string `json:"remote_addr"`
  93. TimeStamp int64 `json:"time_stamp"`
  94. H5ThirdpartLogWrites []H5ThirdpartLogWrite `json:"h5_thirdpart_log_writes"`
  95. }
  96. type H5LogAddAccessLogReply struct {
  97. }
  98. /*type LogAddThirdpartLogReq struct {
  99. MerchantId int64 `json:"merchant_id"`
  100. ApiId int64 `json:"api_id"`
  101. ProviderId int64 `json:"provider_id"`
  102. ProviderApiId int64 `json:"provider_api_id"`
  103. PlateNo string `json:"plate_no"`
  104. PlateType string `json:"plate_type"`
  105. Vin string `json:"vin"`
  106. RequestParams string `json:"request_params"`
  107. ResponseParams string `json:"response_params"`
  108. Code int `json:"code"`
  109. Msg string `json:"msg"`
  110. State bool `json:"state"`
  111. RemoteAddr string `json:"remote_addr"`
  112. Elapsed float64 `json:"elapsed"`
  113. Timestamp int64 `json:"timestamp"`
  114. }
  115. type LogAddThirdpartLogReply struct {
  116. }*/
  117. type H5LogQueryAccessLogReq struct {
  118. Vin string `json:"vin"`
  119. PlateNo string `json:"plate_no"`
  120. MerchantId int64 `json:"merchant_id"`
  121. ApiId int64 `json:"api_id"`
  122. H5ServiceId int64 `json:"h5_service_id"`
  123. H5ApiId int64 `json:"h5_api_id"`
  124. StartTimestamp int64 `json:"start_timestamp"`
  125. EndTimestamp int64 `json:"end_timestamp"`
  126. PageSize int64 `json:"page_size"`
  127. PageNumber int64 `json:"page_number"`
  128. }
  129. type H5LogQueryAccessLogReply struct {
  130. PageSize int64 `json:"page_size"`
  131. PageNumber int64 `json:"page_number"`
  132. Total int64 `json:"total"`
  133. H5AccessLogs []H5AccessLog `json:"h5_access_logs"`
  134. }
  135. type H5LogQueryThirdpartAccessLogReq struct {
  136. Vin string `json:"vin"`
  137. PlateNo string `json:"plate_no"`
  138. ProviderId int64 `json:"provider_id"`
  139. ProviderApiId int64 `json:"provider_api_id"`
  140. H5ServiceId int64 `json:"h5_service_id"`
  141. H5ApiId int64 `json:"h5_api_id"`
  142. StartTimestamp int64 `json:"start_timestamp"`
  143. EndTimestamp int64 `json:"end_timestamp"`
  144. PageSize int64 `json:"page_size"`
  145. PageNumber int64 `json:"page_number"`
  146. }
  147. type H5LogQueryThirdpartAccessLogReply struct {
  148. PageSize int64 `json:"page_size"`
  149. PageNumber int64 `json:"page_number"`
  150. Total int64 `json:"total"`
  151. H5ThirdpartLogs []H5ThirdpartLog `json:"h5_thirdpart_logs"`
  152. }
  153. type H5LogQueryAccessLogCountReq struct {
  154. MerchantId int64 `json:"merchant_id"`
  155. ApiId int64 `json:"api_id"`
  156. H5ServiceId int64 `json:"h_5_service_id"`
  157. H5ApiId int64 `json:"h_5_api_id"`
  158. StartTimestamp int64 `json:"start_timestamp"`
  159. EndTimestamp int64 `json:"end_timestamp"`
  160. PageSize int64 `json:"page_size"`
  161. PageNumber int64 `json:"page_number"`
  162. }
  163. type H5QueryAccessLogCount struct {
  164. Date string `json:"date"`
  165. MerchantName string `json:"merchant_name"`
  166. ApiName string `json:"api_name"`
  167. H5ServiceName string `json:"h5_service_name"`
  168. H5ApiName string `json:"h5_api_name"`
  169. Total int64 `json:"total"`
  170. Success int64 `json:"success"`
  171. Reuse int64 `json:"reuse"`
  172. Elapsed float64 `json:"elapsed"`
  173. Failed int64 `json:"failed"`
  174. SuccessRate string `json:"success_rate"`
  175. ReuseRate string `json:"reuse_rate"`
  176. }
  177. type H5LogQueryAccessLogCountReply struct {
  178. PageSize int64 `json:"page_size"`
  179. PageNumber int64 `json:"page_number"`
  180. Total int64 `json:"total"`
  181. H5QueryAccessLogCounts []H5QueryAccessLogCount `json:"h5_query_access_log_counts"`
  182. }
  183. type H5QueryThirdpartAccessLogCount struct {
  184. Date string `json:"date"`
  185. ProviderName string `json:"provider_name"`
  186. ProviderApiName string `json:"provider_api_name"`
  187. H5ServiceName string `json:"h5_service_name"`
  188. H5ApiName string `json:"h5_api_name"`
  189. Total int64 `json:"total"`
  190. Success int64 `json:"success"`
  191. Elapsed float64 `json:"elapsed"`
  192. Failed int64 `json:"failed"`
  193. SuccessRate string `json:"success_rate"`
  194. }
  195. type H5LogQueryThirdpartAccessLogCountReq struct {
  196. ProviderId int64 `json:"provider_id"`
  197. ProviderApiId int64 `json:"provider_api_id"`
  198. H5ServiceId int64 `json:"h5_service_id"`
  199. H5ApiId int64 `json:"h5_api_id"`
  200. StartTimestamp int64 `json:"start_timestamp"`
  201. EndTimestamp int64 `json:"end_timestamp"`
  202. PageSize int64 `json:"page_size"`
  203. PageNumber int64 `json:"page_number"`
  204. }
  205. type H5LogQueryThirdpartAccessLogCountReply struct {
  206. PageSize int64 `json:"page_size"`
  207. PageNumber int64 `json:"page_number"`
  208. Total int64 `json:"total"`
  209. H5QueryThirdpartAccessLogCounts []H5QueryThirdpartAccessLogCount `json:"h5_query_thirdpart_access_log_count"`
  210. }
  211. type H5LogQueryAccessLogThirdpartLogReq struct {
  212. AccessId int64 `json:"access_id"`
  213. }
  214. type H5LogQueryAccessLogThirdpartLogReply struct {
  215. H5ThirdpartLogs []H5ThirdpartLog `json:"h5_thirdpart_logs"`
  216. }