obj.go 794 B

1234567891011121314151617181920212223
  1. package logapi
  2. type logVO struct {
  3. ClientIP string `json:"client_ip"`
  4. LatencyTime int32 `json:"latency_time"`
  5. Level string `json:"level"`
  6. Msg string `json:"msg"`
  7. ReqMethod string `json:"req_method"`
  8. ReqURI string `json:"req_uri"`
  9. Request interface{} `json:"request"`
  10. Response interface{} `json:"response"`
  11. StatusCode int16 `json:"status_code"`
  12. Time string `json:"time"`
  13. T int64 `json:"t"`
  14. Id string `json:"_id"`
  15. }
  16. type res struct {
  17. Current int `json:"current"` //当前分页
  18. Size int `json:"size"` //每页数量
  19. Pages int `json:"pages"` //总页数
  20. Total int64 `json:"total"` //总数
  21. Records []logVO `json:"records"` //记录列表
  22. }